Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
SidTheITGuy9592128d@c3r38r170 it is factored in, ofc. I need to take those responses and work with it as well.
-
retoor11902128d@SidTheITGuy are you sure you use keep-alive / a session so you don't have to connect every time?
-
Hazarth9486128dCan't you cash responses to off-load some of the requests to memory? Or make larger/batch requests of possible?
429 are just part of life -
Ranchonyx10643128dI experienced this a week ago.
I was running a fuckton of promises making requests to an API in parallel using Promise.all to wait for their completions.
I've had to refactor the whole thing to be sequential...
I wrote an algorithm that incorporates a 3rd party API. and the algorithm is so fast and optimized that I started to get 429 status codes from the third party API, asking me to slow down my requests, which I didn't think was an issue when I tested on local env.
Now I'm on purpose slowing down my code, to prevent that from happening.
Talk about suffering from success.
rant