Browse patterns / System architecture / A011
event driven architecture

Event-driven architecture

Producers, channels, and consumers carry events in near real time so consumers can respond as they occur.

Recorded evidence 14/14Compare →Source
01 / UNDERSTAND

Structure and behavior

Follow the arrows step by step.

Producers and consumers are less tightly coupled in time. Delivery guarantees, ordering, and duplicates depend on the broker and implementation.

Expected benefits

Near-real-time delivery lets consumers respond as events happen and keeps them decoupled from producers.

Trade-offs

Extra message hops add latency, and the origin of delays can be difficult to diagnose in production.

Without a fitting use case, its complexity can introduce too much overhead to justify adoption.

02 / APPLY

Operations and adoption guide

Synthesis, distinct from items backed by source excerpts. Validate before applying in production.

When to use

Suitable for microservice integration that reacts to changes, IoT ingestion and analysis, e-commerce order and shipping, and high-throughput asynchronous integration.

Scenario

A midsize retailer connects POS, inventory, and shipping across 500 stores. It handles thousands of sales and inventory events per second in near real time. Loose asynchronous coupling ensures a service failure does not stop all order intake. Separate order, stock, notification, and shipping services around the event broker, with replay and dead-letter monitoring.

Placement principles

  • Separate producers and consumers by domain boundary
  • Centrally deploy managed or self-hosted event brokers and routers based on availability and throughput
  • Use StatefulSets and persistent volumes for stateful Kafka brokers
  • Operate dead-letter and replay storage, schema registries, and observability storage separately
  • Use near-real-time processing on the hot path and separate consumer groups for batches and analytics.

On premises

For data sovereignty, regulation, DDIL, or air-gap requirements, put brokers and the Kubernetes control plane on site and combine central control with local execution. Self-host only for clear needs such as AMQP compatibility, regulation, or very high throughput; own patching, capacity, backups, and monitoring.

03 / VERIFY

Evidence by criterion (14 total)

Evidence availability at the time of research. Assess source accuracy and currency separately.

Definition and overviewEvidence available

Producers, channels, and consumers carry events in near real time so consumers can respond as they occur.

event producers that generate a stream of events, event consumers that listen for these events, and event channels

learn.microsoft.com original ↗

Problem addressedEvidence available

React to changes without scheduled updates or tight coupling, and support asynchronous, loosely coupled communication.

allows applications to communicate asynchronously through loosely coupled components

www.sap.com original ↗

Key components and resourcesEvidence available

Core components are event producers, event routers, and event consumers.

Event-driven architectures have three key components: event producers, event routers, and event consumers.

aws.amazon.com original ↗

Data and asset placementEvidence available

Place Kafka brokers that retain topic and partition state on StatefulSets with persistent volumes.

Kafka Brokers, which maintain the state of the topics and partitions also need to be deployed as StatefulSets

portworx.com original ↗

Typical use casesEvidence available

Common uses are application integration, sharing and democratizing data, IoT collection and analysis, and event-driven microservices.

The top 4 use cases for event-driven architecture according to a 2021 survey were

solace.com original ↗

Example scenarioEvidence available

In e-commerce, a state-change event such as adding a cart item can trigger downstream order, shipping, and notification services.

an item being placed in a shopping cart on an e-commerce website

aws.amazon.com original ↗

When to avoid and caveatsEvidence available

Without a fitting use case, its complexity can introduce too much overhead to justify adoption.

the tradeoffs of adopting EDA – primarily overhead from its complexity – are not always worthwhile without the right use case.

ably.com original ↗

On premises: development, deployment, and operationsEvidence available

Data sovereignty, regulations, policy, and DDIL can require an on-site Kubernetes control plane and a hybrid of centralized control and local execution.

need the Kubernetes control plane itself to stay on-premises

aws.amazon.com original ↗

Cloud: development, deployment, and operationsEvidence available

Prefer a managed cloud broker to reduce operational burden and focus on application logic; consider self-hosting only for exceptional requirements.

Default to managed brokers to focus on your application logic.

kube-dojo.github.io original ↗

Kubernetes: development, deployment, and operationsEvidence available

On Kubernetes, trigger workloads from events, scale on demand, and scale to zero when idle.

build, deploy, run, and manage event driven applications

www.redhat.com original ↗

Incident responseEvidence available

After bounded retries, quarantine failed events with their reasons in a dead-letter queue or equivalent, and replay them after resolving the cause.

Set failing events aside after a limited number of attempts – in a dead-letter queue

www.eventfoundation.io original ↗

BenefitsEvidence available

Near-real-time delivery lets consumers respond as events happen and keeps them decoupled from producers.

Events are delivered in near real time, so consumers can respond immediately to events as they occur.

learn.microsoft.com original ↗

Drawbacks and trade-offsEvidence available

Extra message hops add latency, and the origin of delays can be difficult to diagnose in production.

Additional latency is one of the trade-offs of adopting an event-driven system

encore.dev original ↗

Representative tools and technologiesEvidence available

One example deploys Kafka and ZooKeeper as Kubernetes StatefulSets.

Kafka needs Zookeeper to be deployed as a StatefulSets in Kubernetes.

portworx.com original ↗

Additional references (23)