Using Azure Service Bus in Dapr
To introduce the pub/sub building block of Dapr with the Azure Service Bus implementation, we will develop, in C#, a prototype of a collaboration between some .NET microservices.
This is what we would like to accomplish:
In Figure 5.2, we have the Order service interacting with the Reservation service via service-to-service invocation, and with the Shipping service via pub/sub: this is the portion we are going to develop.
In the chapter05
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
I created samples with several C# projects grouped in a solution, with separate projects for data transfer objects (DTOs) and a common library for constants, and so on, referenced by both the service and client projects.
My...