System Design
11. Microservices ArchitectureAnimated
Domain-Driven Design
Model software from the business domain.
The idea
Use ubiquitous language, bounded contexts and aggregates to find service boundaries.
Watch it work
Press play, pause, or step through. Some animations have settings you can change.
- 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
- 1Learn the domain with experts
- 2Name concepts consistently
- 3Find contexts
- 4Model aggregates
Where it is used
Complex domains.
Watch out for
Overkill for simple CRUD.