# Limit on http requests

**URL:** <https://discuss.emberjs.com/t/limit-on-http-requests/10700>\
**Category:** Ember Data\
**Created:** [May 17, 2016, 9:29am UTC](https://discuss.emberjs.com/t/limit-on-http-requests/10700 "2016-05-17T09:29:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![xmod](https://avatars.discourse-cdn.com/v4/letter/x/958977/32.png) [@xmod](https://discuss.emberjs.com/u/xmod)\
**Post date:** [May 17, 2016, 9:29am UTC](https://discuss.emberjs.com/t/limit-on-http-requests/10700/1 "2016-05-17T09:29:10Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![heatbr](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/heatbr/32/9874_2.png) [@heatbr](https://discuss.emberjs.com/u/heatbr)\
**Post date:** [May 17, 2016, 5:39pm UTC](https://discuss.emberjs.com/t/limit-on-http-requests/10700/2 "2016-05-17T17:39:16Z")

</div>

I can’t find the definitive solution. But you should take a look a adapter that work queue based [https://github.com/kurko/ember-sync](https://github.com/kurko/ember-sync) and write your own extension adapter

> **[Customizing Adapters - Models - Ember Guides](https://guides.emberjs.com/v2.5.0/models/customizing-adapters/)**
>
> In Ember Data, the Adapter determines how data is persisted to a backend data store, such as the URL format and headers for a REST API. (The format of the data itself is determined by the serializer.) Ember Data's default Adapter has some built-in...
