๐Ÿ—๏ธ Modernizing Enterprise Applications โ€” Python
Home Chapters Examples Diagrams Bibliography GitHub โ†—
Home / Coordinating Across Services
Part 7 3 chapters

Coordinating Across Services

Distributed transactions, choreographed saga (+ payment), orchestrated saga (+ shipping), failure modes and the resilience chassis.

Chapter 23

Distributed Transactions, the Saga & Extraction 4: Payment (choreographed)

Checkout's synchronous 201 or 402 becomes an asynchronous 202 with a PENDING order, a choreographed saga captures payment and confirms or compensates, and the equivalence suite learns to verify an outcome it cannot observe on the same request.

45 minutesRead โ†’
Chapter 24

Orchestrated Sagas & Extraction 5: Shipping (FastAPI Saga Coordinator)

Shipping becomes a bounded, orchestrated saga: one FastAPI coordinator sequences dispatch and owns the compensation decision, the cross-context undo is delegated to the order context that owns the data, and a refund hop closes the stranded-payment gap.

40 minutesRead โ†’
Chapter 25

Failure Modes & the Resilience Chassis

Partial-failure taxonomy; timeouts, retry with backoff, circuit breaker, bulkhead; the FastAPI resilience chassis and what is not built.

35 minutesRead โ†’
โ† Previous part Data Across the Seam Next part โ†’ Communication & Contracts

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