Skip to content
#

rate-limit

Here are 100 public repositories matching this topic...

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

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
Jakobud
Jakobud commented Aug 16, 2019

Perhaps I'm missing something, but it seems like your examples use a lot of functionality that is missing from your documentation. For example I don't see anything in the docs about createPromiseThrottle, promiseImplementation option, etc. Also your documentation describes requestsPerSecond as a function argument, not an option but your examples show the opposite.

Just confused here maybe

saarasio
saarasio commented Sep 17, 2019

The error message below should say "Service_name" and not "Name"

[ec2-user@ip-172-31-18-10 enroute-cp]$ curl -s -X POST localhost:1323/service -H "Authorization: Bearer treehugger" -H "Content-Type: application/json" -d '{"Name":"adminservice"}' | python -m'' json.tool
{
    "Error": "Please provide service name using Name field"
}
[ec2-user@ip-172-31-18-10 enroute-cp]$ curl -s -X POST l

Improve this page

Add a description, image, and links to the rate-limit 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-limit topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.