Using Azure Service Bus (ASB) in Dapr
To introduce the pub/sub building block of Dapr with the ASB implementation, we will develop, in C#, a prototype of a collaboration between some .NET microservices.
The following figure shows what we would like to accomplish:
Figure 6.2 – Pub/sub in Dapr with ASB
In Figure 6.2, we have the Order
service interacting with the Shipping
service via pub/sub; this is the portion we are going to develop.
In the chapter06
folder, you will find many projects. For now, we will focus on order-service (sample.microservice.order)
and shipping-service (sample.microservice.shipping)
.
Important note: projects and solution
We created samples with several C# projects grouped in a solution, with separate projects for Data Transfer Objects (DTOs), a common library for constants, and so on, referenced by both the service and client projects.
Our intention was to organize the assets in a way that would be easy to consume...