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
0
votes
1 answer

Limit method call / seconds in multi-threaded environnement

I'm developping mechanics to handle weapons for a game. I'm having trouble with the rate of fire, it works well with a single thread but it seems that my GUI is calling the fire() method from multiple thread which causes some unexpected behaviour…
0
votes
1 answer

How do I continuously poll a rate-limited external API with Ruby on Rails?

I want to query a rate-limited external API and save the information to the database. I want to get as close to the limit as possible so the information is up to date. My initial idea was to use sidekiq and create a job that was in a loop that…
Peter Black
  • 69
  • 1
  • 9
0
votes
1 answer

iptables rate limiting connection request

To set the context, we have a legacy server that services connections coming in from a large a number of clients. The connections are tcp and uses a binary protocol. Lately as the clients have increased, the server seems to be unable to handle all…
0
votes
1 answer

Tweepy implementation to avoid Twitter rate limiter (python)

I am trying to execute the following code and receive '88' error, also copied below. I've stripped out the twitter account handles, but I had included 25 account handles, each of which has around 3k-80k followers (probably averaging around…
user2047228
  • 73
  • 1
  • 3
  • 10
0
votes
1 answer

How do I increase the rate limit for an Apps Script?

I have this script for shortening URLs using the goo.gl shortener: function onOpen() { SpreadsheetApp.getUi() .createMenu("Shorten") .addItem("Go !!","rangeShort") .addToUi() } function rangeShort() { var range =…
Rob Clarke
  • 33
  • 1
  • 4
0
votes
0 answers

How can I avoid Twitter API rate limits when returning a user's followers?

I have seen a few posts about this, but I have not been able to use any of the suggested code for the way I have my program set up. I am not very good at R but I need this information for a Political Science class. Could someone please help me…
0
votes
1 answer

Node.js api rate limiting with multiple rate limits

I'm working on an application that hits a public API many times. However, the API has multiple rate limits that my application must satisfy. The rate limit is 20 requests every 1 second AND 100 requests every 2 minutes. I've been looking for some…
Andrew
  • 497
  • 6
  • 21
0
votes
0 answers

For each search_tweets() call how many time API call to twitter is made, does it depend on number of tweets fetched?

I'm new to R programming or twitter API's. When I'm running the following piece of code: #https://cran.r-project.org/web/packages/rtweet/index.html #http://127.0.0.1:1410 #Twitter Data Analysis twitter_packages <- c("rtweet","httpuv") ### checking…
served_raw
  • 92
  • 5
0
votes
1 answer

How to Increase Azure Application Insights Rate Limits

My squad is building a Grafana dashboard that uses a custom datasource plugin https://github.com/vistaprint/Application-Insights-Datasource-Plugin which queries Azure Application Insights APIs. We have discovered that there is a limit on max number…
0
votes
1 answer

how to use bluebirdJS promises to make API requests in BATCHES instead of just limiting by concurrency

I have 1000 http API requests to be made. I have kept them all as promises in an array. I want to execute them in "BATCHES" of 100 at a time - not more than that to avoid hitting any API rate-limit / throttling etc. While bluebirdJS provides the…
Rakib
  • 12,376
  • 16
  • 77
  • 113
0
votes
1 answer

Facebook API exceed Rate Limit using Graph Explorer

For my application/crawlers I collect lots of data which leads to exceeding the rate limit very often. I crawl News-Pages and stuff like that so the Token doesn´t need any permissions like posting stuff. When using the Graph Explorer you can create…
user7238077
0
votes
0 answers

What is incorrect with the setTimeout logic used by request limiter?

I am trying to simulate HTTP-request throttling with the following code. (Inside step 2) I want to queue the request if the request is made in less than 300 milliseconds. Later I need to dequeue but keeping the same constraint of 300 milliseconds…
Suhail Gupta
  • 22,386
  • 64
  • 200
  • 328
0
votes
1 answer

Limit parallel request amount by a user

I want to limit my products like this: starter: no parallel calls (only allow synchronous calls) premium: 10 parallel calls (allow asynchronous call with a limit) The service behind the api gateway needs some time so some people want to make…
cre8
  • 13,012
  • 8
  • 37
  • 61
0
votes
1 answer

Rate Limit plugin causing high response time for API registered behind Kong API gateway?

On kong 0.8, rate-limit plugin is leading to high response time. When calling directly, api response time is ~200-250ms. When called through kong it is giving response in time ~1000-2000ms (when rate-limit plugin is enabled) and ~300ms (with…
Rajat Goel
  • 2,207
  • 17
  • 35
0
votes
0 answers

Twitter rate limit null pointer exception

To be clear, to all of the guys who rush and say that these type of posts are duplicate without even reading it: this is not a type of question in which i ask what null is and how can i manage these exceptions, here i ask why twitter's API returns…