Implement the monolith - the one well modularized
summary
Case study of turning a legacy service into a modularized monolith shows concrete steps: define a module API as the only exported class, write unit tests for the API, add a Jenkins build step that runs ArchUnit rules, and scan modules gradually. Enabling the main rule initially surfaces about 3,000 violations so teams fix the smallest module first (50–60 violations), move or elevate classes, use mob programming for decisions, and patch gaps like Groovy test detection.
AI-written summary · about
chapters (40)
- 0:00Intro
- 1:28Start with monolith first
- 3:20A kind of agenda
- 4:21The monolith or a microservice
- 5:32The perfect microservice
- 7:06There's this small feature... GDPR
- 9:11And one more: T&C
- 12:46Two modules and... the rest
- 13:31DB Relations
- 15:33The future: replace Identity module
- 16:31We know where we're going
- 17:41Broken boundaries
- 18:24Is there a tool to help us
- 20:44ArchUnit
- 21:49Example: Field injection
- 26:03Example: Coding rules
- 26:50Example: layered architecture
- 28:28Example: Slices
- 29:31More examples
- 30:34Access module using its API
- 31:18Rule #1: Access Module via API
- 32:14Rule #1: Implementation
- 33:55Rule #1: Should be included in scan
- 34:32Rule #1: Rule check
- 36:39Rule #1: Actual dependency check
- 37:17Module has API
- 37:39Rule #2: Implementation
- 38:26Module API is unit tested
- 39:14Module internal architecture
- 39:59New build step
- 40:19Start with a simple one
- 41:32Approach
- 42:23The next one
- 43:45Mob programming
- 44:48Other simple modules
- 45:38Create a new module
- 46:00Largest modules comes last
- 46:33Cohesion
- 47:39Next steps
- 48:36DEVOX UKRAINE
related talks
45mImplement a Monolith. But Make It Modular with Well-Enforced Boundaries
59mMajestic Modular Monoliths
46mFrom Chaos to Cohesion: Building Modular Monoliths in the Real World
47mModular Monoliths
01h 01mModular Monolith Instead of Microservices: How, When and Why
01h 01mBuilding Modular Monoliths using Spring Modulith
45mOnce Upon a Time... Modular Monolith: The Quest for the Perfect Architecture
52mMonoliths to Modular: Navigating the Transition
