Event-driven architecture

Last Updated: November 18, 2026

Event-driven architecture

Event-driven architecture is a software design approach in which systems communicate by publishing events, such as an order placed or a payment received, and other systems react to those events as they happen. It differs from request-driven designs, where one system calls another and waits for an answer, because producers of events do not know or wait for the systems that consume them.

The choice affects how fast your business reacts and how tightly your systems depend on each other. Without events, teams poll for changes on schedules, data arrives late, and one slow system can hold up every system that calls it.

What is event-driven architecture?

At its core, event-driven architecture treats every meaningful change in the business as a fact that other systems can subscribe to. When a customer updates an address, that change is announced once, and billing, shipping, and marketing each pick it up without being called individually.

Three parts make it work. Event producers detect a change and publish an event, usually a small message with what happened, when, and an identifier. An event broker or streaming platform receives events and stores or forwards them through topics or channels. Event consumers subscribe to the topics they care about and act on each event, often updating their own data or starting a process.

Event-driven design sits alongside APIs. APIs suit questions that need an answer now, such as a balance check. Events suit telling many systems that something happened. Webhooks are a lightweight form of event delivery over HTTP, while brokers such as Apache Kafka handle high volumes with replay and ordering.

Resources: When to use event-driven interactions instead of REST API calls

How event-driven architecture works

An event moves through the same stages from the moment something changes to the moment other systems respond.

  1. Detect the change. An application, device, or database notices that something happened, such as a shipment leaving a warehouse.
  2. Publish the event. The producer sends a message describing the change to a named topic or channel on the broker.
  3. Store and distribute. The broker records the event and makes it available to every subscribed consumer, often keeping it for replay.
  4. Consume and act. Each consumer reads the event at its own pace and runs its logic, such as sending a notification or updating stock.
  5. Track the outcome. Consumers record their position in the stream and the result, and failed events go to a retry or dead-letter topic.

The event log tells you what happened and in what order. It does not tell you whether every consumer handled each event correctly, which needs monitoring of consumer lag and errors.

Resources: How webhooks deliver events to subscribers in event-driven architectures

Why event-driven architecture matters for enterprise IT

Customers expect real-time updates, and AI agents increasingly act on live signals. Event-driven architecture is how enterprises move from nightly batches to reacting within seconds.

  • Faster reactions. Fraud checks, stock updates, and delivery notifications fire as soon as the triggering event occurs instead of on the next scheduled job.
  • Looser coupling. New consumers subscribe to existing events without changing the producer. Adding a new analytics feed does not require a change request to the order system team.
  • Resilience under load. The broker absorbs bursts and holds events while consumers catch up. In a request-driven chain, a slow downstream service can time out every caller, and a Black Friday spike can cascade into an outage.

Event-driven architecture use cases

  1. Retailers use event-driven architecture to update stock across stores and web channels as each sale happens.
  2. Banks use event-driven architecture to run fraud checks on card transactions within milliseconds.
  3. Logistics teams use event-driven architecture to push shipment status to customers and partners in real time.

Key concepts

Publish and subscribe

In publish and subscribe, producers send events to a topic without knowing who will read them, and any number of consumers can subscribe. This is what lets new systems join without changes to existing ones.

Event stream versus queue

A queue usually delivers each message to one consumer and deletes it. An event stream keeps events in order for a set period so many consumers can read them and new ones can replay history.

Eventual consistency

Because consumers process events at their own pace, systems agree a short time after a change, not instantly. Designs must accept this delay or add checks where instant agreement matters.

Benefits

  • React to business changes in seconds instead of hours.
  • Add new consumers without changing producing systems.
  • Absorb traffic spikes through buffering in the broker.
  • Replay past events to rebuild data or test new services.
  • Reduce polling load on core systems such as ERPs and mainframes.

Event-driven architecture best practices

  • Design events as business facts. Name them for what happened, such as OrderPlaced, and include enough data for most consumers to act without calling back.
  • Version event schemas. Use a schema registry and add fields in backward-compatible ways, so old consumers do not break.
  • Make consumers idempotent. Handle the same event twice without side effects, since most brokers deliver at least once.
  • Plan for failure. Route failed events to a dead-letter topic with alerts.
  • Govern topics. Give each topic an owner, a purpose, and access rules, like any API.
  • Monitor consumer lag. Track how far each consumer is behind the stream.

Avoid turning every interaction into an event. A request that needs an immediate answer, such as checking a credit limit before approving an order, is simpler and safer as an API call.

Tools and technologies

  • Amplify Platform Integration Fabric (Axway): supports event-based integration so flows can publish, subscribe, and react to events alongside APIs and files.
  • Apache Kafka: an open-source event streaming platform for high-throughput, ordered, replayable event streams.
  • Amazon EventBridge: a managed AWS event bus that routes events between AWS services, SaaS applications, and custom apps.

Getting started with event-driven architecture

  1. Find a polling pain point. Look for a job that checks a system every few minutes for changes, such as a stock sync. Listing these needs no budget and points to good first events.
  2. Define one event. Write the event name, fields, owner, and expected daily volume for that change, and review it with the teams that will consume it.
  3. Choose a broker. Pick a broker or managed event service that fits your volume, retention, ordering, and deployment needs, including any on-premises requirement.
  4. Build one producer and two consumers. Publish the event and have two different systems react to it, which proves the decoupling works before you scale.
  5. Add governance. Set up a schema registry, topic naming rules, access control, and consumer lag monitoring before more teams start publishing their own events.

Key takeaways

  • Event-driven architecture lets systems publish facts about changes and lets other systems react on their own schedule.
  • It runs on producers, a broker or stream, and consumers subscribed to topics.
  • Systems become eventually consistent, so designs must tolerate short delays.
  • Ungoverned topics and schemas break consumers as quickly as unmanaged APIs do.
  • The biggest gains come from publishing a change once and letting many systems use it.

Frequently asked questions

What is the difference between event-driven architecture and REST APIs?

Event-driven architecture pushes notifications of changes to any interested system, while REST APIs let a client pull data or request an action from a specific service and wait for the reply. With REST, the caller decides when to ask and must know which service to call. With events, the producer announces that something happened, and it does not know or care who reacts. REST is the better fit for queries that need an immediate answer, such as checking a balance or validating an address. Events are the better fit for telling many systems about a change, such as a new customer, without building a separate call to each one. Most enterprise architectures use both: APIs for synchronous questions and commands, and events for broadcasting changes. Webhooks sit between the two, delivering events to subscribers as HTTP calls.

An event in an event-driven architecture should carry enough data for most consumers to act without calling back to the producer, but not the full record of everything related to the change. A thin event with only an ID forces every consumer to call the producer's API, which recreates tight coupling and load. A very large event with every related field increases storage, exposes data consumers do not need, and makes schema changes harder. A common approach is to include the identifier, the type of change, a timestamp, and the fields that changed or that most consumers need, such as order total and customer ID. Sensitive data such as card numbers should be left out or tokenized. Review event contents with the main consumers before publishing, since changing a widely used event later is costly.

Event-driven architecture projects run into ordering problems because events can be processed in a different order from the one they were produced in, especially when consumers run in parallel or retry failures. If an address-change event is retried and lands after a newer address change, the old address can overwrite the new one. Brokers such as Kafka keep order only within a partition, so events for the same customer or order must be sent with the same key to land in the same partition. Consumers should also check timestamps or version numbers and ignore events older than the data they already hold. Not every flow needs strict ordering, so decide per event type. Ordering bugs often show up only under production load, so test with realistic parallelism and failure injection before go-live.

Yes, you can bring legacy systems into an event-driven architecture even if they cannot publish events themselves. The most common method is change data capture, which reads the database transaction log and turns inserts, updates, and deletes into events without changing the application. Another option is an integration flow that polls the legacy system on a schedule, detects changes, and publishes them as events, which keeps polling in one place instead of every consumer. File drops and message queues from older systems can also be converted into events by middleware. Mainframes often expose changes through existing messaging, which an integration platform can bridge to a modern broker. The result is that new consumers subscribe to clean business events while the legacy system keeps running unchanged, which buys time for a later modernization.

A mature event-driven architecture has a catalog of documented business events, each with an owner, a schema under version control, and access rules, much like a well-run API program. Teams can find existing events before creating new ones, so duplicates are rare. Consumers are idempotent and monitored for lag, and failed events land in dead-letter topics that someone reviews. Events are used where they fit, for broadcasting changes, while synchronous APIs remain for queries and commands that need an answer. Security covers who can publish and subscribe to each topic and how sensitive fields are protected. A useful benchmark is how long it takes a new team to start consuming an existing event: in a mature setup that is days, because discovery, access, and documentation are already in place.

Connect events and systems with Amplify Platform Integration Fabric

Amplify Platform Integration Fabric handles events alongside apps, APIs, data, and files across cloud and on-premises systems. Your teams build the workflows that events trigger in low code, on the same platform that runs their other integrations.