Skip to main content
Effect 3.16+ introduces 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

  1. First provider fails → Retries according to its schedule (up to attempts times)
  2. All retries exhausted → Moves to next provider in the chain
  3. Success at any point → Returns result, skips remaining providers
  4. 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:
Use ExecutionPlan when you need:
  • Different retry strategies per provider
  • Fine-grained schedule control
  • Fallback for non-transport layers (signers, formatters, etc.)

Next Steps