Publish and Subscribe
Publish/Subscribe (pub/sub) is a messaging pattern supported by Distributed Application Runtime (Dapr) to enable decoupled interactions between microservices.
In the previous chapters, we examined how applications can communicate with one another via direct service-to-service invocation. In this chapter, you will learn about the benefits of the pub/sub messaging-based pattern and how to implement it in your Dapr applications.
We have the following as the main topics of this chapter:
- Using the pub/sub pattern in Dapr
- Using Azure Service Bus (ASB) in Dapr
- Implementing the saga pattern
Before we delve into the implementation details of pub/sub in Dapr, an overview of the pattern is necessary.