Event-driven architecture explained in plain terms is a way of building software where parts of a system react to things that have happened, rather than asking each other for information. The central question is how dozens of services can work together without becoming tangled in direct calls to each other, and the short answer is that when something happens, the service that noticed it publishes an event, and any other service that cares about that event reacts to it, without either side knowing about the other.
Most software starts out with direct calls: one service asks another for data and waits for the reply. That works while the system is small. As it grows, each service ends up knowing about many others, a slow service delays everything that calls it, and a change in one service breaks the ones that depend on it. Event-driven architecture breaks those direct links. Services communicate through events, which are small records of something that happened, such as an order being placed or a payment completing. Our guide to microservices architecture explains the style of system where this pattern is most often used.
Key takeaways
- Event-driven architecture lets services react to things that have happened, instead of calling each other directly.
- An event is a small record of a fact, such as an order being placed, published for any interested service to consume.
- Producers and consumers are decoupled: neither side knows about the other, only about the event.
- The pattern suits systems where many services must react to the same change, and where work can happen asynchronously.
- It adds complexity in ordering, duplicates and debugging, so it is not the right choice for every system.
What event-driven architecture is
Event-driven architecture is a style of building systems around events. An event is a notification that something has happened, carrying the facts of that change: what happened, when, and the data needed to react. A producer creates events, a broker carries them, and consumers react to them. The producer does not know who will consume the event, and the consumer does not know who produced it. The event itself is the contract between them.
This is different from the usual request-and-response pattern, where one service asks another a question and waits for an answer. In an event-driven system, a service announces a fact and moves on. The work that follows happens independently, in any service that has subscribed to that kind of event. An order service, for example, publishes an “order placed” event, and the stock service, the payment service and the shipping service each react in their own way, at their own speed.
Events, producers and consumers
An event should describe something that has already happened, in the past tense, and it should be immutable: once published, it is a fact and does not change. A good event carries enough data for a consumer to do its work without calling back to the producer for more. An “order placed” event carries the order ID, the items, the customer and the total, so the shipping service can start work from the event alone.
Producers publish events to a broker, which is the system that stores and delivers them. Consumers subscribe to the kinds of events they care about and process each one as it arrives. A consumer may be a service, a function, or a data pipeline that writes events into a store for later analysis. The broker keeps events even if a consumer is temporarily down, so the consumer can catch up when it returns, which is one of the main reliability benefits of the pattern.
How events flow through a system
Events usually flow through a broker that organises them into topics or streams. A topic is a named channel for one kind of event, such as “orders” or “payments”. Producers write to a topic, consumers read from it, and the broker keeps the events in order within each topic, or within each partition of a topic. Keeping events in order matters when the sequence matters, such as an address changing before an order ships.
Consumers track how far they have read, so if one crashes and restarts, it resumes where it left off rather than reprocessing everything. Some brokers keep events for a set time and then delete them; others keep them indefinitely, so the event log becomes a complete record of everything that ever happened in the system. That record can be replayed to rebuild state, which is useful when a new service is added or an old one needs to be rebuilt from scratch.

Comparing event-driven and request-response designs
| Aspect | Event-driven | Request-response | When it wins |
|---|---|---|---|
| Coupling | Services know only the event | Services know each other directly | Events for many independent services |
| Timing | Asynchronous, no waiting | Synchronous, caller waits | Events when work can happen later |
| Failure | A slow consumer does not block the producer | A slow service delays the caller | Events for resilience |
| Debugging | Harder, work spreads across services | Easier, one call chain to follow | Request-response for simple flows |
| Ordering | Needs care, events can arrive out of order | Order is natural in a call | Request-response when order is critical |
Where event-driven architecture is used
Event-driven architecture is used wherever many things must react to the same change. In online retail, one order triggers stock updates, payment, shipping, notifications and analytics, each handled by a different service. In banking, a transaction triggers fraud checks, balance updates and audit logging. In the internet of things, sensor readings arrive as events and trigger alerts, dashboards and automated responses.
It is also used for data movement. Instead of services asking each other for data, changes are published as events and other systems consume them to keep their own copies up to date. This is how a search index, a recommendation service and a reporting warehouse can all stay current with the same source system without that system knowing about any of them. Our guide to event-driven architecture in the cloud covers the cloud services that carry these events, and our guide to cloud event streaming explains the streaming platforms behind them.
What event-driven architecture cannot do
Event-driven architecture has real limits, and the most important is that it makes a system harder to understand. When a service reacts to an event published by another service, the chain of cause and effect is invisible in the code of either one. Debugging means tracing an event through the broker and across several services, and a failure can be hard to attribute to a single cause.
Ordering and duplication are the other hard problems. Events can arrive out of order, or the same event can be delivered twice, and consumers must be built to handle both. A consumer that adds a payment twice because it saw the same event twice has a serious bug, so consumers are usually designed to be idempotent, meaning that processing the same event twice has the same effect as processing it once. Finally, events are a poor fit when the caller needs an immediate answer, such as checking whether a username is available during sign-up. For that, a direct call is simpler and clearer.
What good practice looks like
Good practice starts with designing events carefully. Events should describe facts, not commands, and they should carry enough data for consumers to work without calling back. Changing an event is a change to a contract, so versions are managed deliberately, and old consumers are given time to move to the new version before the old one is removed.
Good practice also means planning for failure from the start. Consumers handle duplicates, tolerate events arriving out of order where it matters, and send events they cannot process to a dead-letter queue for inspection instead of blocking the whole stream. Monitoring covers the flow of events itself: how many are published, how many are consumed, and how far behind each consumer is, so a stuck consumer is noticed before the backlog becomes a crisis.
Event-driven architecture checklist
- Describe events as facts that have happened, in the past tense, with enough data for consumers to act alone.
- Keep producers and consumers decoupled, so neither side knows about the other, only about the event.
- Design consumers to be idempotent, so processing the same event twice is harmless.
- Plan for events arriving out of order where sequence matters, and test that case explicitly.
- Version events deliberately and give consumers time to move before removing an old version.
- Send events that cannot be processed to a dead-letter queue for inspection, not into a retry loop.
- Monitor the flow: publish rate, consume rate and how far behind each consumer is.
- Keep events in the log long enough to replay them when a service needs rebuilding.
- Use direct calls, not events, when the caller needs an immediate answer.
Frequently asked questions
What is event-driven architecture?
Event-driven architecture is a way of building systems where services react to events, which are records of things that have happened. A producer publishes an event to a broker, and any consumer that has subscribed reacts to it. Neither side knows about the other, which keeps services decoupled.
What is an event?
An event is a small, immutable record of something that has happened, such as an order being placed or a payment completing. It carries the facts of the change, including when it happened and the data a consumer needs to react, and it is usually described in the past tense.
How is event-driven architecture different from request-response?
In request-response, one service asks another a question and waits for the answer, so the two are directly linked. In event-driven architecture, a service announces a fact and moves on, and interested services react independently and asynchronously. Events suit many reactions to one change; direct calls suit questions that need an immediate answer.
What is a message broker?
A message broker is the system that carries events between producers and consumers. It organises events into topics or streams, keeps them in order, stores them so consumers can catch up after downtime, and delivers each event to the consumers that have subscribed to it.
What does idempotent mean?
Idempotent means that doing something twice has the same effect as doing it once. Consumers in an event-driven system are designed to be idempotent because the same event can be delivered more than once, and a consumer that adds a payment or reduces stock twice would corrupt the data.
When should I not use event-driven architecture?
Do not use it when the caller needs an immediate answer, when the flow is a simple sequence between two services, or when the team is small and the system is simple. The pattern adds real complexity in ordering, duplicates and debugging, and that cost is only worth paying when the system genuinely needs decoupling and asynchronous reactions.
The bottom line
Event-driven architecture explained in one line is this: by letting services announce facts as events and react to the events they care about, a system stays loosely coupled and resilient, as long as events are designed as clear contracts, consumers handle duplicates and disorder, and direct calls are still used where an immediate answer is needed.







