Picking the Right Serverless Use Case: when (and when not) to use serverless for your backend

Serverless computing is no longer a cutting‑edge experiment — it’s a mature set of options that includes classic FaaS (AWS Lambda, Google Cloud Functions, Azure Functions), serverless containers (Cloud Run, Fargate), and edge runtimes (Cloudflare Workers, Vercel Edge Functions). But “serverless” is a spectrum, not a single silver bullet. This article walks through practical, recent trade‑offs so you can choose serverless where it makes sense — and avoid it where it doesn’t.

Why revisit this now

Core decision points (quick summary)

When serverless shines

When serverless is a poor fit

Cold starts: how much do they matter today?

Cost tradeoffs: beyond headline pricing

Stateful serverless: the new possibilities (and limits)

A short decision checklist

Practical patterns and hybrid approaches

Tiny example: edge function handler (Cloudflare Worker)

Wrapping up — a pragmatic mindset

Further reading (recommended vendor docs and analyses cited above)

Choose the runtime and pricing model that matches your traffic shape, latency targets, and state needs — and you’ll get serverless to work for you instead of against you.