#Pohlud-ratelimit-issuing

1 messages · Page 1 of 1 (latest)

wide igloo
#

hello, you'll have to stay within the rate limits really, I recommend spacing out your requests and retrying any rate limited requests

onyx dock
#

How many seconds basically

#

Or miliseconds

ruby furnace
#

(NOT with Stripe) The rate limits are posted - they're generally 25/sec in Test Mode, 100/Sec in Live - but there are ALSO object lockouts - for example, operations for a particular customer/account can "lock" the object in the database, so such requests can't overlap

onyx dock
ruby furnace
#

(NOT with Stripe) rate limits and account locks are entirely separate things. The above limits/"object locks" are to maintain integrity of the database

onyx dock
ruby furnace
#

(NOT with Stripe) the limits mentioned aren't about you, personally, they're about maintaining accuracy and integrity of the database

onyx dock
ruby furnace
#

(NOT with Stripe) if it's either of the above limits, the API call will return a 429 status, effectively indicating you could do an exponential backoff and try again. Much better to not cause that in the first place. Resisting the urge to ask why you would need to hit a Card Issue endpoint that hard/fast...

wide igloo
#

thanks for the help on explaining this @ruby furnace

to reiterate that part that was confusing @onyx dock

but what are you trying to say is that when I hit rate limit too many times the product might be locked for me?

that is just saying for e.g. if you keep updating a PaymentIntent 70 times a second, while under our rate limit, you'll hit a "lock timeout" possibly (depending) cause each request has to wait on the previous request to complete, cause Stripe internally has to acquire a lock on the PaymentIntent object that is being updated, to prevent concurrent requests from overwriting each other.

onyx dock
#

Thank you

wide igloo
#

there's no time. It depends on how long it takes a request to complete

#

lock timeouts aren't really common unless you're operating on the same object over and over

onyx dock