Questions tagged [throttling]

Throttling is a mechanism to regulate the rate at which processing is performed

1092 questions
5
votes
1 answer

Is it possible to create a throttle function that can take in as parameters another function (that also has parameters), and the time delay

So I've already written a function that works (based on underscores throttle) for functions that don't take in a parameter, but I'd like to make it generic enough to pass in a function with a variable number of parameters. Here's what I have: …
Stan Quinn
  • 473
  • 5
  • 12
5
votes
4 answers

Is it possible to test WCF throttling behaviour through Wcftest client?

Is it possible to test WCF throttling behaviour through Wcftest client? If Yes then How? I have a code below for ServiceHost ServiceThrottlingBehavior stb = _servicehost.Description.Behaviors.Find(); if (stb ==…
Devesh
  • 396
  • 1
  • 4
  • 23
5
votes
3 answers

How do I simulate transient errors with Azure Database?

I am working with the Transient Fault Handling Application Block (TFHAB) to define a retry policy when interfacing with an Azure Database. I'm wondering if there is a way to invoke a throttling response in order to plan and handle likely production…
QFDev
  • 8,668
  • 14
  • 58
  • 85
5
votes
2 answers

Throttle only if specific condition met

I have an observable that I am subscribing on. This obsevable will be returning an object that has a property called ActivationType that can be set multiple times. What I am trying to achieve is log a message whenever ActivationType is set to…
Flack
  • 5,727
  • 14
  • 69
  • 104
5
votes
3 answers

Throttling Bandwidth on Ethernet Port

I'm writing an application to run on a server where I need to be able to set the maximum bandwidth for each Ethernet port (there will be up to 6 ports). Obviously I can throttle the bandwidth that my application uses but I haven't yet found any…
DawnMage77
  • 75
  • 1
  • 8
5
votes
3 answers

Data throttling C#

I am using thirdparty component which accepts maximum 25KB data at a time. I am passing array of the objects to this third party component from my application. However the amount of data that my application writes is much more than 25KB. I am…
Ram
  • 11,404
  • 15
  • 62
  • 93
5
votes
2 answers

C# Keep CPU at/near designated percent usage for testing purposes

I am currently working on a little in-house testing app to create multiple types of load on the computer so that we can see how our software works under load. I am getting hung up on one request, in that I make some sort of way to specify a percent…
wgallon
  • 57
  • 4
5
votes
1 answer

What does the "API Throttling" and "API Throttling Warnings" mean?

In app insights, under API->Activity & Errors there are sections pertaining to: "Api Throttling" and "API Throttling Warnings". But I can't find documentation for what these sections mean and how to interpret them anywhere. What are the time values…
stantonk
  • 1,922
  • 1
  • 18
  • 24
5
votes
2 answers

Detect if SQL Azure is throttling

I have an Azure worker role that inserts a batch of records into a table. Yesterday, it took at most 5 minutes to insert the records, but today it has been taking up to a couple of hours. I suspect that the process is being throttled, but I don't…
Brian Kohrs
  • 279
  • 3
  • 9
4
votes
3 answers

WCF: How do I add a ServiceThrottlingBehavior to a WCF Service?

I have the below code for returning back an instance of my WCF Service ServiceClient: var readerQuotas = new XmlDictionaryReaderQuotas() { MaxDepth = 6000000, MaxStringContentLength = 6000000, MaxArrayLength =…
Andreas Grech
  • 105,982
  • 98
  • 297
  • 360
4
votes
3 answers

How to apply rate limit based on method parameter

I'm using the python module ratelimit to throttle a function, which calls a rest api, I need to apply throttle based on the method of the requests, e.g. for PUT/POST/DELETE 1 per 10s, for GET 5 per 1s, how can I achieve this without breaking the…
fluter
  • 13,238
  • 8
  • 62
  • 100
4
votes
1 answer

What happens to SNS' self throttled messages which are not delivered for a long time?

Say that I have a SNS which I am self throttling using the attribute maxReceivesPerSecond. Let's say we have a very high production rate, but due to the throttling, the consumption is very slow. This can lead to some messages being in the SNS for a…
Mooncrater
  • 4,146
  • 4
  • 33
  • 62
4
votes
1 answer

What do parameters to throttleShape mean?

zio-streams provides throttleShape which /** * Delays the chunks of this stream according to the given bandwidth parameters using the token bucket * algorithm. Allows for burst in the processing of elements by allowing the token bucket to…
Mario Galic
  • 47,285
  • 6
  • 56
  • 98
4
votes
2 answers

AspNetCoreRateLimit Does not use query parameters when matching rules

I'm using AspNetCoreRateLimit library with Asp.Net Core 2.2 web api. I've taken IpRateLimiting into use with it's default settings in Startup.cs as seen AspNetCoreRateLimit wiki. I have API endpoint with query parameters, and it is used with http…
Risto M
  • 2,919
  • 1
  • 14
  • 27
4
votes
1 answer

MSMQ WCF Throttling

I have a windows service that reads my message queue through WCF. I want the service to process one message before another message (intensive memory actions per msg). I set the throttling configuration to 1, but it does not seem to do anything. If i…
Rogue101
  • 115
  • 1
  • 9