1 Answers
A:
Start by setting up a retry policy with exponential backoff. Instead of retrying UPI payment confirmations instantly, configure your reconciliation software to wait progressively longer between each retry, for example, retry after 5 seconds, then 15, then 30, and so on. This prevents overwhelming the UPI or PSP APIs when they’re already under load. Most modern reconciliation tools (or custom middleware) support backoff parameters in their API integration settings or through webhook retry policies.
Next, define a response time threshold that triggers throttling. Let’s say your normal UPI API response time is under 2 seconds. If it spikes beyond 5 seconds for more than 10% of calls, your system should automatically switch to a slow mode. In this mode, reduce concurrent retry threads (e.g., from 50 parallel calls down to 10) and queue new retry requests until the API latency returns to normal.
You should also implement smart retry categorization. Not all failed or delayed responses need retries. For example, a limit exceeded or invalid VPA error should be marked as a hard failure (no retry), while timeout or network error can be soft fails that qualify for throttled retries. This keeps your retry queue clean and focused on recoverable cases.
Another best practice is to add a circuit breaker. This is a safety switch that pauses all retries if UPI or PSP response failures exceed a threshold, say, more than 20% of all attempts in the last 5 minutes. Once the circuit breaker trips, the system waits a few minutes before resuming retries, preventing a flood of duplicate requests during an outage.
Finally, make sure your software sends alerts to the finance or ops team when throttling is triggered. A simple Slack or email notification like UPI API latency exceeded threshold, retry queue throttled helps teams monitor system health and coordinate with the payment gateway if needed.
Find the Best Payment Gateway
Explore all products with features, pricing, reviews and more
View All SoftwareHelp the community
Be the First to Answer these questions
Disclaimer
Techjockey’s software industry experts offer advice for educational and informational purposes only. A category or product query or issue posted, created, or compiled by Techjockey is not meant to replace your independent judgment.
20,000+ Software Listed
Best
Price Guaranteed
Free Expert
Consultation
2M+
Happy Customers