Contribute Media
A thank you to everyone who makes this possible: Read More

Solving Python Cold Start Issues in Cloud Infrastructure

Translations: en


We all do cloud applications, no matter if they were built with the cloud (an app that consumes cloud services) or for the cloud (an app that was designed to run within cloud/container). The only thing that we, as Python community, haven’t talked out loud is imports performance that is so critical for business especially when you run your own business and cloud provider charges your own credit card.

Until Python 3.7 it was quite challenging to profile application code dependencies and imports specifically. With a new imports profiler, Python developers can measure how much time each import takes at the startup. The interesting thing, a new profiler opened the whole new Python problem - cold start issue. In this talk, we will go through one very challenging case: Python in serverless and why most of the Python libraries were never been designed to start fast.

If you’re going to attend this talk you’d get the following key takeaways:

  • Python coding strategy (placement, efficient and delayed imports)
  • New things in Python 3.7 related to imports
  • Module coding strategy

and my favourite ones:

  • Why you should be careful with python code in serverless.
  • How to profile cold start and measure overall startup time.
  • The best CPU/RAM configuration for performing cold startup time measures.


Improve this page