๐Ÿ—๏ธ Modernizing Enterprise Applications โ€” Python
Home Chapters Examples Diagrams Bibliography GitHub โ†—
Home / The Strangler Fig in Practice
Part 5 4 chapters

The Strangler Fig in Practice

The strangler family and the first two extractions (review, notification); ACL/content-based routing; going event-driven.

Chapter 14

The Strangler Fig Pattern

Fowler's pattern, its three mechanics, and the FastAPI-era strangler proxy: content-based routing from configuration, a 502 fail-safe, and a reversible cutover.

35 minutesRead โ†’
Chapter 15

Extraction 1: Review Service

The first extraction end to end: capture the equivalence gate, stand up a FastAPI service on the shared tables, cut over behind the flag, keep the fallback.

45 minutesRead โ†’
Chapter 16

Content-Based Routing & the Anti-Corruption Layer

Routing decides which backend answers; the anti-corruption layer decides what crosses the seam. The proxy's path-prefix if generalizes to headers and payloads, and a Pydantic event model turns a Kafka message into a contract.

30 minutesRead โ†’
Chapter 17

Extraction 2: Notification Service (Going Event-Driven)

The transactional outbox cures the dual-write hazard, an idempotent aiokafka consumer and an owned schema make notification the first event-driven extraction, and a bounded-wait poll proves the cutover against a real Kafka broker.

50 minutesRead โ†’
โ† Previous part Finding the Seams Next part โ†’ Data Across the Seam

Modernizing Enterprise Applications โ€” Python

A Django monolith strangled to FastAPI microservices, one seam at a time, driven by an Agentic Development Lifecycle (ADLC) and tested throughout.

Book

  • Chapters
  • Examples
  • Bibliography

Reference

  • FastAPI โ†—
  • Django โ†—
  • View on GitHub โ†—
  • Issues โ†—
Open source ยท Apache 2.0 Last built 2026-11-11