6
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.
Technical requirements
The ...
Get Practical Microservices with Dapr and .NET - Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.