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 to a microservice architecture. Let’s start by exploring them all and begin with 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 Hubs, but 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...