136
CHAPTER 5 | Designing and Developing Multi-Container and Microservice-Based .NET Applications
The event bus
An event bus allows publish/subscribe-style communication between microservices
without requiring
the components to explicitly be aware of each other, as shown in Figure 6-19.
Figure 6-19. Publish/subscribe basics with an event bus
The above diagram shows that microservice A publishes
to Event Bus, which distributes to subscribing
microservices B and C, without the publisher needing to know the subscribers. The event bus is
related to the Observer pattern and the publish-subscribe pattern.
Dostları ilə paylaş: