VIP 👤
🏠 Ana Sayfa
Benchmarklar
📊 Tüm Benchmarklar 🦖 Dinozor v1 🦖 Dinozor v2 ✅ To-Do List Uygulamaları 🎨 Yaratıcı Serbest Sayfalar 🎯 FSACB - Nihai Gösteri 🌍 Çeviri Benchmarkı
Modeller
🏆 En İyi 10 Model 🆓 Ücretsiz Modeller 📋 Tüm Modeller ⚙️ Kilo Code
Kaynaklar
💬 Prompt Kütüphanesi 📖 YZ Sözlüğü 🔗 Faydalı Bağlantılar 🔌 Yapay Zeka API'leri ve Yönlendiriciler
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.