Hacker News new | ask | show | jobs
by michaelsalim 340 days ago
Same here. I thought that this specific problem is not that uncommon. On top of my mind: say if the endpoint you're hitting is rate-limited. It doesn't even have to be an API call. I think I've probably written something with the same pattern once or twice before.

I do agree that this is quite javascript specific though.

1 comments

If it’s rate limited it’s handling the concurrency for you. Just back off from the rate limit.