lundi 16 mai 2016

Ember.js: 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. 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.




Aucun commentaire:

Enregistrer un commentaire