throttling

MSMQ WCF Throttling

断了今生、忘了曾经 提交于 2019-12-23 14:56:26
问题 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 have 6 messages in my queue, it takes 4 right after the start. Am i missing something? My web.config : <system.serviceModel> <client> <endpoint address="net.tcp://spserv30:9999/services/SPInterface" binding="netTcpBinding" bindingConfiguration=

purpose of Azure iot hub device-to-cloud partitions

自作多情 提交于 2019-12-23 07:16:24
问题 When creating a new Azure IOT Hub you are asked how many device-to-cloud partitions you need. You can select between 2-32 partitions for standard tiers. I understand that the SKU and number of units determine the maximum daily quota of messages that you can send to IOT Hub. And that it is recommended to shard your devices into multiple IOT hubs to smooth traffic bursts. However, device-to-cloud partitions need clarification. 1>> What is the purpose of those device-to-cloud partitions under a

Facebook app being throttled, what is gr:post:User/external_edge

可紊 提交于 2019-12-23 03:18:42
问题 Our app is currently being throttled, we are getting { "error": { "message": "(#4) Application request limit reached", "type": "OAuthException", "code": 4 } } On App -> Insights -> Developer -> Activity & Errors we are seeing Restrictions App is unrestricted. API Throttling None during specified period. So it doesn't look like we should be getting throttled, but I can see a warning, Calls Are Too CPU Intensive - 2 hours, 38 minutes Method Fraction of Budget gr:post:User/external_edge 109% gr

How to limit a form submission rate per user

元气小坏坏 提交于 2019-12-22 17:39:05
问题 I am trying to limit a form's submission rate to one per user per 120 seconds. I was thinking about using a $_SESSION variable, but I'm not sure how that would work, and cookies can just be deleted. I guess a $_SESSION variable could be worked around by an intuitive user just by logging out and back in. I'm just theorizing at the moment so I do not have code. How do I get around my problem? EDIT -- The reason the user would be querying so often is because it is an item and bestiary database.

How can I implement server-side rate limiting for a Perl web service?

笑着哭i 提交于 2019-12-22 09:15:09
问题 I have a Perl-based CGI/Fast CGI web service and want to rate-limit clients by IP address to stop aggressive clients causing too much work. I have looked around for some code and found Algorithm::TokenBucket in CPAN but that is for client requests; it has no persistence and has no per-user config so is not really useful for server-side rate limiting. I am looking for suggestions for something that already exists, otherwise I'll need to roll my own based on some simple persistence such as tie

Processing rack_throttle exceptions in rails application

断了今生、忘了曾经 提交于 2019-12-21 21:25:06
问题 How can i process errors generated by rack-throttle gem when rate limit is excedeed? Now i just get a response containing the following: Internal Server Error undefined method `each' for "403 Forbidden (Rate Limit Exceeded)\n":String Here is the stack trace ERROR NoMethodError: undefined method `each' for "403 Forbidden (Rate Limit Exceeded)\n":String /home/rkapitonov/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.1.1/lib/active_record/query_cache.rb:45:in `each' /home/rkapitonov/.rvm/gems

Throttling CPU from within Java

做~自己de王妃 提交于 2019-12-21 10:35:36
问题 I have seen many questions in this (and others) forum with the same title, but none of them seemed to address exactly my problem. This is it: I have got a JVM that eats all the CPU on the machine that hosts it. I would like to throttle it, however I cannot rely on any throttling tool/technique external to Java as I cannot make assumptions as to where this Vm will be run. Thus, for instance, I cannot use processor affinity because if the VM runs on a Mac the OS won't make process affinity

Using Javascript to rate limit and queue ajax calls to once every 15 seconds

耗尽温柔 提交于 2019-12-21 02:53:27
问题 I have an application that automatically tweets every time a user does something... Users can easily perform that action once every second if they like. Twitters rate limit says that it pays attention to how many tweets happen in 15 minutes. Technically I think I am always below the 15 minute mark, but it seems like twitter also says "hey you can post 15 posts in 15 minutes, but not 15 posts in 15 seconds"... which is reasonable I think... I would like to solve this problem on javascript side

How to throttle login attempts - PHP & MySQL & CodeIgniter

a 夏天 提交于 2019-12-20 10:25:57
问题 I'd like to be able to throttle login attempts based on failed attempts but I got some questions. Should I use MySQL? (read that it could strain the DB) Should I throttle per user and system-wide or just system-wide? (so to stop normal people from guessing passwords) How should I calculate my threshold? (so it automatically adapts to changes/growth) How should I retrieve this threshold? Query/calculate on every fail or store on cache? What should I use to throttle? (read a response that sleep

How to delay / throttle login attempts in ASP.NET?

最后都变了- 提交于 2019-12-20 10:08:14
问题 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 dictionary attacks a bit harder to do (more or less like Jeff Atwood outlined here). How would you implement it? The näive way of doing it would be - I suppose - to simply call Thread.Sleep(); somewhere during the request. Suggestions? :) 回答1: I got