134
CHAPTER 5 | Designing and Developing Multi-Container and Microservice-Based .NET Applications
of distributed actions. At each action, the microservice updates a business entity and publishes an
event that triggers the next action. Figure 6-18 below, shows a PriceUpdated event published through
an event bus, so the price update is propagated to the Basket and other microservices.
Figure 6-18. Event-driven communication based on an event bus
This section describes how you can implement this type of communication with .NET by using a
generic event bus interface, as shown in Figure 6-18. There are multiple potential implementations,
each using a different technology or infrastructure such as RabbitMQ, Azure Service Bus, or any other
third-party open-source or commercial service bus.
Dostları ilə paylaş: