For example, for a quota of 5,000 calls per day, with a spike arrest of 4 calls in 5 seconds
5 second = 5,000 milliseconds
5,000 milliseconds are divided into four intervals = resulting in four intervals of 1250 milliseconds
Only one call can be triggered every 1250 milliseconds.
If the user tries to do two calls inside one of the 1250-millisecond intervals, it will trigger a 429 error.
For example, for a quota of 250 calls per day, with a spike arrest of 1 call per 5 seconds:
1 day = 86,400,000 milliseconds
86,400,000 milliseconds are divided into 1,728,000 intervals
(250 calls over 5 seconds) = resulting in intervals of approximately 50 milliseconds
Only one call can be triggered every 50 milliseconds
If the user tries to make two calls inside one of the 50-millisecond intervals, it will trigger a 429 error. If the user does one call in the first interval, one call in the second interval, one call in the third interval, and two calls in the fourth interval, the last fifth call will result in a 429 error, as a total of 5 calls were attempted in a period of 5 seconds.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article