The Wayback Machine - https://web.archive.org/web/20200625222333/https://github.com/topics/rate-limiting
Skip to content
#

rate-limiting

Here are 254 public repositories matching this topic...

mleonelli
mleonelli commented Apr 21, 2017

As you point out in the documentation

If, from the same IP, in the same second, you'll make two calls to api/values, the last call will get blocked. But if in the same second you call api/values/1 too, the request will go through because it's a different route.

Is there any development / workaround to consider

/api/values
and
/api/values/{0}

the same in terms of throttling?

bucket4j
vladimir-bukhtoyarov
vladimir-bukhtoyarov commented Dec 12, 2018

The token bucket algorithm is well explained in many papers and wiki pages. But, Bucket4j is token-bucket on steroids, Bucket4j contain several addons to original math foundation of token bucket, but requests like this vladimir-bukhtoyarov/bucket4j#86 point that these addons are not well explained. To close documentation dept it is need to dedicated page with many real exam

mcohoon
mcohoon commented May 8, 2019

I've implemented rate limiting as documented in the readme:

@on_exception(expo, RateLimitException, max_tries=8)
@limits(calls=15, period=FIFTEEN_MINUTES)
def call_api(url):
    response = requests.get(url)
    ...

But I would like a way to effectively turn off this rate-limiting while running tests. I've not found any concise examples on stackoverflow on how mock a dec

A Guzzle middleware that can throttle requests according to (multiple) defined rules. It is also possible to define a caching strategy, e.g. get the response from cache when the rate limit is exceeded or always get a cached value to spare your rate limits. Using wildcards in host names is also supported.

  • Updated Mar 13, 2020
  • PHP
cladius
cladius commented Aug 23, 2018

The second cat command is missing the apiVersion line.
Should be:

cat <<EOF | kubectl apply -f -
apiVersion: networking.istio.io/v1alpha3

Also, in the current version of Istio, we need to run:

kubectl apply -f samples/bookinfo/networking/virtual-service-all-v1.yaml -n default
kubectl apply -f samples/bookinfo/networking/destination-rule-all-mtls.yaml -n default

instead

tuukkamustonen
tuukkamustonen commented Jul 2, 2018

Is the library thread-safe? Docs don't mention, but I would assume it is, because it's being used in contexts that are normally multi-threaded (e.g. Flask-Limiter).

However, when I was using the library in multi-threaded context (with high concurrency), I randomly hit into:

  ...
  File "/home/musttu/.pyenv/versions/his/lib/python3.5/site-packages/limits/strategies.py", line 130, i

Improve this page

Add a description, image, and links to the rate-limiting topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the rate-limiting topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.