Building microservices with Dapr
How can Dapr help us build this e-commerce application by adopting a microservice architecture?
In this section, we will learn about the specific benefits Dapr brings for a microservice architecture. Let's start by exploring loosely coupled microservices.
Loosely coupled microservices
With pub/sub in Dapr, we can achieve two objectives. Not only does Dapr make it transparent to use any of the supported messaging systems, such as Redis, RabbitMq, Azure Service Bus, and Azure Event Hub, it also provides all the plumbing code that's responsible for handling the message operations, ensuring at-least-once delivery.
Two microservices, signaling to one another an event via pub/sub, can coordinate via a loosely coupled connection. If the consumer is experiencing a temporary issue, the information that's sent by the producer will stay safely in the messaging subsystem of choice, waiting for the consumer to come back and get it.
...