Skip to main content

Lambda Functions

Pros

  • Auto scales without maintenance.
  • Cost effective especially when load fluctuates.
  • Pay-per-use model
  • No server management required.

Cons

  • Fixed memory allocation per function with billing for allocated amount
  • Fixed cpu allocation, based on memory, can't change
  • ❗️ Pay for wait time during blocking operations
  • 15-minute execution limit
  • Cold starts when used infrequently
  • Significant memory overhead -easily 128+MB- due to infrastructure stack

Perfect for jobs like image resizing, pdf/document conversions etc.

tip

AWS Lambda runs JS in isolated containers with higher cold start times, while Cloudflare Workers use V8 isolates -same process- for faster startup and lower memory usage but less strict isolation.