
ProEnterprise
Automatic Failure Protection
When one of your third-party services starts failing, ApiLab steps in to protect your system. Its circuit breaker feature automatically prevents repeated failures from dragging everything down, giving failing services time to recover.
How It Works
- Monitor: Continuously track success/failure rates for each endpoint
- Detect: Identify when failure rates exceed configurable thresholds
- Protect: Automatically stop sending requests to failing services
- Recover: Periodically test if the service has recovered
- Resume: Gradually restore traffic once health improves
Configuration Options
Failure Thresholds
- Error Rate: Trip when errors exceed X% over Y requests
- Consecutive Failures: Trip after N consecutive failures
- Response Time: Trip when latency exceeds threshold
- Custom Conditions: Define complex rules based on your needs
Recovery Strategies
- Fixed Delay: Wait a set time before retry
- Exponential Backoff: Increase wait time between retries
- Percentage-based: Gradually increase traffic percentage
- Health Check: Use dedicated endpoint to verify recovery
Benefits
- Prevent Cascading Failures: Stop problems from spreading through your system
- Reduce Load: Give failing services breathing room to recover
- Improve User Experience: Fail fast with graceful degradation
- Lower Costs: Avoid wasting resources on doomed requests
Advanced Features
- Fallback Responses: Return cached or default responses when circuit is open
- Partial Degradation: Keep critical endpoints open while protecting others
- Multi-level Breakers: Different thresholds for different criticality levels
- Real-time Notifications: Alert teams when circuits open or close
