What is event-driven architecture?
Learn how producers, routers, and consumers communicate through events, and how to design schemas, delivery, retries, and ownership deliberately.
What is event-driven architecture?
Event-driven architecture is a software design style in which components communicate by emitting and responding to events. An event records a meaningful state change, allowing producers and consumers to evolve and scale with less direct knowledge of one another.
How this topic fits
Messaging & events
Choose between queues, topics, event buses, and streams, then design delivery, ordering, replay, and idempotent consumers.
Producers, routers, and consumers
A producer recognizes that something happened and publishes an event. A router, bus, stream, or broker evaluates where that event should go. One or more consumers receive it and perform their own work without the producer calling each consumer directly.
This separation can reduce temporal and deployment coupling. It also creates new contracts around event shape, routing, delivery, ordering, retention, replay, and the point at which an operation is considered complete.
Owns the business fact and publishes it without encoding every downstream reaction.
Matches, filters, transforms, buffers, or delivers events according to explicit rules.
Responds independently and owns its processing, retries, idempotency, and resulting state changes.
Design events as durable contracts
An event should describe a fact in the language of the domain, identify when it happened, and carry enough context for authorized consumers to act. Avoid exposing internal database rows as the public contract by accident.
Plan for schema evolution before the second consumer exists. Define required and optional fields, compatibility rules, ownership, sensitive-data handling, versioning, and how consumers behave when they receive an event they do not understand.
Delivery, duplicates, and failure
Many event integrations can deliver more than once, delay delivery, or process different partitions concurrently. Consumers should be idempotent where duplicates are possible and should not assume ordering unless the selected service and partitioning model provide it.
Use retries for transient failures, dead-letter or failure destinations for work that cannot proceed, and alarms on age and backlog rather than errors alone. A recovery path must explain how an operator inspects, fixes, and safely replays failed events.
When event-driven architecture is useful
Events are useful when multiple reactions follow one business fact, when work can happen asynchronously, when traffic needs buffering, or when producers and consumers must scale and deploy independently.
A synchronous request can be clearer when the caller needs an immediate result or the operation has one tightly owned path. Most systems combine synchronous commands with asynchronous events instead of forcing every interaction into one style.
Go deeper with AWS
Read the primary AWS documentation behind the service definitions and architecture guidance in this guide.
Next steps
Continue with the concepts that most directly shape this decision.
What is Amazon EventBridge?
Understand EventBridge event buses, rules, pipes, schemas, targets, schedules, permissions, delivery, and recovery in event-driven AWS systems.
What is Amazon SQS?
Learn how SQS queues decouple producers and consumers, how visibility and acknowledgment work, and when to choose Standard or FIFO queues.
Event delivery and idempotency
Design safe event consumers around at-least-once delivery, duplicate messages, ordering boundaries, deduplication records, and transactional side effects.
What is serverless architecture?
Learn how managed compute, APIs, events, queues, workflows, data, identity, and observability fit together in a serverless architecture on AWS.
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.
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.
What is serverless architecture?
Learn how managed compute, APIs, events, queues, workflows, data, identity, and observability fit together in a serverless architecture on AWS.
AWS serverless security
A practical guide to identity, least privilege, event validation, secrets, data protection, dependencies, and incident visibility in AWS serverless systems.
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.
What is cloud computing?
Understand how on-demand infrastructure and managed services change the way teams provision, scale, pay for, and operate software systems.
What is event-driven architecture?
Learn how producers, routers, and consumers communicate through events, and how to design schemas, delivery, retries, and ownership deliberately.
What is a serverless API?
Understand the request path, authentication, routing, compute, data, throttling, observability, and failure controls behind a serverless API on AWS.
What are serverless workflows?
Learn when explicit workflow state improves retries, branching, parallel work, human approval, visibility, and recovery in distributed applications.
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.
What is Amazon EventBridge?
Understand EventBridge event buses, rules, pipes, schemas, targets, schedules, permissions, delivery, and recovery in event-driven AWS systems.
Make the next serverless decision explicit.
Explore focused products for repeatable work, or bring the architecture decision that needs context and experienced review.