Designing Modular Monolith First For Microservice Architecture
summary
Advocates building a modular monolith first and then splitting into microservices, with concrete patterns: modules expose contracts and integration APIs, use separate DbContexts per module, start with a single database then migrate modules to separate DBs as needed, and implement event-driven sync with the outbox/inbox pattern plus distributed locking. Uses Redis for distributed cache (Redis), RabbitMQ/Kafka for brokers, and ABP framework/ABP Studio; demo is a working shopping app (basket, catalog, ordering, payment) with source on GitHub.
AI-written summary · about
chapters (18)
- 0:00Introduction and speaker intro
- 1:51Speaker background and talk overview
- 5:11Benefits and trade-offs of microservices
- 8:22Why start with modular monolith
- 10:04Layering and module design
- 13:20Database design strategies
- 17:42Module communication patterns
- 21:16Synchronous communication and caching
- 25:51Caching vs data duplication
- 28:45Asynchronous communication with events
- 31:12Transaction handling in distributed systems
- 35:07Transitioning to microservices
- 38:36Database migrations in microservices
- 40:27Authentication in distributed systems
- 43:00Development and testing challenges
- 45:50Deployment and orchestration
- 47:19Live demo walkthrough
- 55:03Q&A session
