Grokking Microservices Design Patterns
0% completed
Event-Driven Architecture Pattern: An Example
A traffic system has road sensors and things that react to them: traffic lights, toll billing, a congestion dashboard. The question is how a sensor tells them.
There are two answers. The sensor can call each one, or the sensor can publish an event and let them listen.
What Changes Between the Two
The difference looks like plumbing and it is not. It decides three things.
- Who the producer knows. Calling means the sensor holds a list of consumers. Publishing means it holds none.
- What happens when one consumer is down. A call that fails is the sensor's problem
.....
.....
.....
Like the course? Get enrolled and start learning!
Reading Progress
0%