Let's Stop Talking About Serverless Cold Starts | Ready, Set, Cloud!

2022-09-11

https://www.readysetcloud.io/blog/allen.helton/lets-stop-talking-about-serverless-cold-starts/

Serverless でよく話題に上がるコールドスタートが遅い問題は、現実的にはあまり問題にならないのではないか、と問いかける記事。

For interpreted languages, your average cold start is going to run you less than 500ms, while compiled languages will run you a bit longer (and around 5 seconds for Java). When considering an additional latency of 500ms, the majority of production use cases are not seriously impacted with cold starts.

個人で使うアプリケーションに Node.js (JavaScript) で Lambda を使っているが、コールドスタートの場合、確かに 0.5〜1秒ぐらい遅く感じることはあるな。
とはいえ、ちょっと遅いなぐらいでイライラするほどのものではないし、時間をおかない2回目以降のアクセスはコールドスタートがなくなるので、あまり問題と感じてはいない。

あるいはお金をかければ プロビジョニング済み同時実行数の管理 とかでホットスタンバイさせることも可能だし。