Throttling is a mechanism to regulate the rate at which processing is performed
Questions tagged [throttling]
1092 questions
18
votes
3 answers
Throttle CPU and resources available to Chrome
I am trying to emulate the feel of an application on lower spec systems, running on Chrome. Is it possible throttle the CPU and put limitations on resources?

Mark Nguyen
- 7,168
- 9
- 31
- 41
17
votes
2 answers
How do I throttle a slider's value change event?
I got a slider that on value change forces a fairly serious computation, so I want to throttle it to fire actual event after for example 50ms pass when user has finished sliding it.
While I learned some various stuff about Rx its unclear how should…

Valentin Kuzub
- 11,703
- 7
- 56
- 93
17
votes
6 answers
is there a way to throttle the indexing of Mysql tables so overall performance is not impacted?
I need to load a large data set onto a production database.
15 files need to each be uploaded and inserted into a table.
Each is about 500 Mb.
I have two ID columns that need to be indexed.
If I load the files with indexes in place, the upload…

Zak
- 24,947
- 11
- 38
- 68
17
votes
3 answers
WCF Service Throttling
Lets assume that I'm dealing with a service that involves sending large amounts of data.
If I implement this with WCF, will WCF throttle the service based on how much memory each request takes to serve? Or will I be getting continuous out of memory…

Spence
- 28,526
- 15
- 68
- 103
17
votes
4 answers
What is the proper way of testing throttling in DRF?
What is the proper way of testing throttling in DRF? I coulnd't find out any answer to this question on the net. I want to have separate tests for each endpoint since each one has custom requests limits (ScopedRateThrottle).
The important thing is…

jmolinski
- 173
- 2
- 6
17
votes
2 answers
WCF Service Throttling
I have a WCF service deployed in a console app with BasicHTTPBinding and SSL enabled. The following attribute is set as well:
[AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
I have also set the…

Mubashar
- 12,300
- 11
- 66
- 95
17
votes
5 answers
Throttle JavaScript function calls, but with queuing (don't discard calls)
How can a function rate-limit its calls? The calls should not be discarded if too frequent, but rather be queued up and spaced out in time, X milliseconds apart. I've looked at throttle and debounce, but they discard calls instead of queuing them up…

Dan Dascalescu
- 143,271
- 52
- 317
- 404
16
votes
7 answers
Laravel: Integrating Throttle in Custom Login
How to integrate laravel throttle if I did not use the default LoginController given by laravel?
here's my controller:
use AuthenticatesUsers;
//function for login
public function login(Request $requests){
$username =…

JaneTho
- 321
- 1
- 2
- 13
15
votes
5 answers
Creating a unique timestamp in Java
I need to create a timestamp (in milliseconds) in Java that is guaranteed to be unique in that particular VM-instance. I.e. need some way to throttle the throughput of System.currentTimeMillis() so that it returns at most one results every ms. Any…

Yrlec
- 3,401
- 6
- 39
- 75
15
votes
2 answers
How to keep CPU from 'sleeping' when screen is turned off in Android?
I have an application in which I am sending network data over WiFI. Everything is fine until I turn the display off or the device goes to 'sleep'. I'm already locking the WiFi however, it seems to be the case that the CPU speed ramps down when in…

fatfreddyscat
- 835
- 3
- 8
- 26
15
votes
1 answer
How to return value from debounced function in javascript?
I have a code like that:
var originalFunction = function() {
return 'some value';
};
var debouncedFunction = _.debounce(originalFunction, 3000);
console.log('debouncedFunction() result: ', debouncedFunction());
console.log('originalFunction()…

Victor Marchuk
- 13,045
- 12
- 43
- 67
15
votes
1 answer
Throttling method calls using Guava RateLimiter class
I am trying to throttle the number of calls to a method per second.
I tried to achieve this using Guava RateLimiter.
RateLimiter rateLimiter = RateLimiter.create(1.0);//Max 1 call per sec
rateLimiter.acquire();
performOperation();//The method whose…

sujith
- 665
- 2
- 9
- 22
15
votes
2 answers
How do I pause the redraw in XNA?
I made an XNA image viewer, but it always redraws the scene, even if it's not changing, and it's making my netbook burn like hell, so I'd like it to pause drawing when nothing's changing.
Reducing framerate to 1 is one way to keep it cool, but it…

user1306322
- 8,561
- 18
- 61
- 122
14
votes
7 answers
Throttle amount of promises open at a given time
The following TypeScript performs each call to doSomething(action) one at a time. (Meaning the second item in the list does not get a call made until the first one is done).
async performActionsOneAtATime() {
for (let action of listOfActions) {
…

Vaccano
- 78,325
- 149
- 468
- 850
14
votes
2 answers
Is Azure Throttling My WebApi?
I and a few other developers are having a an AI competition. Basically, we have a simple board game and we've each written AIs that will be hosted on our own webservices to play against each other.
I've got one up and running that is a simple WebApi…

Pharylon
- 9,796
- 3
- 35
- 59