Skip to content

a simple distributed sliding window rate limiter written in go

License

Notifications You must be signed in to change notification settings

pixeltopic/redislimit

Repository files navigation

redislimit

Redislimit is a simple rate limiter strategy that:

  • implements a sliding window
  • is compatible with redis clusters

This package is intended to be used when rate limiting must be distributed and persisted when a service (besides redis) is restarted.

dependencies

  • redis 6.X+
  • go 1.19.1+

installation

go get github.com/pixeltopic/redislimit

running the example

make build docker compose up redislimit