Outline
What this book covers and how it is organized: 34 chapters across twelve parts, modernizing a Django monolith to FastAPI with an agentic development lifecycle.
This book modernizes a believable Django monolith into FastAPI services, one seam at a time, using an agentic development lifecycle. The full arc is below.
Part 0: Setting Up
Part 1: Why Modernize
Part 2: The Agentic Development Lifecycle (ADLC)
Part 3: The Reference Monolith
Part 4: Finding the Seams
- Strategic & Tactical DDD + Hexagonal
- Event Storming the Monolith
- Coupling, the Modular Monolith & When Not to Split
Part 5: The Strangler Fig in Practice
- The Strangler Fig Pattern
- Extraction 1: Review Service
- Content-Based Routing & the Anti-Corruption Layer
- Extraction 2: Notification Service (Going Event-Driven)
Part 6: Data Across the Seam
- From Shared Data to Owned Data
- CDC, Transaction Log Tailing & Extraction 3: Inventory
- The Outbox Pattern, Done Right
- Event Sourcing & CQRS
- ACID โ ACD: Living Without Isolation
Part 7: Coordinating Across Services
- Distributed Transactions, the Saga & Extraction 4: Payment (choreographed)
- Orchestrated Sagas & Extraction 5: Shipping (FastAPI Saga Coordinator)
- Failure Modes & the Resilience Chassis
Part 8: Communication & Contracts
- Communication Styles & Extraction 6: Order + GraphQL Gateway
- The FastAPI Chassis
- Contracts & the Service Registry
Part 9: Operating the Modernized System
Part 10: Delivering & Reflection
Part 11: Appendices