Skip to content
StackDecode
System Design
3. Client-Server ArchitectureAnimated

Domain-Driven Design (DDD)

Modelling software around the business domain and its language.

The idea

Teams and developers share a ubiquitous language, split the domain into bounded contexts, and model aggregates, entities and value objects.

Watch it work

Press play, pause, or step through. Some animations have settings you can change.

InfrastructureApplication ser…Domain servicesDomain model
  • client
  • gateway / proxy
  • service
  • cache
  • data store
  • queue / stream

Layers wrap the domain model like an onion.

step:
1/4
at:
Domain model
1/9

The green dot is a request moving through the system.

Step by step

  1. 1Talk with domain experts
  2. 2Agree on shared terms
  3. 3Split into bounded contexts
  4. 4Model aggregates inside each

Where it is used

Complex business domains.

Watch out for

Heavy for simple CRUD systems.

Related