Rodrigo Dias
Posts: 0
Joined: Fri May 01, 2015 7:08 am

429 - Too Many Requests

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?

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

429 - Too Many Requests

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

Rodrigo Dias
Posts: 0
Joined: Fri May 01, 2015 7:08 am

429 - Too Many Requests

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???

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

429 - Too Many Requests

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.

Rodrigo Dias
Posts: 0
Joined: Fri May 01, 2015 7:08 am

429 - Too Many Requests

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

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

429 - Too Many Requests

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

Return to “Issues”