Cloudflare WorkersのCPU Runtimeの実行時間について
基本は10ms以内と厳しい。
が、Cloudflare Workersの0ms cold startsのしくみ - すな.devによると、
CPU runtimeが10msとかなり厳しめなので、CPUヘビーな処理は厳しそう。
ただ、このCPU runtimeはCloudflare workersの処理系としてかかる時間なので、外部APIを叩いて待っている時間とかは含まれないらしい。
Lambdaは確か含まれるのでこれは嬉しい。
ということらしい。
Limits · Cloudflare Workers docsを見ても確かにそうっぽい。
There is no limit on the real runtime for a Worker. As long as the client that sent the request remains connected, the Worker can continue processing, making subrequests, and setting timeouts on behalf of that request.
cloudflare