When to fallback to another channel
There can various reasons for which you can set up a fallback:- Provider API fails with 4xx, 5xx or times out.
- Provider was not able to deliver the notification within X seconds.
- Recipient details unavailable or User has opted-out of the channel
This example says that: If the provider API fails (4xx, 5xx) or connection times
out within 30s, then fallback to WhatsApp. The fallback channel is triggered as
soon as the API fails. Raven waits for 30s only if there is a delay in API
success/failure response.
Note that, an API success from the provider DOES NOT guarantee a successful
delivery of the notification (SMS, Push, Email, WhatsApp, Voice). It means that
the provider has accepted the request and will now attempt to deliver. If you
want to fallback when the notification has not delivered instead, then check out
condition below.
Case 2: Notification not delivered
This example says that: If the notification does not deliver within 10s, then
fallback to WhatsApp. This rule is a super set of Case 1 and considers both
options:
- API failure
- Delivery failure (can happen due to unavailability of recipient, network issue etc)
In case the provider is throttling requests due to some rate-limit set for
your account, Raven will retry the request automatically till there is a
resolution. You need not setup fallbacks in this case.

