How to limit the number of ajax POST requests?
NickName:dipole_moment Ask DateTime:2015-08-08T00:52:50

How to limit the number of ajax POST requests?

I am using angular (in case it matters) and am trying to limit the number of ajax POST requests that my browser makes using javascript - ideally vanilla javascript on xmlHttpRequest object. Any ideas would be greatly appreciated.

Edit 1:

To be more precise, suppose I click a button which typically triggers 15 concurrent POST requests - one for each say, "record". I would like to limit these concurrent requests to be 5 at max. Is there a low level (i.e. javascript xmlHttpRequest) to limit the number of these requests? It is also safe to assume the using is always going to be using either chrome or safari as this is an internal tool.

Copyright Notice:Content Author:「dipole_moment」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/31882937/how-to-limit-the-number-of-ajax-post-requests

More about “How to limit the number of ajax POST requests?” related questions

How to limit the number of ajax POST requests?

I am using angular (in case it matters) and am trying to limit the number of ajax POST requests that my browser makes using javascript - ideally vanilla javascript on xmlHttpRequest object. Any ideas

Show Detail

Is there a limit to the number of Ajax requests that can be launched on Apache

Is there a limit to the number of simultaneous Ajax requests than can be launched toward an Apache server? For example, consider the following function to update div elements on a page (prototype J...

Show Detail

Limit submitting many requests Ajax php form

I want to count number of submitted form, and when the count reaches to 3. Ajax should show error message. I have tried assigning counts to session, and when the count is > 3 i just give wrong que...

Show Detail

How to rate-limit ajax requests?

There are several divs and handler to send ajax requests when they are clicked. My problem is that i don't know how to force my handler not to exceed limit of 1 request per 30 seconds. Appreciate ...

Show Detail

Limit the number of times an AJAX Request on Keyup fires

I've build a HTML input field that is linked to a PHP script. When a username is input into the field, it searches for usernames from the database without page refresh with the help of the jQuery /...

Show Detail

How to limit the number of requests in a certain period in the class library?

I have created a class library which having certain methods that get and post the API request to a third party (Hub-Spot) so Hub Spot API has some limitations as follows ***15 requests per second a...

Show Detail

Does browser batch huge number of ajax requests?

I would like to know if the browser batch huge number of ajax requests to a single server. I'm using jQuery and sending approx. 300 requests to server at a time. When I look at the firebug console,...

Show Detail

how to identify max number of TCP requests limit

I am running redis-benchmark tool to send N number of requests From server A to B. This tools generates TCP requests and receives response. Some how when number requests reach to 51000, it stops a...

Show Detail

How many PENDING ajax requests are allowed in modern browsers?

First, I want to make clear that I am not talking about this question How many concurrent AJAX (XmlHttpRequest) requests are allowed in popular browsers? , which is about simultaneous requests. I...

Show Detail

How to retain AJAX data after a POST with limited AJAX requests

I'm using C# with .NET 4 (though as per company policy, we never use any ASP controls, only HTML inputs, so our pages aren't really all that much different from Rails or PHP pages). My page is re...

Show Detail