fallback

command
v0.0.0-...-140e820 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 4, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL