fallback
You can use the fallback
provider to add more resilliancy to your application.
A fallback will attempt to use the first client, and if it fails, it will try the second client, and so on.
You can nest fallbacks inside of other fallbacks.
BAML
Options
strategy
The list of client names to try in order. Cannot be empty.
retry_policy
Like any other client, you can specify a retry policy for the fallback client. See retry_policy for more information.
The retry policy will test the fallback itself, after the entire strategy has failed.
BAML
Nesting multiple fallbacks
You can nest multiple fallbacks inside of each other. The fallbacks will just chain as you would expect.
BAML