vendredi 20 août 2021

Java - How to handle Long running requests

I am having a java web application which has a component to hit an external system through REST API, bring the data, do some joins with few tables and then show that information to the user on the screen. All the while the system hits the external system, the user has to wait on the screen looking at the loading button. Hitting the API and doing the data transformation which can be shown to the user takes 30secs currently. This means, the user has to wait till 30secs to see the data on the screen.

What are the best design ways to handle the above scenarios? Even though this question is specific to a java web application, I am curious to know what are the best designs in other platforms as well.

Sorry that this question sounds more of a design problem.

Aucun commentaire:

Enregistrer un commentaire