Skip to content

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 ​

BadgeMeaning
Must-knowasked in almost every interview; you meet it at work constantly
Importantfrequent; expected at senior level
Good to knowextra depth that sets you apart
WIP / Todoshown 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 ​

ChapterLevelWhat you learn
Why DDDImportantDDD 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-knowA 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 LanguageMust-knowA 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 ContextMust-knowA 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 PatternsImportantA 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 ​

ChapterLevelWhat you learn
Entities & Value ObjectsMust-knowAn entity is something whose identity runs through time while its attributes change; a value object is something described completely by its attributes, immutable…
Aggregates & FactoriesMust-knowAn 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 ModelsImportantAn 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.
RepositoriesMust-knowA 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 ServicesImportant"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 EventsMust-knowA 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 StormingImportantEvent 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 ​

ChapterLevelWhat you learn
Data PatternsMust-knowOnce 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…ImportantA 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 RealizationImportantA bounded context becomes usable by others when its model is turned into a published API: an Open Host Service whose resources…

Built by Morteza Negahi