Skip to content

Latest commit

 

History

History
28 lines (14 loc) · 1.13 KB

NOTES.MD

File metadata and controls

28 lines (14 loc) · 1.13 KB

Domain-Driven Frontend Notes

Vocabulary

Entity

An object defined primarily by its identity that can change over time.

Repository

An object with the purpose of store and retrieve entities. Its form should be indipendent from the data source.

Service

A Service is an object that orchestrates the steps required to fulfill the commands imposed by the client. Notice that in DDD there are three different kind of services: Domain, Application and Infrastructure. However, this classification lose some of its importance for a fronte-end application.

Value Object

Value Objects are objects that are known only by their properties and values. Adresses, 2D Points and other immutable structures are designable with Value Objects.

Aggregate

An Aggregate is a cluster of domain objects (entities or value objects) that can be treated as a single unit. Their main purpose is to ensure the validity of the business rules related to the domain.

Domain events

Something happened that is relevant to the domain, their name should be in past tense, in order to communicate that something is already happened in the system.