The Strangler Fig in Practice
The strangler family and the first two extractions (review, notification); ACL/content-based routing; going event-driven.
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.
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.
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.
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.