Throttling is a mechanism to regulate the rate at which processing is performed
Questions tagged [throttling]
1092 questions
3
votes
2 answers
W3C Throttles DTD/XSD requests; is there a mirror or file list?
The W3C has started throttling requests to XSD/DTD files, adding as much as a minute of latency to the request:
http://www.w3.org/Help/Webmaster.html#slowdtd
I want to be able to mirror the standards specifications locally so that users don't have…

Sprotty
- 5,676
- 3
- 33
- 52
3
votes
1 answer
Django Rest Framework Rate Limit Dynamic based on User Type
I'm building an API using Django Rest Framework (DRF) and I'm facing an issue with rate limiting. Specifically, I need to set different rate limits for different types of users:
Staff members: 1000 requests per day
Normal users: 100 requests per…

r4mbhardwaj
- 101
- 1
- 9
3
votes
0 answers
Lambda with 1 reservedConcurrency getting throttled even when FIFO queue(trigger event) has same messageGroupId across all messages
I have a SAM stack with 1 lambda, 1 SQS and 1 DLQ. The message in SQS acts as an event source for the lambda. The lambda has ReservedConcurrentExecutions of 1. The batch size of event(from SQS to lambda) is also 1. The timeout of lambda is 300…

Nandita Sharma
- 13,287
- 2
- 22
- 35
3
votes
1 answer
What is the functional programming equivalent for throttle in javascript?
Just title says. Most throttle approaches in javascript require some sort of a variable to store the timer or setTimeout id to determine if a function is to be cancelled or not. However im having some difficulty in wrapping into my head on how do I…

Amia
- 96
- 6
3
votes
1 answer
Simulate Slow network condition using Selenium 4
I am using below code to simulate slow network condition. Issue is that except for switching between offline or online mode page load or any action is not getting slower even when the code has no errors. Any help is appreciated.
WebDriver…

Sunil Singh
- 31
- 3
3
votes
2 answers
How do I queue incoming websocket events in javascript for slow execution?
I have an open Websocket connection and it's handing out events. All good, but once a new event arrives, I need to do a whole lot of things and sometimes events arrive so quickly one after the other that there is no time to get the stuff done…

Norbert
- 435
- 5
- 14
3
votes
3 answers
Is there a way to disable throttling while using Pytest in Django?
Problem:
I want to figure out a way to disable throttling when running my tests with pytest -vv
Details:
I have this default throttling policy in my settings.py file:
'DEFAULT_THROTTLE_RATES': {
'anon': '100/day',
'user':…

PercySherlock
- 371
- 1
- 2
- 12
3
votes
1 answer
DRF Throttling behaving extremely inconsistently?
I've been using an extremely basic user throttle rate with my DRF API and have been getting just... nonsensical results when I try to run benchmark tests.
For instance, when I set the throttle to 15/day my python benchmarker was able to make 29…

codecodecode
- 91
- 5
3
votes
0 answers
Avoid trottling when Electron App is minimised or system is screen-locked
I am facing throttling issues when running the electron app is minimized and system is screen-locked. The application used node-ffi-napi to get messages from a DLL continuously. When the app window is minimized the application's performance…

user2334777
- 83
- 10
3
votes
1 answer
Mongo DB High CPU Usage
Usually , what are the checks/actions we need to do when we receive an alert from MongoDB about CPU high usage like below?
**System: CPU (User) % has gone above 95
CPU usage is maxing out available resources and may be throttled shortly. Ensure no…

RagaSGNur
- 199
- 1
- 2
- 15
3
votes
1 answer
Retry the same task multiple times in C# when API returns "too many requests" error
I have a generic method for executing an asynchronous tasks in synchronous context with retries.
public static T RunWithRetries(Task task)
{
while(...) // 3 attempts
{
try
{
task.GetAwaiter().GetResult();
…

Gab
- 471
- 3
- 10
- 25
3
votes
1 answer
What limits WCF ServiceModelService.Instances?
I'm attempting to load test a WCF service with (IIS6/Server2003/BasicHttpBinding). The service is throttled as follows:
To assess the number of…

James Cadd
- 12,136
- 30
- 85
- 134
3
votes
0 answers
Slow script performance when browser is minimized
Im running a javascript in the Chrome DevTools console, but when I minimize the browser the script runs 10x(?) slower.
I searched on chrome://flags for throttling and it returned:
I have changed Throttle Javascript timers in background. from…
user14890854
3
votes
2 answers
Throttle in JS: Why in console I'm seeing only 1st and last output?
Seeing only 1st and last output of function call. Why ? And How to see the output of each function calling in a period of 1000ms?
Using lodash throttle.
const f = function (a) {
console.log(a);
};
let f1000 = _.throttle(f,…

ElMuchacho
- 300
- 1
- 12
3
votes
1 answer
Is there any AWS EMR Describe Cluster API throttling limits, where can I see the metrics for it?
I am running multiple AWS EMR clusters for various Big Data Processing.
I want to monitor the AWS EMR Describe Cluster API Usage i.e. https://docs.aws.amazon.com/emr/latest/APIReference/API_DescribeCluster.html
Anyone have done this before or is…

Ankur Mehta
- 33
- 5