Limit on http requests

Sometime my Ember app makes a lot of request per second to my server. There is a limit on requests per second on the server.

For example, 5 requests per second. So, when I make update to my 6 objects, Ember make 6 patch requests for the .save() function. 5 of them is ok, but 6th receives 503 error. How to avoid this?

  1. Is it possible to set limit of requests?
  2. Is it possible join 6 requests into one?
  3. Is it better to handle 503 error? For example, wait 1 second and repeat it? How it possible to do?

Thanks a lot for any help.

I can’t find the definitive solution. But you should take a look a adapter that work queue based and write your own extension adapter