Event-driven
Pronunciationih-VENT DRIV-en
Definition
A design where parts of the system react to events ("order created") instead of calling each other directly.
Where you hear it
Modern backend architecture and cloud systems.
Examples
When an order is created, an event triggers the email and invoice services.
An event-driven design keeps services loosely coupled.
The inventory service reacts to the order-placed event without the checkout calling it.
Common mistake
Calling it event-driven just because you use a queue. The flow must really be driven by events.
Don't confuse with
Event-driven architecture reacts to state changes asynchronously, while a message-driven architecture focuses on routing specific messages to specific recipients.
Say it at work
- In a meeting or chat
Let's make sure our new microservice is event-driven so it doesn't block the checkout flow.
- In an email or ticket
We should adopt an event-driven approach for this workflow to improve service decoupling.
Keep exploring
More in Architecture & Design