Hi Jason Wihardja. Thank you for reading the article.

The solution you mentioned is great and it works. However it has Thundering Herd problem because all the request would be waiting for the same promise.

One more thing one should worry about is what happens when the promise is rejected. Ideally we would want to have another request go through if the first one never returns or takes too long

--

--

Senior Staff Engineer @freshworks. Ex-McKinsey/Microsoft/Slideshare/SAP, Tech Enthusiast, Passionate about India. Opinions are mine

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Abhinav Dhasmana

Abhinav Dhasmana

Senior Staff Engineer @freshworks. Ex-McKinsey/Microsoft/Slideshare/SAP, Tech Enthusiast, Passionate about India. Opinions are mine

More from Medium

Plan for “Plan B”

Past Life and Regression Therapy with Injustice

Gameplay Journal #9

Takashi Ronin