Currently working on a web application. One particular area/page of this application performs certain time taking DB operations. The current structure of this page is:
1) DWR call from the front end to the backend
2) Front end waits for the backend to return data
3) When data is returned, the callback function is executed in the
front end and data is displayed to user in the format needed.
During step #2, backend takes a lot of time to process and send data back. During this entire time, the application is unusable.
The change that should be made is:
1) Let the user use the application after sending the request in step #1
2) Front end will be populated with data after the backend processes the data and
send the details back.
3) When user revisits the page, information from previous request is available.
I am looking for ways to make this possible. Not sure if there is a DWR or Spring mechanism to achieve this. Please point me in the right direction so that I can research more for the correct code needed.