2dbi
Home/Twilio/Fallback Routing (SMS -> Email) Module
TTwilio·DSAP2Onsite – Coding (Practical)

Fallback Routing (SMS -> Email) Module

Problem

Implement an extensible message-delivery module that tries channels in order (SMS, then email, then push) until one succeeds, with retry/backoff on failure.

Example

send(msg): try SMS -> fail -> try email -> success

Constraints

  • Channels pluggable; transient vs permanent failures differ

Approach

Strategy/chain pattern over channels; exponential backoff; idempotency to avoid double-send.

added 6 days ago
LeadersAccount