throttling

Yahoo-Pipes Throttles Requests: What are the limits?

Yesterday, I began encountering '999' errors on Yahoo-Pipes. It looks like they throttle requests from a given IP address. Does anyone know the Yahoo-Pipes' requests per minute limit? ...

Socket throttling because client not reading data fast enough?

I have a client/server connection over a TCP socket, with the server writing to the client as fast as it can. Looking over my network activity, the production client receives data at around 2.5 Mb/s. A new lightweight client that I wrote to just read and benchmark the rate, has a rate of about 5.0Mb/s (Which is probably around the max ...

YouTube style throttling in Flash

I may be completely insane on this one, but it seems like the download/buffer rate of YouTube videos is faster at the beginning and the further the buffer point gets from the currently playing mark, the slower buffering goes. Am I crazy, or does it work this way for everyone else? Assuming the latter, any theories on how they do it? Is...

Throttling method calls to M requests in N seconds

I need a component/class that throttles execution of some method to maximum M calls in N seconds (or ms or nanos, does not matter). In other words I need to make sure that my method is executed no more than M times in a sliding window of N seconds. If you don't know existing class feel free to post your solutions/ideas how you would im...

What is the best way to implement a rate-limiting algorithm for web requests?

Possible/partial duplicates: What’s a good rate limiting algorithm? Throttling method calls to M requests in N seconds Best way to implement request throttling in ASP.NET MVC? I am looking for the best way to implement a moving time window rate limiting algorithm for a web application to reduce spam or brute force attacks. Examples ...

Whose responsibility is it to throttle web requests?

I am working on a class library that retrieves information from a third-party web site. The web site being accessed will stop responding if too many requests are made within a set time period (~0.5 seconds). The public methods of my library directly relate to a resource an file on the web server. In other words, each time a method is ca...

How can I throttle user login attempts in PHP

I was just reading this post http://stackoverflow.com/questions/549/the-definitive-guide-to-website-authentication-beta#477585 on Preventing Rapid-Fire Login Attempts. Best practice #1: A short time delay that increases with the number of failed attempts, like: 1 failed attempt = no delay 2 failed attempts = 2 sec delay 3 failed ...

MSMQ - Fast producer/slow consumer

Hello All I have a problem with messaging (with MSMQ) which is a variation of fast producer/slow consumer. Is there a way to get outstanding unconsumed message count in a private MSMQ queue? I would like to use that to throttle the producer. I would like to use a semaphore paradigm with MSMQ where the producer application will only s...

What are common ways of implementing web API request throttling/rate-limiting?

What are common ways of implementing web API request throttling? Are there any libraries for common web frameworks (Rails, Django, Java, etc.) that give you this along with temporary banning? A related question suggests that the rate limiting is done at the web server by limiting requests by IP, but that would mean that all requests are...

Can I throttle requests made by a distributed app ?

My application makes Web Service requests; there is a max rate of requests the provider will handle, so I need to throttle them down. When the app ran on a single server, I used to do it at the application level: an object that keeps track of how many requests have been made so far, and waits if the current request makes it exceeds the ...

Limit the cpu usage of a windows .NET service

Hi all, is there any way to throttle the cpu usage of a windows service that is written in .NET, either inside the service code or outside. Setting the current thread to the lowest priority is not an option but as soon as exceptions start to occur the cpu load goes up, is it possible to limit this? thx in advance, greetings ...

WCF Service Throttling

Dear All I have a WCF Service Deployed in a Console App with BasicHTTPBinding and SSL enabled on port using NetSH command and more over following attribute is set as well. [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)] And also i have set the Throttling behavior as <serviceThrottl...

Queued WCF Service which processes every X seconds

I need to create a service which can process queued requests on a configured time interval. For example go to the web and get financial data from a site the requires we limit requests to once per second. I am new to WCF and I am not sure if (1) WCF with MSMQ a proper choice for implementing this? and (2) if so what is the best mechanism...

Is there a way to configure throttling for callbacks in WCF?

Is it possible to control throttling on callback? So the server would be limited(controlled) how often it can callback the client. ...

throttling when using Parallel.For

When using a single threadded loop I was easily able to limit my messages sent per second by putting the thread to sleep (ie Thread.Sleep(1000/MessagesPerSecond)), easy enough... but now that I have expanded into parallel threads this no longer works properly. Does anyone have a suggestion how to throttle messages sent when using Parall...

WCF Service: ASP.NET Cache or SQL

I'm currently developing a WCF REST Web Service that will be running on Microsoft Azure. To limit the number of requests per IP address to prevent abuse, I currently store the IP and timeout using the ASP.NET Cache. This method works great but since muliple VM instances with Azure don't share a single cache, the requests could be split ...

Override Wcf Client max connections, prevent client side throttling

I have a client process which attempts to issue multiple concurrent requests to a server using 'BasicHttpBinding'. The client is attempting to issue 10 or more concurrent requests to the server, but the server logs indicate that a maximum of only 2 concurrent requests are ever in progress at any one time, which is then obviously slowing ...

How can I limit USB2.0 transfer rate on linux ?

Hi everyone, I have a simple project which can limit USB2.0 transfer rate on linux. With this program users can select any transfer speed they want, let say 10 Mbps. But I don't know where to start or what to do. I will be very glad if you have any idea. An useful library or function or whatever. Thanks in advance for any help. ...

What is the interface that change the cpu frequency and the core voltage on the windows platform?

I want to find the interface supplied by windows to change the CPU frequency and core voltage. Thanks! ...

What apache2 module to use for traffic limiting?

I'm looking for a module for Apache2 which can limit bandwidth for a given period after a certain amount of traffic has passed. Does anybody know of one? The system is Debian (Lenny). I already looked into: - mod_cband : old, buggy, not being developed anymore - mod_bw : Only for bandwidth throtteling - mod_throttle : was promising, bu...