VIP 👤
🏠 Home
Benchmark
📊 Tutti i benchmark 🦖 Dinosauro v1 🦖 Dinosauro v2 ✅ App To-Do List 🎨 Pagine libere creative 🎯 FSACB - Ultimate Showcase 🌍 Benchmark traduzione
Modelli
🏆 Top 10 modelli 🆓 Modelli gratuiti 📋 Tutti i modelli ⚙️ Kilo Code
Risorse
💬 Libreria di prompt 📖 Glossario IA 🔗 Link utili 🔌 API e router IA
advanced

Implement a Stateful Circuit Breaker

#resilience #microservices #fault-tolerance #design-patterns

Implement a Circuit Breaker pattern with state management for handling downstream service failures.

You are a Cloud Infrastructure Engineer. Write a detailed specification and code structure for a robust Circuit Breaker component. The implementation must manage states (Closed, Open, Half-Open), handle timeouts and failure thresholds, and support a sliding window or rolling counter for success/failure rates. Explain how this component integrates with a service client to prevent cascading failures in a distributed system.