I am testing an endpoint which makes 10 create booking requests. It does them 3 at a time.
I am one of two people using this dev server and I’m getting rate limited! How the hell is this service supposed to work in a production environment?
I am testing an endpoint which makes 10 create booking requests. It does them 3 at a time.
I am one of two people using this dev server and I’m getting rate limited! How the hell is this service supposed to work in a production environment?
Did all the requests happen in the same second? Square does have rate limits but we don’t document the limits. We encourage you to handle the limit gracefully by building a retry mechanism. This mechanism should have an exponential backoff schedule to reduce requests when volume is necessary. Also some randomness wouldn’t hurt to avoid a thundering herd effect.
At most 6 request were happening per second.
How are we supposed to serve more than a few customers at a time if we can’t make 6 requests per second?
Anytime you get a rate limit message we encourage you to handle the limit gracefully by building a retry mechanism. This mechanism should have an exponential backoff schedule to reduce requests when volume is necessary. A rate limit error isn’t a blocker. The application needs to handle them appropriately at times of high volume.