Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6761303
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T14:10:16+00:00 2026-05-26T14:10:16+00:00

I have 2 POST, 1 PUT and 1 DELETE API in my application. My

  • 0

I have 2 POST, 1 PUT and 1 DELETE API in my application. My application is deployed on Heroku. I want to rate limit these APIs but only to prevent against a DOS attack or in case someone by mistake calls API in infinite loop. What’s the ideal rate limit for this scenario. E.g. x per minute, y per hour. What are the idea numbers for x and y?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T14:10:17+00:00Added an answer on May 26, 2026 at 2:10 pm

    This really depends on your app.

    1) It depends on how “heavy” your app is:

    If each of your requests are processor-heavy and/or hits your database a lot, then you’ll want to set a low limit, because each request is “expensive”. If your app is fast and efficient, then you have more room to maneuver and you can get set a higher API limit.

    2) It depends on the use cases of your app.

    Does your app require a lot of API hits to be useable? How does an API limit affect the features your app provides?

    3) It depends on how many processors you have.

    Heroku allows you to scale your app by setting web dynos and worker dynos. The more you have, the better you’ll be able offer high API limits.

    In any case, if you want to prevent someone from DOS-ing you or calling your API in an infinite loop, this is the wrong approach to take because an API limit affects the good guys as well as the bad guys. A better way is to detect the bad behaviour and respond appropriately (i.e. deny the offending IP address for a limited time).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've created a RESTful API that supports GET/POST/PUT/DELETE requests. Now I want my API
We have a REST API which clients routinely POST and PUT data to. When
Are there good references teaching you how to send PUT/DELETE/POST/GET with ruby? I have
I have a need to do RAW POST (PUT a $var) requests to a
I am converting ant to maven2. In build.xml, I have: <target name=clean> <delete file=${dir.dist}/${api.jarfile}
I have RESTful API written on RoR 3. I have to make my application
I know that using non-GET methods (POST, PUT, DELETE) to modify server data is
How do you perform delete and put operations restfully in rails? I have read
I have setup my versioned API like this with only a small tweak for
I am learning about REST and PUT/DELETE, I have read that both of those

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.