Documentation
¶
Overview ¶
Package main demonstrates the Fallback pattern for resilience.
The Fallback pattern tries agents sequentially until one succeeds, providing automatic failover and graceful degradation. This is ideal for high-availability systems and multi-provider setups.
This example shows:
- Primary/backup agent configuration
- Automatic failover on errors
- Graceful degradation strategies
- Recovery functions for error handling
Run with: go run fallback_pattern.go
Click to show internal directories.
Click to hide internal directories.