(might be overly simplistic)
- An entity is the thing you store in the database
- An aggregate is the thing you work with inside the application and (sort of) end up showing to users
Example: Subscription
A Feed
is an entity, it has an identity and is stored in the database. The application's user can subscribe to a feed. A Subscription
is not an entity. A subscription
is an aggregate that contains a reference to the User
and the Feed
entities.