Skip to content

Instantly share code, notes, and snippets.

@drilla
Last active January 24, 2021 13:06
Show Gist options
  • Save drilla/4b6bcf9c7d8edd1dd32ede4bb17521ac to your computer and use it in GitHub Desktop.
Save drilla/4b6bcf9c7d8edd1dd32ede4bb17521ac to your computer and use it in GitHub Desktop.
Domain driven desing

Evans: Although REPOSITORIES and FACTORIES do not themselves come from the domain, they have meaningful roles in the domain design. These constructs complete the MODEL-DRIVEN DESIGN by giving us accessible handles on the model objects.

An AGGREGATE is a cluster of associated objects that we treat as a unit for the purpose of data changes. Each AGGREGATE has a root and a boundary. The boundary defines what is inside the AGGREGATE. The root is a single, specific ENTITY contained in the AGGREGATE.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment