AWS in 1 Min · Episode 186

Serverless architecture on AWS: more than Lambda

Managed parts that bill on use. Watch the one-minute video, then read the details.

David Gomez1:15 video · 2 min read

"Serverless just means Lambda." It's bigger than that. Lambda is one piece. A serverless architecture is a whole application built from managed services that scale with demand and bill on use, so there are no servers for your team to patch, size or keep running.

What makes something serverless

A service fits the serverless model when:

  • No server management: you never choose an instance size or apply an OS patch.
  • Automatic scaling: it grows with traffic and shrinks when traffic stops.
  • Pay for use: you are billed per request, per unit of work or per GB stored, and quiet hours cost little or nothing.

There are still servers, of course; AWS runs them. (Episode 74 covered Lambda itself.)

A typical serverless stack

  1. S3 + CloudFront host the front end: HTML, JavaScript and images.
  2. Amazon API Gateway exposes the API, with auth and throttling.
  3. AWS Lambda runs the business logic as functions.
  4. Amazon DynamoDB stores data, with on-demand capacity that scales with traffic.

Then the glue: SQS queues to buffer work, EventBridge to route events, and Step Functions to orchestrate multi-step workflows. Work flows as events instead of long chains of direct calls, which keeps each piece small and replaceable. See decoupling with queues and EventBridge.

The money

For Lambda event functions you pay per request and for compute time measured in milliseconds, and the free tier covers one million requests and 400,000 GB-seconds a month. That makes small, new or spiky workloads very cheap: an internal tool used twice a day costs almost nothing.

The trade-offs

  • Cold starts: the first request to a new function environment is slower. See Lambda cold starts and limits.
  • Time limits: a classic Lambda function run lasts at most 15 minutes; long jobs belong in Step Functions, Fargate or AWS Batch.
  • Steady heavy load: when traffic is high around the clock, per-request pricing can cost more than servers or containers you keep busy. Do the math before you assume serverless is always cheaper.
  • Distributed debugging: many small pieces need good logs and tracing.

A common mistake is forcing everything into one function per endpoint and then chaining functions with direct calls. Use queues and events between them instead.

Where AI fits

Serverless is the cheapest way to start with generative AI. A Lambda function calls a model on Amazon Bedrock, and with on-demand inference you pay per token processed. There's no GPU instance running and waiting for users, so a prototype with little traffic costs very little. When volume grows, you can look at options such as batch inference or provisioned capacity, but you don't need them on day one.

Quick recap

  • Serverless is an architecture of managed parts, not just Lambda.
  • You pay for what you use, which makes small and spiky workloads cheap.
  • Check the math at steady heavy load, and watch cold starts and time limits.
AWS in 1 Min #186 · 1:15

Need an AWS expert on your team?

I'm David, an AWS expert and fractional cloud consultant. I work alongside your team to run your cloud and infrastructure: architecture, security, cost and day-to-day operations. You get senior AWS experience when you need it, without the cost of a full-time hire.

  • Architecture reviews and a clear plan for what to fix first
  • Security hardening: IAM, networking, audits
  • Lower AWS bills without slowing your team down
  • Hands-on help with AI workloads on AWS