Jquery AJAX Simultaneous and Long-Running Requests -


I am using the jQuery loop through the big table (1,000 rows) and for each line I am using some AJAX Call information to call and update a database. It takes about 30 minutes to complete the whole process and I use a jQuery UI progress bar to provide visibility in processing conditions.

I want to be able to run many types of these types of long time processes but I think that later AJAX processes seem queued until the last long lasting request is not complete is done.

I have read about the browsers that limit the number of concurrent AJAX sessions about the forum, so it may be that I am against here I am eager to know that the second type How do long run addresses running AJAX calls?

Waiting for me before I can launch my next AJAX request does not really work for me :)

If you need multiple requests on the same server, you will need to use a subdomain for example, on your app, only www.domain.tld Instead of pointing to , point *. (Or any other wildcard subdomain) on Domain.tld . When making your AJAX request, simply click & lt; Randomstring & gt; Use .domain.tld as the host to maximize intake connections per server limit.

Another solution would be sending a short-running request that starts keeps your long process a long running AJAX request. The running process will respond with any status updates.

Comments