Questions tagged [rate-limiting]

Rate limiting is used to control the rate of traffic sent or received on a network interface.

Traffic that is less than or equal to the specified rate is sent, whereas traffic that exceeds the rate is dropped or delayed. Rate limiting is performed by policing (discarding excess packets), queuing (delaying packets in transit) or congestion control (manipulating the protocol’s congestion mechanism). Policing and queuing can be applied to any network protocol. Congestion control can only be applied to protocols with congestion control mechanisms, such as the transmission control protocol (TCP).

1053 questions
7
votes
2 answers

Rate-limiting for rails controllers

I'm searching rate-limiting engine for my rails 3 application. I've found some but that's not what i need. I 've found rack-throttle gem and curbit gem. It seems that rack-throttle works for each request to rails application but i need to limit…
roman
  • 5,100
  • 14
  • 44
  • 77
7
votes
6 answers

Laravel 8 rate limiter not working for routes

In the web.php routes, I have the following: Route::middleware('throttle:3,1')->group(function () { Route::get('/about', function () { return "About Info"; }); }); The Laravel Framework is 8.19.0. Ideally, when someone hits the page…
mahesh salunke
  • 73
  • 1
  • 1
  • 7
7
votes
1 answer

Laravel 5: how to reset builtin throttle / ratelimiter?

Im using Laravel's builtin throttle like this: //File: Kernal protected $middlewareGroups = [ 'api' => ['throttle:10,3'] ]; However, I would like to reset the count after certain action in one of my controllers (for example after successful login).…
Raheel Hasan
  • 5,753
  • 4
  • 39
  • 70
7
votes
1 answer

Anonymous Access to a REST API?

REST APIs are often accessed with an API token in the Authorization header of requests. If users have an account, they can simply be provided with a token that is associated with their account. Rate limiting can then be applied on this…
Chris Talman
  • 1,059
  • 2
  • 14
  • 24
7
votes
1 answer

How to send request to cassandra at a particular rate using Guava RateLimiter?

I am using datastax java driver 3.1.0 to connect to cassandra cluster and my cassandra cluster version is 2.0.10. I am writing asynchronously with QUORUM consistency. private final ExecutorService executorService =…
john
  • 11,311
  • 40
  • 131
  • 251
7
votes
2 answers

Receiving Github APi 403 error when I have not exceeded my rate limit

I'm scraping data off of Github via PyGithub. My issue is I receive this error during my scraping: github.GithubException.GithubException: 403 {'documentation_url': 'https://developer.github.com/v3/#rate-limiting', 'message': 'API rate limit…
ChillMurray
  • 81
  • 1
  • 5
7
votes
1 answer

IPTables rate limit per destination IP and port

I currently have these rules: iptables -I FORWARD -p udp -d {IPDST} --dport {PORTDST} -m u32 --u32 '0>>22&0x3C@8=0xFFFFFFFF' -j SRCDS-TRF iptables -I SRCDS-TRF -p udp -d {IPDST} --dport {PORTDST} -m u32 --u32 '0>>22&0x3C@10&0xFFFF=0x5453' -m limit…
user1372896
  • 542
  • 1
  • 10
  • 27
7
votes
2 answers

Facebook graph API response size limiting (error code 1)

Just sharing some information I came across while testing my application. Facebook Graph API implements rate limiting as described on their documentation page. Today I was trying to retrieve the feed from CNN facebook page and I got the following…
7
votes
1 answer

Google Books API rate limiting information?

I can't find any information on rate limiting with the Google Books API. I'm interested in doing ~300K total ISBN queries to retrieve lists of book categories, and I want to throttle my requests to stay under their limit. I have a developer API key,…
EmmaOnThursday
  • 167
  • 4
  • 9
7
votes
1 answer

Handling (queuing) requests to a web service which calls rate limited external API

I have a web service exposed using the Flask framework. This service uses as external API, which has a limitation on the number of times it should be called per second. In a normal scenario, multiple calls to my API leads to multiple threads getting…
Amit Tomar
  • 4,800
  • 6
  • 50
  • 83
7
votes
1 answer

Google API: Quota Limit Reset Times and Timezone

Does anyone have any information on the times in which the quota limits/rate limits reset for the following Google APIs? Most of the APIs above have daily quotas mentioning that the quotas reset the next day - in which I would like to know the time…
Kat
  • 81
  • 1
  • 3
7
votes
1 answer

CentOS 7 rsyslog DEBUG logs dropped for C/C++ modules

I am using rsyslog (rsyslog-7.4.7-7.el7_0.x86_64) on CentOS 7 (CentOS Linux release 7.1.1503 (Core)). We have some applications on it which is using syslog framework for logging. We have a lot of logs. At peak, it can be upto 50000 logs in one…
Vimt
  • 71
  • 1
  • 4
7
votes
2 answers

Rate limit on Facebook API

I am working on a project that want to use facebook api's. I want to know whether there is a rate limit on the facebook api's per account.
Utkarsh Srivastav
  • 3,105
  • 7
  • 34
  • 53
7
votes
3 answers

Distributed rate limiting

I have multiple servers/workers going through a task queue doing API requests. (Django with Memcached and Celery for the queue) The API requests are limited to 10 requests a second. How can I rate limit it so that the total number of requests (all…
RS7
  • 2,341
  • 8
  • 34
  • 57
6
votes
2 answers

Throttling POST requests in rails application

I'm using rack-throttle as a rate-limiting engine in my rails 3 application. I've created my own class based on the Rack::Throttle::Interval to define custom rate limiting logic. I'm checking if the request is made to exact controller and exact…
roman
  • 5,100
  • 14
  • 44
  • 77