A serverless architecture diagram shows what triggers each function, what each function talks to, and whether every hop is synchronous, asynchronous or queue-driven. For AWS, that usually means API Gateway, Lambda and a managed data store such as DynamoDB, plus the queues, events and identity layer around them. Get the edges right and the diagram answers the questions that actually bite in production: what times out, what retries, and where failed events go.
Below: what to put on the diagram, four copyable AWS serverless architecture examples (from beginner to event-driven), the limits worth annotating, and a review checklist.
Why a serverless architecture diagram is different
A classic three-tier diagram is mostly about places: subnets, load balancers, instances. A serverless diagram is mostly about triggers and edges. There's no server box to anchor on, so the arrows carry the meaning.
That's also why serverless diagrams go stale so fast. Someone adds an S3 event notification or an EventBridge rule in a pull request, and the diagram from the kickoff deck is suddenly fiction. The "Lambda → DynamoDB" arrow nobody updated since 2023 hides three new consumers.
A useful serverless diagram makes four things obvious at a glance:
- Entry points. Every way work enters the system: HTTP routes, queues, schedules, bucket events, streams.
- Invocation type per edge. Synchronous (caller waits), asynchronous (fire and forget, Lambda retries), or polled (Lambda reads from SQS, Kinesis or DynamoDB Streams).
- Failure paths. Dead-letter queues, on-failure destinations, retries.
- Trust boundaries. Where identity is checked, and which IAM role each function runs with.
→ Skip the blank canvas: open a serverless starting point from the Pattern Library
What to include: the serverless diagram legend
Here's the minimum element set, and why each piece earns a spot on the canvas:
| Element | What to draw | Why reviewers care |
|---|---|---|
| Client and edge | Browser or mobile app, CloudFront, custom domain | Shows caching and where TLS terminates |
| Identity | Cognito user pool, Lambda authorizer or IAM auth beside API Gateway | Unauthenticated routes are where incidents start |
| Entry point | API Gateway (REST or HTTP API), with key routes | REST and HTTP APIs have different limits and features |
| Functions | One box per function, named by job (create-order, not lambda-3) | Function boundaries are your deployment and scaling units |
| Invocation type | Edge labels: sync, async, poll | Determines timeouts, retries and back-pressure |
| Data stores | DynamoDB tables, S3 buckets, RDS (with VPC if used) | Where state lives, and what has to be backed up |
| Messaging | SQS queues, SNS topics, EventBridge buses and rules | Decoupling points and fan-out |
| Failure handling | DLQs, destinations, max receive count | Proves failed events don't silently disappear |
| Permissions | Execution role per function, labelled with what it can touch | Over-broad roles are the most common serverless finding |
| Observability | CloudWatch logs, metrics, tracing | Where you'll look when something is slow |
Pro tip: if your diagram tool only lets you draw unlabelled arrows, you're drawing half a serverless diagram. Label the invocation type on every edge.
→ Describe your functions and triggers in plain English and let Architect AI draft the topology
Serverless architecture diagram with AWS Lambda and API Gateway: the limits to annotate
Serverless removes servers, not constraints. A handful of hard limits decide whether a design works, so put them on the diagram as notes next to the edges they affect. These values come from AWS's own quota pages (as of November 2026; quotas change, so check the linked docs):
| Limit | Value | Where to annotate |
|---|---|---|
| Lambda maximum timeout | 900 seconds (15 minutes) | On long-running functions |
| Lambda synchronous payload | 6 MB request, 6 MB response | On the API Gateway → Lambda edge |
| Lambda asynchronous payload | 1 MB | On async invokes (S3, SNS, EventBridge targets) |
| Lambda default concurrency | 1,000 per Region (can be raised) | On the function group or account boundary |
| REST API integration timeout | 50 ms to 29 seconds by default; can be raised for Regional and private APIs, not edge-optimized | On the API Gateway → Lambda edge |
| HTTP API maximum integration timeout | 30 seconds, not adjustable | On the API Gateway → Lambda edge |
| API Gateway payload | 10 MB | On the client → API edge |
Sources: Lambda quotas, REST API quotas and HTTP API quotas.
The one that catches teams most: a Lambda function can run for 15 minutes, but the API call in front of it can't wait that long. If a request path calls a slow downstream service, the client gets a timeout while the function keeps running. The fix is architectural, and it should be visible on the diagram: accept the request, push the work onto a queue, return an ID, and let the client poll or get notified. That's Example 2 below.
Also worth noticing: the 10 MB API Gateway payload limit is larger than Lambda's 6 MB synchronous limit, so for a Lambda proxy integration the function is the tighter bound. Large uploads should go straight to S3 (for example with presigned URLs), not through your API.
→ Read the trade-offs between serverless topologies on AWS before you commit
Example 1: the beginner serverless web app (API Gateway + Lambda + DynamoDB)
If you want one AWS serverless architecture example to learn from, use the web application scenario from the Well-Architected Serverless Applications Lens. It has six components: Cognito user pools, CloudFront, S3 for static assets, API Gateway as the HTTPS endpoint, a Lambda function doing CRUD, and DynamoDB.
[Browser]
| HTTPS
v
[CloudFront] --(static assets)--> [S3 bucket: web assets]
|
| /api/* (sync)
v
[API Gateway] <--(JWT check)-- [Cognito user pool]
|
| sync, Lambda proxy
v
[Lambda: orders-api] --(role: CRUD on orders table)--> [DynamoDB: orders]
|
v
[CloudWatch Logs]
How to draw it so it reads well:
- Left to right, outside in. Client on the left, data on the right. Readers follow the request.
- Cognito sits beside API Gateway, not in the request line. It issues tokens; API Gateway checks them.
- Label the Lambda role. "CRUD on orders table" beats an unlabelled arrow, and it's what a security reviewer asks first.
- Don't draw a VPC. Nothing here is in one. Lambda runs outside your VPC unless you attach it.
This is the API Gateway Lambda DynamoDB architecture most tutorials build, and it's a solid default for CRUD APIs with spiky or low traffic.
→ Price this design before you build it with the free AWS Cost Estimator Lite
Example 2: async processing with SQS (when the work outlives the request)
Order placed, now generate an invoice PDF, charge a card and email a receipt. None of that should block the HTTP response.
[Client] --sync--> [API Gateway] --sync--> [Lambda: create-order]
| \
writes order | \ SendMessage
v v
[DynamoDB: orders] [SQS: order-jobs]
|
poll, batch of 10
v
[Lambda: process-order]
|
after 5 failed receives
v
[SQS: order-jobs-dlq]
Here's the matching AWS SAM template, so the diagram and the code say the same thing:
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Resources:
OrdersTable:
Type: AWS::DynamoDB::Table
Properties:
BillingMode: PAY_PER_REQUEST
AttributeDefinitions:
- AttributeName: orderId
AttributeType: S
KeySchema:
- AttributeName: orderId
KeyType: HASH
OrderJobsDlq:
Type: AWS::SQS::Queue
OrderJobsQueue:
Type: AWS::SQS::Queue
Properties:
VisibilityTimeout: 180 # 6x the consumer's 30s timeout
RedrivePolicy:
deadLetterTargetArn: !GetAtt OrderJobsDlq.Arn
maxReceiveCount: 5
CreateOrderFunction:
Type: AWS::Serverless::Function
Properties:
Runtime: nodejs22.x
Handler: create-order.handler
CodeUri: src/
Timeout: 10
Environment:
Variables:
TABLE_NAME: !Ref OrdersTable
QUEUE_URL: !Ref OrderJobsQueue
Policies:
- DynamoDBCrudPolicy:
TableName: !Ref OrdersTable
- SQSSendMessagePolicy:
QueueName: !GetAtt OrderJobsQueue.QueueName
Events:
CreateOrder:
Type: HttpApi
Properties:
Path: /orders
Method: POST
ProcessOrderFunction:
Type: AWS::Serverless::Function
Properties:
Runtime: nodejs22.x
Handler: process-order.handler
CodeUri: src/
Timeout: 30
Events:
OrderJobs:
Type: SQS
Properties:
Queue: !GetAtt OrderJobsQueue.Arn
BatchSize: 10
Two numbers in there come straight from AWS guidance for Lambda with SQS: set the queue's visibility timeout to at least six times the function timeout, and set maxReceiveCount on the redrive policy to at least 5 so Lambda gets a few retries before messages land in the DLQ. Put both on the diagram. They're exactly what an on-call engineer needs at 2am.
→ Pressure-test the queue, consumers and downstream calls with Scalability Analyzer
Example 3: event-driven fan-out with EventBridge
Once several teams care about "order placed", point-to-point queues get messy. An event bus lets each consumer subscribe with its own rule.
[Lambda: create-order] --PutEvents--> [EventBridge bus: commerce]
| rule: OrderPlaced
+--------------------+--------------------+
| async | async | async
v v v
[Lambda: send-receipt] [SQS: billing-queue] [Lambda: update-analytics]
| |
on failure: poll -> [Lambda: charge-card]
[SQS: receipts-dlq]
Diagram rules for event-driven serverless:
- Draw the bus as a hub, with each rule labelled by the event pattern it matches (
OrderPlaced), not just "events". - Mark ownership per consumer. Fan-out is an org chart in disguise. Write the owning team on each target.
- Show where a queue sits between the bus and a slow consumer. Billing goes through SQS so it can be throttled and retried independently.
- Async payloads are capped at 1 MB for Lambda, so events should carry IDs and key fields, not whole documents.
→ Learn how queuing pressure shows up as systems scale
Example 4: file processing with S3 events
The classic serverless architecture diagram example for beginners after the CRUD API: a user uploads a file, a function processes it.
[Client] --presigned PUT--> [S3: uploads]
| ObjectCreated (async)
v
[Lambda: process-upload] --writes--> [S3: processed]
|
+--writes metadata--> [DynamoDB: files]
What to call out on this one:
- Never write output back to the triggering prefix. If
process-uploadwrites into the bucket and prefix it listens on, you've drawn an infinite loop. Use a separate bucket or prefix, and show it. - Draw the presigned URL path. The upload bypasses API Gateway and Lambda entirely, which is how you dodge the payload limits from the table above.
- Note the timeout. If processing can approach 15 minutes for large files, the diagram should say so, because that's your cue to move the work to a container task or Step Functions.
→ Start from a tested event-driven pattern instead of drawing from scratch
How to draw a serverless architecture diagram in 6 steps
- List every trigger. Routes, queues, schedules, bucket events, streams. If it can wake a function, it's on the list.
- Name every function by its job. One box per function. If two functions share a box, your diagram is lying about scaling and permissions.
- Draw edges with invocation types.
sync,asyncorpollon every arrow. - Add failure paths. DLQs and destinations for every async or polled edge.
- Annotate limits and roles. Timeouts on sync edges, the execution role on each function.
- Check it against the template. Compare the diagram to your SAM, CDK or Terraform code. Anything in the code but not the diagram is a finding.
For the wider AWS picture (networking, multi-AZ data stores, review lenses), the AWS architecture diagram guide covers the full process.
→ Run a STRIDE pass on your functions and triggers with the free STRIDE Threat Checklist
Serverless architecture diagram review checklist
Run this before the design review, not after the incident:
- Every entry point is drawn, including schedules and bucket events
- Every edge is labelled sync, async or poll
- No synchronous path depends on work that can exceed the API Gateway integration timeout
- Every async and polled edge has a DLQ or on-failure destination
- SQS visibility timeout is at least 6x the consumer function timeout
- Each function has its own execution role, scoped to named resources
- Unauthenticated routes are explicitly marked and justified
- Large payloads go directly to S3, not through API Gateway and Lambda
- No function writes to the bucket or prefix that triggers it
- Functions attached to a VPC are drawn inside it, with how they reach other services
- Concurrency assumptions are written down (reserved concurrency, downstream limits)
- The diagram matches the deployed IaC template
On cost: serverless bills scale with requests, duration and data, so model a few traffic scenarios rather than one monthly number. Price each component in the diagram (Lambda requests and compute time, API Gateway requests, DynamoDB reads and writes, logs) with the official AWS Pricing Calculator, and note "prices as of November 2026". For a worked approach, see how much it costs to host a web app on AWS.
→ Turn the diagram into a component-level cost breakdown with Cost Estimator
Key takeaways
- A serverless architecture diagram is about triggers and edges, not servers. Label every edge sync, async or poll.
- Annotate the limits that shape the design: 15-minute Lambda timeout, 29-second default REST API integration timeout, 30-second HTTP API maximum, 6 MB sync payloads.
- Long work goes off the request path: API Gateway → Lambda → SQS or EventBridge → worker.
- Every async edge needs a failure path you can point to.
- The beginner-friendly baseline is the Serverless Lens web app: CloudFront, S3, Cognito, API Gateway, Lambda, DynamoDB.
- Check the diagram against your IaC. Drift between the two is where incidents hide.
→ Start free and draw your first serverless architecture on Architecto
FAQ
What should a serverless architecture diagram include?
Every trigger (API Gateway route, queue, schedule, bucket event), every function, every managed service it reads or writes, the identity layer, and the invocation type on each edge: synchronous, asynchronous, or polled from a queue or stream. Add the limits that shape the design, such as API Gateway integration timeouts and Lambda payload sizes, plus where failed events end up (dead-letter queue or destination).
How do you draw a serverless architecture diagram with AWS Lambda and API Gateway?
Start with the client and the entry point (CloudFront, then API Gateway), draw API Gateway to Lambda as a synchronous edge, then each data store or downstream service the function calls. Put Cognito or another authorizer next to API Gateway, draw IAM permissions as labelled edges, and split any slow work onto an asynchronous path through SQS or EventBridge so the request path stays inside the API Gateway timeout.
What is a simple AWS serverless architecture example for beginners?
The web application scenario in the AWS Well-Architected Serverless Applications Lens: Cognito user pools for sign-in, CloudFront in front of an S3 bucket for static assets, API Gateway as the HTTPS endpoint, a Lambda function doing CRUD operations, and DynamoDB as the data store. It is small enough to draw in five minutes and covers the core serverless building blocks.
Do serverless diagrams need to show VPCs and subnets?
Only when something is actually in a VPC. Lambda functions run outside your VPC by default, so drawing them inside subnets is misleading. If a function is attached to a VPC to reach RDS or a private service, draw that attachment explicitly, because it changes how the function reaches the internet and other AWS services.
→ Find threat paths across your triggers and functions with Threat Analyzer
Draw the serverless system you actually run
Serverless architectures are easy to build and weirdly easy to lose track of. Every new trigger is one line of config and zero lines of diagram. The fix isn't a prettier picture. It's a diagram that names every trigger, labels every edge and shows every failure path, then gets checked against the code.
Start from a proven serverless pattern, describe the changes in plain English, and run cost, threat and scalability reviews on the same canvas.
→ Start free on Architecto and open a serverless pattern from the Pattern Library