Skip to content
Glossary · System design

Event-driven architecture

Also called EDA, event-driven design.

Definition

A way of designing software where parts of the system publish events about what happened, and other parts react to them on their own.

Last updated

What it is.

An event is a fact, such as order placed or payment failed. The service that saw it publishes the event to a broker or message queue. Any number of other services subscribe: one sends an email, one updates stock, one feeds analytics. The publisher does not need to know who is listening.

This is the opposite of a chain of direct calls, where the order service calls email, then stock, then analytics, and fails if any of them is down.

Why it matters

Events decouple parts of a system, so new features can be added by subscribing to existing events, and a slow consumer does not slow the main flow. The cost is that the flow is harder to follow and debug, and consumers must cope with delays and duplicates.

In a product build

We define event names and payloads as a contract and version them, write events in the same transaction as the data change (often with an outbox table), make consumers idempotent and trace events end to end in observability tools.

Watch out

Common mistakes.

  1. 01

    Using events for things that need an immediate answer, like checking a password.

  2. 02

    Publishing an event and then failing to save the data, or the other way round.

  3. 03

    No catalogue of events, so nobody knows what listens to what.

Tools

Work it out with a tool.

Related

Related terms.

Building something with this? Ask an engineer.

OceanLab designs and builds production software. Tell us what you are planning and we will reply with how we would approach it.

OceanLab

Enterprise Software Engineering - Human + AI

Languages

Locations

Global Headquarters

21 Merchant Road, 3rd Floor, Singapore 058267

Main corporate office and leadership operations

North America Office

548 Market Street, PMB 12472, San Francisco, CA 94104

Client operations and business development

India Office

402 Shivalik Shilp II, SG Highway, Ahmedabad 380015

Engineering and delivery center

© 2026 - Copyright. All Rights reserved OceanLab