228
CHAPTER 6 | Tackle Business Complexity in a Microservice with DDD and CQRS Patterns
Domain events: Design and implementation
Use domain events to explicitly implement side effects of changes within your domain. In other words,
and
using DDD terminology, use domain events to explicitly implement side effects across multiple
aggregates. Optionally, for better scalability and
less impact in database locks, use eventual
consistency between aggregates within the same domain.
Dostları ilə paylaş: