Skip to main content

What is serverless architecture?

Learn how managed compute, APIs, events, queues, workflows, data, identity, and observability fit together in a serverless architecture on AWS.

What is serverless architecture?

Serverless architecture is a way of designing applications as a set of managed services and independently scalable components connected through explicit API, event, message, and data contracts. It applies the serverless operating model to the whole system, not only to its compute layer.

How this topic fits

Architecture

Connect managed services into clear request, event, data, networking, and failure paths before selecting implementation details.

The layers of a serverless system

A user or another system first reaches an interface such as an API, event bus, queue, schedule, or object store. Compute or workflow services process the request. Managed databases and storage hold state. Identity, encryption, telemetry, deployment, and cost controls cross every layer.

The architecture is easier to operate when each component has one visible responsibility and every connection has an owner. A diagram of services is not enough: capture the contracts, permissions, failure behavior, and operational signals between them.

HTTP endpoints, events, messages, schedules, and files that define how work enters or moves through the system.

Functions and workflows that execute bounded work, sequence steps, or coordinate long-running business processes.

Databases, object storage, observability, identity, encryption, deployment, and recovery controls that make the workload durable and operable.

Synchronous and event-driven paths

Synchronous calls are useful when the caller needs an immediate answer. Asynchronous events and messages are useful when work can be accepted, buffered, retried, or processed independently. Most production systems need both, with clear boundaries between the request path and background work.

Event-driven architecture can reduce coupling between producers and consumers, but it introduces eventual consistency and more complex tracing and recovery. Use events for meaningful state changes, define schemas and ownership, and decide how consumers handle duplicates, ordering, delay, and poison messages.

Decisions to make before choosing services

Start with the business operation: who initiates it, how quickly it must complete, which data changes, what failure means, and who owns recovery. Those answers determine whether the path should be synchronous, asynchronous, orchestrated, or split into stages.

Then make non-functional requirements explicit. Expected traffic shape, data sensitivity, regional needs, recovery objectives, service quotas, audit requirements, and team experience should shape the design before convenience or novelty does.

Define inputs, outputs, schema evolution, compatibility, and the source of truth for each interaction.

Define timeouts, retries, idempotency, backpressure, partial success, compensation, and manual recovery.

Name the team, deployment unit, permissions, alarms, runbook, and cost signals for every important component.

Common serverless architecture mistakes

A large function can hide several responsibilities behind one deployment unit. A chain of synchronous functions can add latency and failure surfaces without creating useful boundaries. An event bus can become an undocumented integration layer if schemas and consumers are not governed.

Other warning signs include broad IAM policies, retries without idempotency, queues without age or dead-letter alarms, dashboards that show service activity but not business outcomes, and infrastructure changes that cannot be reviewed from source. These are design problems, not limitations that a new service name will solve.

Go deeper with AWS

Read the primary AWS documentation behind the service definitions and architecture guidance in this guide.

Explore serverless products

Questions about this topic

Browse all serverless concepts

Explore compute, APIs, events, workflows, data, security, reliability, operations, delivery, and AI from one connected AWS serverless learning path.

What is serverless?

Learn what serverless computing means, how it works on AWS, what the cloud provider manages, and which trade-offs still belong to your team.

Read the guide

What is AWS Lambda?

Understand how AWS Lambda runs code, how functions are invoked, where permissions and state live, and when Lambda is a good compute choice.

Read the guide

What is serverless architecture?

Learn how managed compute, APIs, events, queues, workflows, data, identity, and observability fit together in a serverless architecture on AWS.

Read the guide

AWS serverless security

A practical guide to identity, least privilege, event validation, secrets, data protection, dependencies, and incident visibility in AWS serverless systems.

Read the guide

What is agentic AI?

Learn what makes an AI system agentic, how models, tools, memory, orchestration, identity, and evaluation fit together, and where serverless patterns help on AWS.

Read the guide

What is cloud computing?

Understand how on-demand infrastructure and managed services change the way teams provision, scale, pay for, and operate software systems.

Read the guide

What is event-driven architecture?

Learn how producers, routers, and consumers communicate through events, and how to design schemas, delivery, retries, and ownership deliberately.

Read the guide

What is a serverless API?

Understand the request path, authentication, routing, compute, data, throttling, observability, and failure controls behind a serverless API on AWS.

Read the guide

What are serverless workflows?

Learn when explicit workflow state improves retries, branching, parallel work, human approval, visibility, and recovery in distributed applications.

Read the guide

What is Amazon API Gateway?

Learn how API Gateway creates, publishes, secures, monitors, and operates HTTP, REST, and WebSocket APIs for AWS and external backends.

Read the guide

What is Amazon EventBridge?

Understand EventBridge event buses, rules, pipes, schemas, targets, schedules, permissions, delivery, and recovery in event-driven AWS systems.

Read the guide

Make the next serverless decision explicit.

Explore focused products for repeatable work, or bring the architecture decision that needs context and experienced review.