rate-limiting

wso2am-2.0.0 - error on server console while saving a subscription tier by admin

て烟熏妆下的殇ゞ 提交于 2019-12-13 06:45:20
问题 I am getting following error when I try to create a new subscription tier using admin credentials in wso2am -2.0.0. And, there is no error on screen. When I use this tier while subscribing to an API, there is no API blocking happening on exceeding the rate limit defined. [2016-09-26 12:18:49,097] INFO - CarbonAuthenticationUtil 'admin@carbon.super [-1234]' logged in at [2016-09-26 12:18:49,072+0530] [2016-09-26 12:18:49,907] ERROR - RPCMessageReceiver Illegal char <:> at index 2: /D:/WSO2

Rate limiting based on user plan in Spring Cloud Gateway

醉酒当歌 提交于 2019-12-12 13:38:29
问题 Say my users subscribe to a plan. Is it possible then using Spring Cloud Gateway to rate limit user requests based up on the subscription plan? Given there're Silver and Gold plans, would it let Silver subscriptions to have replenishRate/burstCapacity of 5/10 and Gold 50/100? I naively thought of passing a new instance of RedisRateLimiter (see below I construct a new one with 5/10 settings) to the filter but I needed to get the information about the user from the request somehow in order to

rate limiting and throttling in java

孤者浪人 提交于 2019-12-12 09:56:46
问题 I need to implement ratelimiter/throttling in one of my microservice. For example I have one User microservice that handles login and get user data based on role like Admin or normal user that is implemented using JWT token and annotation @Secured, So, My ask is to throttle based on these what api is being called.And, I should be able to modify the throttle limit at runtime too. I don't want to re-invent the wheel, so, any ideas please? technology stack:- java, spring boot 回答1: Answer to this

Rate Limit in Twitter REST API - a clarification needed

给你一囗甜甜゛ 提交于 2019-12-12 06:31:20
问题 I am using R to access Twitter's REST API. From the developers website(https://dev.twitter.com/docs/rate-limiting/1.1/limits) I understand that twitter has a rate limit of 450 every 15 mins for searching tweets. My question is: What is the rate I reach with the code below: Is it 5 (5 days requested separately) or is it 500 (5 days * 100 tweets) ? dates <- paste("2014-03-",c(10:15),sep="") for (i in 2:length(dates)) { print(paste(dates[i-1], dates[i])) tweetList <- c(tweetList, searchTwitter("

express - Limit a request to one at a time

China☆狼群 提交于 2019-12-11 18:16:57
问题 I'm using express to build a API that should be used internally. One of the request trigger an heavy process on the server and should return a CSV out of that. This process might take more than 10 minutes. To not overloading the server I want to restrict the call of this API and make it so that, since the process isn't terminated, we can't request the same URL again. For this I tried to use express-rate-limit with the following configuration: new RateLimit({ windowMs: 30 * 60 * 1000, // 30

How to manage request limited API calls

时光总嘲笑我的痴心妄想 提交于 2019-12-11 08:37:21
问题 I am using tmdb API that has a new limit on requests which is 30 requests in 10 seconds per IP. I could track these calls by having a table in MySQL that holds the amount of requests per the last 10 seconds but how can I accomplish this with the different IP addresses? The way my app works is: request is made to the application server from a desktop app. Server side php then makes a search and returns data. desktop app then makes a different call to app server and that in turns makes several

Rate Limit of Google Compute Engine API

你说的曾经没有我的故事 提交于 2019-12-11 06:16:25
问题 So apparently I hit the api rate limit and I can no longer make API requests to compute engine. This is even true on the cloud console. So, whats the API limit? When does it get reset? And how could it possibly be that low? I must have made a few hundred requests in the course of several hours.... that seems awfully low. 回答1: You can request higher quota limits for API requests. Visit https://cloud.google.com/console, choose your project, then Compute Engine, then Quotas. At the very bottom

bitbucket rate limiting phantomjs

邮差的信 提交于 2019-12-11 05:58:20
问题 My CI builds keep failing with: > phantomjs@1.9.7-15 install /home/travis/build/redgeoff/paste-image/node_modules/mocha-phantomjs/node_modules/phantomjs > node install.js PhantomJS detected, but wrong version 1.9.8 @ /usr/local/phantomjs/bin/phantomjs. Downloading https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.7-linux-x86_64.tar.bz2 Saving to /tmp/phantomjs/phantomjs-1.9.7-linux-x86_64.tar.bz2 Receiving... Error requesting archive. Status: 403 Request options: { "uri": "https:/

Why does Tomcat lack built-in rate-limit filters?

南笙酒味 提交于 2019-12-11 05:38:30
问题 From a few sources (1 2 3), I'm getting the impression that whenever people wants to rate limit requests, the tendency seems to be "wrap Tomcat behind Apache, and rate-limit on Apache". There's also the iptables solution, but that won't answer HTTP 429 ("Too many requests"). Apache is fine, but sometimes it will be nice if we can improvise small-scale deployments of a small servlet we have, but we're still being asked to rate limit requests, and setting up an Apache layer seems like a bit of

Facebook python sdk uses marketing api or graph api

杀马特。学长 韩版系。学妹 提交于 2019-12-11 04:05:59
问题 I have been using facebook python SDK for nearly 6 months for building a product. I have dev access for the marketing api. It frequently errors out saying Rate limit has exceeded. But when i check marketing api dashboard it says not enough data available. So Im really confused whether SDK uses marketing API or graph API. Can anybody explain me the usage. Any info will be much appreciated. 来源: https://stackoverflow.com/questions/51479955/facebook-python-sdk-uses-marketing-api-or-graph-api