An entity is a domain object representing a distinct business concept, such as an Article or Feed. It captures application-relevant data without depending on databases, HTTP frameworks, or other infrastructure. section 11.1.2
Use entities to establish the nouns and boundaries of a shared domain model:
- Define only fields the application cares about, using portable standard-library types such as time.Time. section 11.1.2
- Place the domain at the center so API and worker modules can share its vocabulary without tight coupling. section 11.1.2
- Pair entity data with interfaces that describe required behavior while leaving implementations replaceable. section 11.1.2
Figure 11.3 Domain-driven design separates core logic from infrastructure.
The architecture diagram shows entities and interfaces at the domain center, with protocols and services depending inward. section 11.1.2











