<@435107855880683521> the Randstad instance is receiving "too many requests" errors. They're onboar...
s
@porcellus the Randstad instance is receiving "too many requests" errors. They're onboarding their talent right now, very bad timing, what are the rate limits here?
a
Hey @sixohquad , the free tier RPS limit is: Rate limit of 10 requests per second with a burst of 20 requests per second (with nodelay). This should be enough for 2 concurrent sign in / up requests. To know more about rps and bursts, please this nginx document (https://www.nginx.com/blog/rate-limiting-nginx/)
s
We should not be on the free tier, we pay for your service do we not?
a
I dont believe you do? Checking
I dont see it. What email ID should I be looking for? Feel free to DM if you like
If you exceed 5K MAUs, the RPS limit increases automatically. Additionally, we offer the ability to increase the RPS limit for a cost (happy to share details)
r
Hey @sixohquad you are breaching 100 rps already
Which api call are you getting 429 for? Is there any logic on your end wherein you are calling the core manually in a loop?
s
I'll ask. They've hit 500 AU in about 4 days. Doesn't surprise me that they're hitting 100 RPS.
r
That’s surprising. We have had users with 1000s of sign ups a day and it doesn’t get close to 100rps
So there must be some sort of custom logic that’s querying the core often
s
They're the largest staffing company in the world, but they're only operating in Canada ATM. Do you have vision on what we might be doing wrong?
We're definitely open to improving the intervention for everyone's sake
Integration*
r
Let me first increase the rate limits to be higher so there are no issues like this, and then we can investigate why it’s happening in the first place. Give us sometime
s
Sounds good, thank you very much we will work with you for sure
r
Okay. I’ll get back once that is done. By the way, are you seeing 429s all the time? Or just once in a while?
s
Pretty consistently.
r
For Which api?
s
If you have advice, we'll implement it. Not sure, I'll ask
r
Yup. Pls do ask.
s
I've asked, might not be super clear tho
Can I have our backend guy reach out to you? Dharm@alchemytech.cq
r
Yea sure.
s
Ca*
r
They could just message here?
s
Kk
r
Also, what’s the email associated with your prod account on supertokens.com? You can DM it to me.
d
Hi @rp_st , We are getting error from /recipe/user path but we have not implemented this API anywhere in the project
r
Have you enabled email verification in required mode?
d
I am not getting it, what is require mode.
r
can i see your frontend and backend supertokens.init?
d
Yes, For backend
r
ok, so there is no email verification at all.
hmm
d
For Frontend `SuperTokens.init({ apiDomain:
${URI}
, apiBasePath: “/auth”, sessionExpiredStatusCode: 440, tokenTransferMethod: “cookie” });`
r
are you querying the core manually in your API to get the user info?
d
We are using getUserById method for get an user. And we are using getClaimValue for getting roles.
r
right.
And how often are you querying getUserById?
d
whenever the user gets a login. it is not in the loop anywhere.
r
and no other API?
i mean you don't call this function in any other API?
d
No
r
Okay. Any other calls to the core that you are doing via functions in any of your APIs?
Whats the email associated with your account? I need that to be able to increase the rate limit.
d
additionaly we are using four more function in our project (signInUp, updateUser, getUserByEmail, getUserByPhoneNumber)
r
how often are you calling getUserByEmail and getUserByPhoneNumber?
d
While creating user then we will check, this also not in loop.
@sixohquad can you give main account email here?
r
@dharmalchemy ??
can you also add the payment details on your dashboard?
d
@sixohquad
r
also, the number of requests are very low right now - are you facing 429?
d
right, as of now we are not facing 429
r
hmmm. So when was the last timew you got 429?
d
At 2023-11-01 03:46 IST
r
ok. So we have increased the rate limit to 200 rps.
Lmk if you face the same rate limit issues.
d
okay sure
r
please add the payment details asap, so we can start a subscription for the higher rate limits
d
@sixohquad please look into this
s
Yes, going to email Randstad about this today
r
Sounds good. If you get 429 again, please let me know. The limit now is 200 rps with a burst of 300. We can further increase it if you get 429
Hey @sixohquad @dharmalchemy did you see any 429s yest?
s
I haven't monitored closely today. I'll setup a cloudwatch alarm from the logs tomorrow to alert me if we start to see 429's
r
okay
also, did you get a chance to add the card details yet?
s
Not yet, I messaged Adi about it tho, he can provide more detail
r
alright!
a
@sixohquad I've replied on DM but havent heard back. Please ensure card details are added in the next few days to prevent any disruption in services CC @dharmalchemy
s
Will do