Domain-Driven Design (50 Qs)•Part 3: Advanced Architecture & Production Patterns (Senior / Lead)
Ubiquitous Language in Practice: Resolving linguistic ambiguity across departments.
senior LevelSystem Design
In Simple Words: In large enterprises, different departments use the same word with completely different meanings:
- To Sales, an
Accountis a sales prospect with a budget and contract negotiations. - To Engineering / Security, an
Accountis a login username, password hash, and permission roles. - To Finance, an
Accountis a general ledger balance of credits and debits. - The DDD Solution: Never create a single unified
Accountmonolith model. Recognize that these are separate Bounded Contexts (SalesContext,IdentityContext,BillingContext). Each context builds its own distinct model where the term is strictly unambiguous!