IOSOR Learn
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.
Lead Telecom & Routing Architect · Lausanne, CH
Set a hard concurrency ceiling per PSP route, size queue depth to absorb burst without breaching rate limits, and gate every send on DLR receipt and webhook latency so silent stalls surface as alerts, not lost budgets.
Map PSP rate limits to a concurrency ceiling per route
Start by recording the documented request-per-second and concurrent-connection caps for each candidate PSP route, then derive a safe ceiling at 70–80% of the published limit. Express the ceiling as max in-flight budget requests per route, not as a global number, because a single slow route will otherwise consume the whole budget.
Size queue depth against burst arrival and drain rate
Queue depth must be a function of burst arrival rate divided by drain rate, plus a safety margin for retry storms. Measure arrival bursts from historical auto-recharge triggers and set depth to cover the 99th percentile burst for at least two drain cycles. A queue that drains in under one minute at normal throughput needs depth for roughly two minutes of peak arrival, not a fixed thousand-item buffer.
Gate sends on DLR receipts and webhook latency
Throttling without delivery confirmation hides failures. Require a DLR receipt or webhook callback within a per-route timeout before releasing the concurrency slot; otherwise the slot leaks and the queue stalls silently. Track webhook latency percentiles per route and compare them to the timeout budget. If webhook p95 exceeds half the timeout, reduce the concurrency ceiling for that route until latency recovers.
Separate wallet concurrency from messaging concurrency
Wallet balance updates and messaging sends compete for different resources. Serialize balance mutations per account with a short lock and keep messaging concurrency independent, so a slow wallet write does not block budget sends. Verify that a failed balance update rolls back the send slot cleanly and re-enqueues with the original idempotency key.
Compare partner routes before locking thresholds
Thresholds are only valid for the route they were measured on. Before committing, compare candidate PSP and messaging routes on documented throughput caps, queue behavior under load, failover readiness, and webhook latency. Use the Decision Brief partner comparison to pull route-level caps and failover posture side by side, then re-run your burst test against each shortlisted route.
Start with IOSOR
Run this checklist before you set production thresholds: list each candidate route with its documented RPS and concurrency cap; compute the 70–80% ceiling per route; record p95 send latency and webhook latency at that ceiling; set queue depth to two peak drain cycles; define the DLR timeout and dead-letter rule; and confirm failover route-switch latency.
Related: PAYG hold before first debit · Wallet stop-lines before production.
IOSOR takeaway
Start by recording the documented request-per-second and concurrent-connection caps for each candidate PSP route, then derive a safe ceiling at 70–80% of the published limit. Use the Decision Brief partner comparison to pull route-level caps and failover posture side by side, then re-run your burst test against each shortlisted route (/tools/brief · DLR / webhook).
Was this guide helpful?
Related guides
- 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.
- Auto-Recharge Recovery Thresholds: Verification and Comparison
Set the auto-recharge fire point versus the spend-throttle point, then verify a route's breach recovery and escalation path before you commit.












