Files
telecom-platform/apps/api-server/internal
nutcas3 2b23461eef feat: Add circuit breaker pattern implementation to API server with configurable thresholds and timeout
- Add State enum with Closed, Open, and HalfOpen states and String method
- Add CircuitBreaker struct with mutex, state tracking, failure/success counters, and timeout
- Add Config struct with FailureThreshold, SuccessThreshold, and Timeout fields
- Add NewCircuitBreaker constructor with Config parameter
- Add DefaultConfig with 5 failure threshold, 2 success threshold, and 60 second timeout
2026-04-25 06:04:00 +03:00
..