8/12
Technical Architecture & AI Engineering · 7 min read

Circuit Breaker State Machine Wrapper for Flaky Downstream APIs

Implement an explicit CLOSED-OPEN-HALF_OPEN circuit breaker in TypeScript with single-probe concurrency gating, 4xx vs 5xx error classification, fallback handlers, and state transition hooks.

Editable Markdown Template (Context & Problem Statement -> Technical Architecture -> Failure Mode & Blast Radius Analysis -> Verification & Monitoring Runbook)

Code Design 8 Circuit Breaker State Machine Wrapper Architecture & Runbook

Author a production-ready engineering specification or operational runbook for Code Design 8: Circuit Breaker State Machine Wrapper, covering architectural trade-offs, failure modes, and monitoring gates.

Your draft auto-saves locally in your browser. Export as Markdown to share in Notion, Confluence, Google Docs, or Slack.