Skip to content
Go back

80/20 Of The Week: Event-Driven Architecture (EDA)

Edit page

80/20 Of The Week 🗣️ … Event-Driven Architecture (EDA)

If you ever heard stuff like Kafka or RabbitMQ… this is THAT!

Most systems you build start request-driven: User hits an endpoint → Service A calls B calls C → linear and simple

EDA flips it: Instead of “call this service”, you say “something happened” (an event) and whoever cares reacts.

Basically…

When do you use EDA instead of the regular system (better than the “normal” way)

When EDA is not needed


Request-driven: Frontend → Orders API → Payment API → Inventory API → Email API → response

Event-driven: Frontend → Orders API → response ↘ publish OrderPlaced to Kafka ↘ Payment consumer ↘ Inventory consumer ↘ Analytics consumer ↘ Email consumer (for example, PaymentSucceeded)

(I had to google for this arrow emoji lol)

If one request triggers 5+ downstream actions, you already have an EDA-shaped problem 🙂

EDA Concept


Edit page
Share this post on:

Previous Post
80/20 Of The Week: Idempotency and Resilience
Next Post
80/20 Of The Week: Docker Compose and Kubernetes