Distribu-ready with the Modular Monolith
summary
Argues that a modular monolith gives a safer path to distribution by slicing a monolith into KitKat pattern modules that can become satellite modules later. Demonstrates a working project (Tacky Tacos), uses .NET minimal APIs, mediator-style handlers that can upgrade to a message bus (RabbitMQ), and shows event flow with routing keys like orders.update.paid plus thin vs fat messages. Recommends code-first vs data-first tradeoffs, private-by-default access, compile-time architecture tests and static analysis to enforce loose coupling and high cohesion.
AI-written summary · about
chapters (15)
- 0:00Introduction and welcome
- 3:12Why simplicity matters
- 7:52Monolith vs distributed systems
- 15:26The distributed monolith trap
- 20:26Modular monolith explained
- 23:18KitKat pattern for modules
- 26:50Decomposing modules incrementally
- 30:02Making modules distribute-ready
- 32:09Module independence and communication
- 37:30Inter-module communication strategies
- 46:11Balancing complexity and modularity
- 47:16Enforcing architecture rules
- 55:02Style guides and documentation
- 56:32When to use modular monolith
- 58:21Q&A and closing
