ratelimit

Go/gRPC service designed to enable generic rate limit scenarios from different types of applications.

APACHE-2.0 License

Stars
2.3K
Committers
87

Bot releases are hidden (Show)

ratelimit - v1.4.0 Latest Release

Published by mattklein123 over 4 years ago

ratelimit - go 1.11 update and a few other changes

Published by junr03 about 6 years ago

This release brings in the following changes:

  1. Update to go 1.11.
  2. Fix log level bug: the user defined log level was not correctly wired up to the codebase.
  3. Fix and update the docker setup.
  4. Add gRPC healthchecking.
ratelimit - Redis: option to use a separate Redis cluster for per second limits

Published by junr03 over 6 years ago

Relevant documentation in the README.

ratelimit - Check in data-plane-api compiled protos

Published by junr03 over 6 years ago

Ratelimit can be compiled as a full fledged gRPC service directly from this repo with make compile; the make target will also compile the necessary protos. However, if users want to import ratelimit as a go dependency and build on top of it, glide will complain with:

[ERROR]	Error scanning github.com/lyft/ratelimit/proto/envoy/api/v2/ratelimit: open /Users/josenino/.glide/cache/src/https-github.com-lyft-ratelimit/proto/envoy/api/v2/ratelimit: no such file or directory
...
[ERROR]	Error scanning github.com/lyft/ratelimit/proto/envoy/service/ratelimit/v2: open /Users/josenino/.glide/cache/src/https-github.com-lyft-ratelimit/proto/envoy/service/ratelimit/v2: no such file or directory

This release includes the compiled protos in order to allow users to import ratelimit as a library without any dependency issues.

ratelimit - Deprecating legacy ratelimit proto

Published by junr03 over 6 years ago

Fixes #14

In order to not break any clients using the legacy ratelimit.proto, Ratelimit is going to support both handlers: the one for the data-plane-api service definition (rls) and the legacy service definition (ratelimit.proto).

The legacy handler will accept a request, translate it into a data-plane-api proto request and use the rest of the codebase as if the new handler had been called. This will incur a perf penalty for clients using the legacy proto.

ratelimit -

Published by junr03 over 6 years ago