Throttling is a mechanism to regulate the rate at which processing is performed
Questions tagged [throttling]
1092 questions
10
votes
3 answers
In AWS API Gateway, can I use a Usage Plan without attaching an API Key?
AWS documentation on API Gateway Usage Plans all imply that they're created with/attached to API Keys, but don't state how it will behave without one. I have an unauthorized API that I would like to apply throttling to. Can I create a Usage Plan,…

jayjyli
- 771
- 3
- 11
- 23
10
votes
4 answers
Azure function: limit the number of calls per second
I have an Azure function triggered by queue messages. This function makes a request to third-party API. Unfortunately this API has limit - 10 transactions per second, but I might have more than 10 messages per second in service bus queue. How can I…

Andrei
- 4,237
- 3
- 25
- 31
10
votes
2 answers
What is a separate flow in Linux fq_codel?
I'm setting up a proof of concept to throttle ingress traffic at terminal end (client):
eth0 -> ifb0 -> htb -> filter by ip -> htb rate -> fq_codel+ecn
I have 2 source ips for specific program I want to throttle. The program in question opens a…

Dima Tisnek
- 11,241
- 4
- 68
- 120
10
votes
3 answers
Throttle an Event Handler
In my WPF application, I have an event handler that gets called on the MouseEnter event of my UI element:
myUiElement.MouseEnter += myEventHandler
I would like to throttle myEventHandler so it doesn't get called more than once every second. How can…

Drake
- 2,679
- 4
- 45
- 88
10
votes
4 answers
How to get the actor system reference from inside the actor
I have an akka actor that send messages to itself:
def receive = {
while (...) {
self ! "some message"
}
}
I want to use a Throttler to control the flow of messages that this actor sends to itself.
val throttler =…

Daniel Cukier
- 11,502
- 15
- 68
- 123
10
votes
4 answers
What's a good way to enforce a single rate limit on multiple machines?
I have a web service with a load balancer that maps requests to multiple machines. Each of these requests end up sending a http call to an external API, and for that reason I would like to rate limit the number of requests I send to the external…

Popcorn
- 5,188
- 12
- 54
- 87
10
votes
2 answers
How can I use Reactive Extensions to throttle Events using a max window size?
Scenario:
I am building a UI application that gets notifcations from a backend service every few milliseconds. Once I get a new notification i want to update the UI as soon as possible.
As I can get lots of notifications within a short amount of…

user3002200
- 103
- 1
- 4
9
votes
6 answers
How to delay / throttle login attempts in ASP.NET?
I'm trying to do some very simple request throttling on my ASP.NET web project. Currently I'm not interested in globally throttling requests against DOS attacks, but would like to artificially delay the reponse to all login attempts, just to make…

LorenzCK
- 7,411
- 2
- 36
- 28
9
votes
2 answers
Token bucket vs Fixed window (Traffic Burst)
I was comparing Token bucket and Fixed window rate limiting algorithm, But a bit confused with traffic bursts in both algorithm.
Let's say i want to limit traffic to 10 requests/minute.
In Token bucket, tokens are added at the rate of 10 tokens per…

Vip
- 1,448
- 2
- 17
- 20
9
votes
1 answer
Laravel 6: Throttle Password Reset
In laravel 6 the password broker now has the following to throttle password reset (https://github.com/laravel/framework/blob/6.x/src/Illuminate/Auth/Passwords/PasswordBroker.php#L58)
public function sendResetLink(array $credentials)
{
// First…

adam78
- 9,668
- 24
- 96
- 207
9
votes
5 answers
Throttle function execution in dart
Is there a way in Dart to throttle function execution like this
Observable.throttle(myFunction,2000);

Shady Aziza
- 50,824
- 20
- 115
- 113
9
votes
2 answers
How to throttle or prioritize a query in MySql
Is there anyway to prioritize or throttle a query at all in MySQL?
I'm a DBA on a server that sees a lot of unoptimized queries come into the server and they just destroy the CPU. I'm looking at throttling certain users that hit on the database in…

Tim Ferrell
- 1,348
- 3
- 17
- 40
9
votes
3 answers
Throttle & debounce functions
I am a bit uncertain with the concepts of throttle and debounce functions.
As I get it:
we debounce a function that should be called after a certain event has happened. It is used in events like drag, keyup, etc. with the purpose of not firing all…

Rikard
- 7,485
- 11
- 55
- 92
9
votes
1 answer
C# async tasks in a queue or waiting list
i have an async Task like this:
public async Task DoWork()
{
}
And i have at the moment a:
List tmp = new List();
where i add the tasks.
I start the tasks like this:
foreach (Task t in tmp)
{
await t;
}
Now my Question:
What`s…

Pumper
- 233
- 1
- 6
- 11
9
votes
2 answers
Rate exceeded in throttling is thrown on DescribeJobFlows
Several days ago all went well, but now, not just one, but three of our servers are throwing these exceptions:
{
"Error" => {
"Message" => "Rate exceeded",
"Code" => "Throttling",
"Type" => "Sender"
}
}
This happens when retrieving…

Pily Kevin Hao
- 91
- 1
- 1
- 3