Additional resources •
Greg Young. What is a Domain Event? https://cqrs.files.wordpress.com/2010/11/cqrs_documents.pdf#page=25
•
Jan Stenberg. Domain Events and Eventual Consistency https://www.infoq.com/news/2015/09/domain-events-consistency
•
Jimmy Bogard. A better domain events pattern https://lostechies.com/jimmybogard/2014/05/13/a-better-domain-events-pattern/
•
Vaughn Vernon. Effective Aggregate Design Part II: Making Aggregates Work Together https://dddcommunity.org/wp-content/uploads/files/pdf_articles/Vernon_2011_2.pdf
•
Jimmy Bogard. Strengthening your domain: Domain Events https://lostechies.com/jimmybogard/2010/04/08/strengthening-your-domain-domain-events/
•
Udi Dahan. How to create fully encapsulated Domain Models https://udidahan.com/2008/02/29/how-to-create-fully-encapsulated-domain-models/
•
Udi Dahan. Domain Events – Take 2 https://udidahan.com/2008/08/25/domain-events-take-2/
•
Jan Kronquist. Don’t publish Domain Events, return them! https://blog.jayway.com/2013/06/20/dont-publish-domain-events-return-them/
•
Cesar de la Torre. Domain Events vs. Integration Events in DDD and microservices architectures https://devblogs.microsoft.com/cesardelatorre/domain-events-vs-integration-events-in-domain-
driven-design-and-microservices-architectures/
Design the infrastructure persistence layer
Data persistence components provide access to the data hosted within the boundaries of a
microservice (that is, a microservice’s database). They contain the actual implementation of
components such as repositories and
Unit of Work
classes, like custom Entity Framework (EF)
DbContext
objects. EF DbContext implements both the Repository and the Unit of Work patterns.
240
CHAPTER 6 | Tackle Business Complexity in a Microservice with DDD and CQRS Patterns