3 ms·
Source on the price comparison? Or did you mean that Lambda is 1000x cheaper than EC2 [1][2]? It's obviously load dependent but functions-style code is going to
by vlovich123 5y ago
Source on the price comparison? Or did you mean that Lambda is 1000x cheaper than EC2 [1][2]? It's obviously load dependent but functions-style code is going to typically be cheaper than even the smallest EC2 instance while handling more load (provided your RAM/CPU usage fits within the envelope it's optimized around).
Disclaimer: I work at Cloudflare on R2 and Workers is even cheaper than Lambda@Edge (provided your workload fits within the compute envelope). Billing is based on CPU time not wall time [3]. Workers Bundled pricing can be more cost effective in some cases if you only need <= 50ms of compute.
[1] https://lumigo.io/blog/aws-lambda-vs-ec2/ https://lumigo.io/blog/aws-lambda-vs-ec2/
[2] https://www.trek10.com/blog/lambda-cost https://www.trek10.com/blog/lambda-cost
[3] https://blog.cloudflare.com/introducing-workers-unbound/ https://blog.cloudflare.com/introducing-workers-unbound/