I am dealing with a lengthy http request that involves a lot of computation on the back-end.
Currently, everything is synchronous, which means that while the server computer is processing, the browser does not receive any output or result. Eventually, the connection times out and a timeout error is shown in the browser.
Is there a way to send some information to the browser immediately and then have it wait for the final result? How can this be achieved?
It's important to mention that the Java back-end operates synchronously. Therefore, any solution would likely involve implementing a workaround in the servlet/front end, possibly requiring javascript requests.. ?