Event-driven architecture
A way to build systems where parts communicate by publishing events, without knowing each other.
Example
The shopping service publishes «order created» and email, stock and billing react, without shopping knowing they exist.
Test yourself: Event-driven architecture
Event-driven architecture
How do the parts communicate in an event-driven architecture?
1 published event can reach 5 consumers without the publisher knowing any of them.
Event-driven architecture
A bank wants to store each account movement as an event and compute the balance from them. Which pattern is it?
Instead of storing just «balance: $500», it stores «deposited $800» and «withdrew $300». The balance is computed by adding up the events, and the full history remains.
Event-driven architecture
You want to add an analytics service that gets every order. Which EDA advantage helps?
Analytics subscribes to the «order created» event and the producer keeps 0 changes.
0/3
▶ Play