Building a Modular Monolith Using DDD
summary
Shows how to apply Domain-Driven Design to structure a legacy Python monolith: using strategic techniques like event storming and tactical patterns (services, repositories, domain models, value objects) with concrete code examples. Explains module/ bounded-context decomposition to avoid a “big ball of mud,” contrasts modular vs distributed monoliths, demonstrates a hexagonal architecture example in Python, and shows how these ideas map to a FastAPI+SQLAlchemy stack (and similarly to other frameworks).
AI-written summary · about
chapters (14)
- 0:00DDD introduction
- 1:26What is DDD?
- 3:57Legacy monolith challenges
- 5:01System research
- 8:12C4 architecture model
- 10:40Business roles
- 13:05Use cases analysis
- 15:30Event storming
- 20:05Migration strategies
- 23:16Monolith types
- 27:11Modular monolith design
- 29:38Domain model
- 36:04Domain model benefits
- 39:12Key takeaways
