Web apps & software

What is domain-driven design?

Domain-driven design (DDD) is an approach to building complex software in which the code is organized around the business domain itself: its vocabulary, rules and boundaries, worked out together by developers and the people who know the business.

Core ideas

  • Ubiquitous language: if dispatchers say "job" and "shift", the code says job and shift too, not "task" and "session". Meetings, tickets and code share one vocabulary, which removes a whole class of misunderstandings.
  • Bounded contexts: a word can mean different things in different parts of a business. A "customer" in billing has invoices and tax details; in support it has tickets. DDD lets each context own its own model and translates between them at clear borders.
  • Aggregates: clusters of objects that must change together under one rule, such as an order and its lines, saved as a unit.

Why it helps owners as well as developers

When the software mirrors how the business actually works, change requests are easier to discuss and cheaper to make. Bounded contexts also give natural lines for splitting a team or a system later.

When to skip the heavy version

DDD's tactical patterns add ceremony. A simple booking form does not need aggregates and repositories. Most small projects benefit from the lightweight parts, a shared glossary and clear module boundaries, and save the full toolkit for the core area where the business logic is genuinely complicated.

Questions, answered

Eric Evans, in his 2003 book Domain-Driven Design.

No. Bounded contexts can be modules inside one application.

By the Stegnor team · Updated