Software Engineering Architecture Lab

Circuit Breakers & Bulkheads

Fail fast, isolate damage, and recover gracefully. Lesson 7 of Level 9: Microservices. Based on Building Microservices, DDD, Software Architecture and DDIA.

Level 9 · Microservices · Lesson 7 of 13

Fail fast, isolate damage, and recover gracefully.

Continue learning

Try it hands-on

  • Circuit Breaker States — Degrade a dependency and watch the breaker trip from closed to open to half-open, with and without fallbacks.
  • Microservice Failure Cascade — Kill Payment, Inventory or Notification in a checkout chain and add timeouts, retries, breakers, async events and sagas.
  • Microservices Lab — Failures, retries, circuit breakers, sagas and idempotency.

All lessons in Microservices

  1. Why Microservices Exist — and When Not to Use Them
  2. Finding Service Boundaries & Splitting the Monolith
  3. Database per Service & Data Ownership
  4. Synchronous vs Asynchronous Communication
  5. API Gateways, BFFs & Service Discovery
  6. Timeouts, Retries & Retry Storms
  7. Circuit Breakers & Bulkheads
  8. Idempotency: Making Retries Safe
  9. Distributed Transactions: 2PC, Sagas & the Outbox
  10. Observability: Logs, Metrics, Traces & SLOs
  11. Deployment: Containers, Kubernetes, Canary & Feature Flags
  12. Testing Microservices & Consumer-Driven Contracts
  13. Teams, Ownership & Conway’s Law