IOSOR Learn
PSP Downtime Circuit Breaker Patterns for Auto-Recharge
Compare provider circuit-breaker configs and failover latency to prevent recharge stalls during payment gateway outages, then trigger Decision Brief for resilient PSP routing.
Lead Telecom & Routing Architect · Lausanne, CH
Engineers evaluate circuit-breaker thresholds, half-open state transitions, and failover latency across PSPs to prevent auto-recharge stalls during gateway outages, then use Decision Brief to match verified partners with resilient routing.
Failure Detection Thresholds
Configure error-rate and latency percentiles (p95/p99) that trip the breaker within 5–10 seconds of sustained PSP degradation. Distinguish between transient HTTP 5xx spikes and hard downtime via consecutive failure counters. Validate thresholds against historical DLR receipts and webhook latency logs to avoid false positives that trigger unnecessary route switches.
Half-Open State Validation
Define probe cadence and success criteria for half-open transitions — typically 3–5 successful probe transactions at 30-second intervals before full restoration. Probes must exercise the full recharge path: balance check, authorization, capture, and webhook confirmation. Log each probe outcome with correlation IDs for post-incident audit.
Failover Latency Budgets
Measure end-to-end failover time from breaker trip to first successful transaction on the backup PSP. Target <15 seconds for hot-standby routes; <45 seconds for cold routes requiring token refresh. Include DNS TTL, TLS handshake, and partner API cold-start in budgets. Compare actuals against SLA commitments via Decision Brief.
Idempotency & Duplicate Prevention
Ensure every recharge request carries a unique idempotency key scoped to the account and amount. Backup PSP must honor the same key space or provide deterministic deduplication. Verify via replay tests that zero duplicate charges occur during breaker flip-flop scenarios.
Observability & Alerting
Emit structured events for every state change: closed→open, open→half-open, half-open→closed. Correlate with webhook delivery timestamps and DLR receipt gaps. Alert on breaker-open duration exceeding 60 seconds or half-open probe failure rate >20%. Feed metrics into the same dashboard used for route-switch latency audits.
Start with IOSOR
Run the partner-comparison checklist: 1) Confirm each PSP exposes circuit-breaker config via API or docs. 2) Validate half-open probe success criteria match your idempotency scheme. 3) Measure failover latency in staging with synthetic traffic. 4) Compare verified partner routes for your corridor. 5) Document breaker thresholds in runbooks with escalation contacts.
Related: Auto-Recharge Failover Route Switch Latency Audit • Auto-Recharge PSP Settlement Timing Mismatch • Auto-Recharge Grace Over Then Send Pauses.
IOSOR takeaway
Configure error-rate and latency percentiles (p95/p99) that trip the breaker within 5–10 seconds of sustained PSP degradation. Feed metrics into the same dashboard used for route-switch latency audits (/tools/brief · DLR / webhook).
Was this guide helpful?
Related guides
- Auto-Recharge budget Velocity Throttling and Queue Depth Controls
Decide concurrency caps and queue depth for auto-recharge budgets so PSP rate limits and wallet concurrency never cause silent send stalls.
- Calibrating Auto-Recharge Trigger Thresholds Against Real Burn Rate
Set the auto-recharge trigger from measured burn rate and PSP latency, so budgets fire before send-rate spikes drain the wallet without leaving idle float.
- Auto-Recharge Threshold Band Sizing: Evidence Audit Before Route Compare
Audit the trigger band before you compare routes: quantify depletion latency, DLR receipts, and fee bands so every threshold carries defensible evidence.












