I need a user to initiate a long running task … say five minutes. And
I want the user to wait for a response before doing anything else.
The way I see it, using a straight HTTP POST is gonna time out.
So, I could start up a new thread using Backgroundrb (after an AJAX form
post), and use AJAX to ping the server every second to look at the
Or, I could just use an AJAX form post, and using AJAX poll the server
every second to see what’s up.
The way I see it, an AJAX call doesn’t time out the same way a normal
HTTP call could times out on the browser.
Therefore … is there any need to complicate things by using
backgroundrb in this scenario?
Or am I missing some major advantage using backgroundrb, or some major
disadvantage using a regular AJAX call?