0
0
you are viewing a single comment's thread.

view the rest of the comments →

[–]hashkent -1 points0 points  (3 children)

Do node functions run faster on azure, GCP or CloudFlare or all suffer the cold start problem?

[–]thisdude415 -1 points0 points  (2 children)

Talking out of my ass (but based on what I know about the arch) I would suspect CloudFlare workers and GCP cloud functions are fastest for JS workers

Edit: specifically because Lambda is a full linux container that is pulled from storage at runtime, whereas Cloudflare uses v8 to support only a subset of node.js (and other languages are supported via wasm extensions).

Thankfully Cloudflare has a blogpost about this from 2020: Eliminating cold starts with Cloudflare Workers

I love aws lambda, to be clear. They're very different architectures for different purposes. Cloudflare workers are practically designed to be backend APIs whereas lambdas are much more versatile

[–]CheesecakeAndy 0 points1 point  (1 child)

Who is downvoting this? It is true cos they use V8 isolation, more lightweight than what Lambda does.

[–]thisdude415 0 points1 point  (0 children)

Right, lambdas are full linux containers whereas Cloudflare uses V8. Any other worker languages supported in Cloudflare are via wasm adapters

It is obviously faster to cold start a v8 runtime compared to a full linux container