239
CHAPTER 6 | Tackle Business Complexity in a Microservice with DDD and CQRS Patterns
The reference app uses
MediatR
to propagate domain events synchronously across aggregates, within
a single transaction. However, you could also use some AMQP implementation like
RabbitMQ
or
Azure Service Bus
to propagate domain events asynchronously, using eventual consistency but, as
mentioned above, you have to consider the need for compensatory actions in case of failures.
Dostları ilə paylaş: