Page 1 of 1

429 - Too Many Requests

Posted: Wed Jun 15, 2016 9:52 pm
by Rodrigo Dias

I'm receiving a "Too many requests" erros message every time I execute the code below

//function to be executed after the wait time
function update(id){
update_pergunta.execute({parameters: {"_id": id},
body: {"opcaoEscolhida" : 'ok'} });
}

for(var i=0; i<data.length; i++){
setTimeout(update(data._id), 5000);
}

The wait amount time between each loop is set to 5 second but it still causing the failure.

Is there a minimun amount of time to wait between each db call?


429 - Too Many Requests

Posted: Thu Jun 16, 2016 11:40 am
by Illya Stepanov

Hi Rodrigo,

Sure, there is an burst rate for Database request according to your plan, you can find out this information in our pricing page (see section: emBurst Rate API: Database, Proxy/em): https://appery.io/pricing


429 - Too Many Requests

Posted: Fri Jun 17, 2016 2:47 am
by Rodrigo Dias

Hi Illya,

My plan is supposed to support only 3 database requests per second.

If I understood rigth, it means that if I have 4 users running the app concurrently and all of them execute at the same time a function that requires a query in database one of the will receive an error.

Am I right???


429 - Too Many Requests

Posted: Fri Jun 17, 2016 2:51 pm
by Serhii Kulibaba

Hello Rodrigo,

You are right, but 3 req/s is a Server Code limit for the Basic plan. Database limit is: 5 req/s for that plan.


429 - Too Many Requests

Posted: Fri Jun 17, 2016 3:15 pm
by Rodrigo Dias

Thanks Sergiy!

I've got a grandfathered Standard plan.
Could you please confirm the settings for database calls limit in my plan?

Thanks in advance


429 - Too Many Requests

Posted: Fri Jun 17, 2016 8:55 pm
by Serhii Kulibaba

Standard plan has the same limit. You can find them on the pricing page: https://appery.io/pricing/