Rate Limits
The Hyperswitch API has multiple checks in place to enhance its stability when faced with sudden surges of incoming traffic. Merchants who send numerous requests in rapid succession could encounter error responses indicated by the status code 429.
The default rate limit for all Hyperswitch APIs is 80 requests per second. Reach out to [email protected] if you have a requirement for higher limits.
How to handle rate limits
Effectively handling 429 errors is crucial for maintaining a seamless user experience.
Implement retry mechanisms with progressively increasing intervals to avoid overwhelming the system with repeated requests.
Use monitoring tools to track usage patterns and gain insights for adjusting request rates and capacity.
Adopt a well-orchestrated strategy for managing
429errors to prevent disruption and communicate limitations transparently to users.
Understanding API locking
If you see a 429 error with the following message, it is due to API locking and not due to rate limiting:
At this moment, access to this object is restricted due to ongoing utilization by another API request or an ongoing Hyperswitch process. Retry after some time if this error persists.Suggest edits: https://github.com/juspay/hyperswitch/edit/main/api-reference/essentials/rate_limit.mdx Raise issue: https://github.com/juspay/hyperswitch/issues/new?title=Issue%20on%20docs&body=Path:%20/essentials/rate_limit
Related:
Error Codes: https://api-reference.hyperswitch.io/essentials/error_codes
Go-live Checklist: https://api-reference.hyperswitch.io/essentials/go-live