Best practices for resolving cold start problems

After a period of inactivity, the first request takes 5 to 10 seconds to pass.

Are there any solutions to solve this problem?

I am using the Python version of App Engine.

+3
source share
1 answer
  • Reduce the number of libraries required to serve queries as much as possible.
  • For expensive libraries that are used only in some places, put the import statement inside the function that uses them. Thus, the library is imported only when necessary.
  • , , , .
  • / , !
+6

Source: https://habr.com/ru/post/1773210/


All Articles