Thursday 28 March 2019

Express: How to handle multiple requests for the same data that takes a long time to execute?

In my express server there are some endpoints that takes a long time to process. I have to wait for the DB for a couple of seconds to finish execution. During this process if the user makes the same request then it does the same thing again. I can't use cache here. Is there any solution for this or am I doing something wrong?

Submitted March 28, 2019 at 08:00PM by aku_soku_zan

No comments:

Post a Comment