juniorDDD
What is a Bounded Context?
Updated Apr 28, 2026
Short answer
A boundary within which a particular domain model is defined and applicable. It keeps the model consistent and prevents ambiguity.
Deep explanation
DDD is not just about coding; it's about modeling the business. By using Ubiquitous Language, we ensure the code reflects the mental model of the domain experts. Entities handle identity (like a User ID), while Value Objects handle data (like an Address).
Real-world example
An e-commerce system where 'Order' is an Entity, but 'Shipping Address' is a Value Object.
Common mistakes
- Making everything an Entity even if it doesn't need identity.
Follow-up questions
- Why are Value Objects immutable?