🏗️Event Bus
Also known as Message Bus, Event Broker, Event Stream
A shared line that takes events from senders to whoever wants them.
Think of it like
Think of it like a notice board in a school hall. Anyone can pin a note, and anyone can read it.
Example
In Emma's app, the cart puts an item added event on the bus. The badge counter and the suggestions panel both listen, and both update at once.
Why it matters
It gives a system one place for events to flow. Parts do not have to wire into each other.
Definition
Common mistake
Key takeaways
- 1One shared channel. For all events.
- 2Send without knowing. Who will read it.
- 3Listen by kind. Only what you need.