#dicit-ratelimit-errors

1 messages · Page 1 of 1 (latest)

wide arrowBOT
real moon
#

Good question, yes I think there is an error code specifically for rate limits. Looking in to it

jaunty grotto
#

ok sounds good

real moon
tiny pollen
#

dicit-ratelimit-errors

jaunty grotto
#

Ok so how do i test for that?

tiny pollen
#

we don't have tests for that. It's extremely rare that anyone hits rate limits. You have to do 100 requests per second, this is incredibly high

jaunty grotto
#

ok. what happens though if a rate limit gets reached? how long will my users be decommissioned for?

tiny pollen
#

No one is decommissioned for anything. If you make too many requests, some will fail, that's all

jaunty grotto
#

oh so just failures, it is not like a ddos attack that affects everyone?

#

so it might effect 1 user who is making the requests, not all users?

tiny pollen
#

who do you call a "user" in your sentence?

jaunty grotto
#

in my case, each user has a my account page that makes api requests. This page is one that users get redirected to when they login. So if I have millions of users, they would be redirecting to this page maybe at the same time, which is more than 100 requests per second.

tiny pollen
#

So a user is a customer of yours paying for a service? Because you shouldn't just make calls to Stripe every time someone loads any page on your website

jaunty grotto
#

yes either paying or not paying. i check to see whether they are free/paid and open/close features that only those customers of that type have access to

tiny pollen
#

well store all of that information in your database, don't hit our API at all in the case of "checking if they are free/paid" and such

jaunty grotto
#

ok i'll have to think the design through

#

Is there a way to make parts of the customer portal more obvious? Like I would love something like outstanding payment amounts to be highighted or bold as soon as they see the portal so they can pay it

#

Another thing is I don't want people to cancel unless they pay their outstanding amount. I have this now but not through the portal so there may be a lot of api requests

#

For example - here are all your outstanding payment links. If you try to click the cancel button - sorry pay your outstanding amounts first.

tiny pollen
jaunty grotto
#

ok