Modular Monolith
Build a single deployable whose modules have explicit public interfaces, private data and automatically enforced dependency rules.
3 objectives 6 steps about 130 min
Learn it step by step
Read the lessons in order, try the practice checks, then prove the skill with the knowledge check.
This skill page is a public outline. Its lessons and knowledge check appear here as subject-matter experts approve them.
Learning objectives
- Map bounded contexts to modules, each with a public API, hidden internals and a module-owned schema.
- Enforce module boundaries, including acyclic and stable dependency directions, with automated dependency checks that fail the build.
- Choose between direct calls and in-process events for cross-module communication and plan the seams that allow later extraction.
Lesson plan
6 steps, about 130 min · 5 of 5 lessons available so far
- Why modular first: cost of distribution versus cost of coupling Concept · 15 min
- Module anatomy, owned tables and component principles Concept · 25 min
- Enforcing boundaries with architecture tests Lab · 25 min
- Cross-module calls, in-process events and transactions Concept · 20 min
- Carving a big ball of mud into modules Worked example · 30 min
- Modularity check Knowledge check · 6 questions
Practise it
Split a sample monolith into three or more modules with separate schemas, add a CI dependency rule (for example ArchUnit, import-linter or dependency-cruiser) that fails on a forbidden import, and demonstrate the failing build.
References
Hard prerequisites
None.
Unlocks
Nothing depends on this skill yet.
On these roadmaps
Progress and evidence for this skill are shared across all of them.