Hi all, I'm building a research web app that runs a long batch analysis that can last hours. I'm using Grails but I think this is a general design issue. The batch process can be started by a URL, e.g.
http://mydomain/experiment/run?a_lot_of_params
And this page returns info about the experiment (whose data are stored in the back end and are accessible through another web interface). e.g.
Experiment finished: results available at
http://mydomain/experiment/data/myexperiment.xml
The problem with this approach is: if the experiment lasts a few minutes it's fine to leave a web page waiting. But what happens if the experiment lasts 10 hours? What if the user closes the page? Is there a correct design pattern to follow for this type of situation?
Thanks for any hints.