DDD & Microservices — learning path
Strategic design (domains, ubiquitous language, bounded contexts, context maps), tactical design (entities, value objects, aggregates, repositories, services, domain events, event storming) and the data and API patterns that make microservices workable.
Legend
| Badge | Meaning |
|---|---|
| Must-know | asked in almost every interview; you meet it at work constantly |
| Important | frequent; expected at senior level |
| Good to know | extra depth that sets you apart |
| WIP / Todo | shown next to a chapter only while it is still being written |
How to read this page. Groups are in reading order and each one builds on the previous; short on time, take the Must-know chapters of every group first. The last column says in one line what the chapter gives you. Every chapter ends with a Self-check: questions & answers block (open/close all, filter by level); all questions are collected in the Interview Q&A hub.
Chapters
15 chapters · 15 complete
Strategic Design
| Chapter | Level | What you learn |
|---|---|---|
| Why DDD | Important | DDD is a way to keep software aligned with a complex business by sharing one model and one language between experts and code, and by drawing boundaries around that model; strategic design (what to build… |
| Domains, Subdomains (Core, Supporting, Generi… | Must-know | A business is a domain made of subdomains, and they are not equal: the core is where the company wins, supporting subdomains are necessary but not a reason anyone buys from you… |
| Ubiquitous Language | Must-know | A ubiquitous language is one rigorous vocabulary, owned by experts and developers together, used in speech, diagrams, code, tests, APIs and the UI of one bounded context; when the words change… |
| Bounded Context | Must-know | A bounded context is an explicit boundary inside which one model holds and every word of the language means exactly one thing; outside it the same word may mean something else, and that is allowed. |
| Context Maps & Integration Patterns | Important | A context map is a drawing of today's reality: which bounded contexts exist, who depends on whom, whose model wins at each edge, and who pays for translation. |
Tactical Design
| Chapter | Level | What you learn |
|---|---|---|
| Entities & Value Objects | Must-know | An entity is something whose identity runs through time while its attributes change; a value object is something described completely by its attributes, immutable… |
| Aggregates & Factories | Must-know | An aggregate is a small cluster of entities and value objects with one root, one set of invariants and one transaction; everything outside it is referenced by identity and kept consistent eventually… |
| Anemic vs Rich Domain Models | Important | An anemic model keeps data in objects and rules in services; a rich model keeps the data and the rules that protect it in the same object. |
| Repositories | Must-know | A repository is the door through which the application loads and saves whole aggregates, one repository per aggregate root, in the language of the domain; it hides the database, never commits a transaction… |
| Domain, Application & Infrastructure Services | Important | "Service" names three different things in a DDD codebase: a domain service holds a business rule that belongs to no single entity… |
| Domain Events vs Integration Events | Must-know | A domain event is a fact inside one bounded context, named in its ubiquitous language, recorded by an aggregate and handled in-process; an integration event is a versioned… |
| Event Storming | Important | Event Storming is a workshop where experts and developers stick orange past-tense events on a long paper roll, then add commands, actors, policies, read models… |
Data & APIs in Microservices
| Chapter | Level | What you learn |
|---|---|---|
| Data Patterns | Must-know | Once every context owns its data there are no joins and no transactions across services, so reads that span contexts need a deliberate pattern: compose at query time… |
| Designing for Failure & Reliable Messaging in… | Important | A bounded context stays correct when its neighbours fail by treating every message as possibly late, duplicated, reordered or lost: one aggregate and one outbox row per local transaction… |
| API Realization | Important | A bounded context becomes usable by others when its model is turned into a published API: an Open Host Service whose resources… |