ExecutionPlan for declarative retry/fallback strategies across different providers. This is ideal for production systems needing high availability.
Requires Effect 3.16.0 or later. Check your version with
pnpm list effect.Basic Setup
How It Works
- First provider fails → Retries according to its schedule (up to
attemptstimes) - All retries exhausted → Moves to next provider in the chain
- Success at any point → Returns result, skips remaining providers
- All providers fail → Returns error from final provider
Advanced Schedules
Combine Effect Schedule primitives for sophisticated retry logic:Multiple Operations
Apply the same plan to multiple operations:Benefits
Comparison with FallbackTransport
FallbackTransport is transport-level, ExecutionPlan is effect-level:
ExecutionPlan when you need:
- Different retry strategies per provider
- Fine-grained schedule control
- Fallback for non-transport layers (signers, formatters, etc.)
Next Steps
- HttpTransport - Transport configuration
- Effect Schedule - Schedule combinators
- Effect 3.16 Release - ExecutionPlan announcement

