Skip to content

bordunosp/ddd

Repository files navigation

DDD (Common part)


go get github.com/bordunosp/[email protected]

  • AggregateRoot - is the parent "Entity" to all other Entities and Value Objects within the Aggregate. A Repository operates upon an Aggregate Root.
  • Entity - is something that has an identifier and an owner
  • DI - (Dependency Injection) is a design pattern in which an object or function receives other objects or functions that it depends on
  • Command - is a behavioral design pattern that turns a request into a stand-alone object that contains all information about the request.
  • Query - is a behavioral design pattern like Command but can return any value (an object structure that can be interpreted into a SQL query)
  • Event - is fundamental design pattern used to create a communication channel and communicate through it via events
  • Assertion - is a list of functions for more readable error checking
  • Sanitizer - way of sanitize (command, query, event) DTO
  • Validator - way of validate (command, query, event) DTO
  • Saga - The Saga architecture pattern provides transaction management using a sequence of local transactions