Skip to content

ratelimit

Go rate limit service for Envoy and other apps that need shared request limits

Permissive (OSI) · Apache-2.0

Listed by , founder & editor

64

Health

Active

Overview

Stars

2,720

Last commit

2 days ago

Nov 2026

Repository age

9 years

since Jan 2017

Latest version

v1.4.0

Mar 2020

Contributors

–

14 active in 90 days

Releases

0

last 12 months

Docker pulls

15M

envoyproxy/ratelimit

Language

Go

Ratelimit is a Go service with a gRPC interface for generic rate limiting. An application sends a domain and a set of descriptors. The service composes a cache key, checks counters in Redis and returns a decision. It supports the Envoy rate limit APIs, so Envoy can call it directly.

Limits are defined in configuration, loaded either from files on disk or from an xDS management server. The format supports nested descriptors, wildcard matches, shadow mode and calendar-aligned monthly limits. Memcache is supported as an alternative to Redis, and a local cache is available.

For operations, it exposes statistics through DogStatsD or Prometheus, an HTTP port with a JSON endpoint, health checks, tracing, TLS and mTLS. Redis options include connection pools, pipelining, failover recovery and AWS ElastiCache IAM authentication.

The Docker image uses a distroless base and runs as a non-root user. The code is Apache-2.0 licensed. It fits where you would otherwise use a commercial API gateway's rate limiting feature.

Who it's for

Platform engineers running Envoy

It implements the Envoy rate limit APIs and shares counters across proxies.

Skip if: You do not run Envoy and want limiting built into a simple gateway.

Backend teams needing shared limits across services

Any gRPC client can request decisions by domain and descriptors.

Skip if: A per-process in-memory limiter is enough.

SRE teams that track limits in existing metrics tools

It reports to DogStatsD or Prometheus and supports shadow mode for testing limits.

Skip if: You want a graphical admin console.

The problem it solves

Limiting requests per user, IP or API key across many service instances needs a shared counter and consistent rules. This service centralizes that decision so each application does not build its own.

Strengths

  • Implements the Envoy rate limit APIs over gRPC
  • Configuration loads from files or an xDS management server
  • Backed by Redis or Memcache, with an optional local cache
  • Statistics through DogStatsD or Prometheus
  • Shadow mode lets you test limits before enforcing them

Trade-offs

  • Needs Redis or Memcache running alongside it
  • Configuration is YAML-based with no graphical interface
  • Docker images are tagged by commit, with no versioning after v1.4.0
  • Not a full API gateway; it only makes limit decisions

Self-host ratelimit

Self-hostable
Yes
Docker image
envoyproxy/ratelimit
Docker Compose
The repository ships a Compose file

In the community

Frequently asked questions

Is it free?

Yes. It is licensed under Apache-2.0.

Can I self-host it?

Yes. It is a Go service you run yourself, and a Docker image is published for each main commit.

What storage does it need?

It uses Redis for counters, and Memcache is also supported.

How are limits configured?

Through files read from disk or from an xDS management server.

Similar tools in API management and gateways

Svix

API management and gateways

Self-hostable webhook sending service for developers, written in Rust

3.5k 305 today Thriving MIT

Apache APISIX

API management and gateways

Plugin-based API and AI gateway on NGINX and etcd for microservice teams

17k 3k today Thriving Apache-2.0

Replaces apigee

Kong

API management and gateways

Plugin-driven API gateway for routing, securing and observing API, LLM and MCP traffic

44k 5.2k yesterday Active Apache-2.0

Tyk

API management and gateways

Go-based API gateway for teams that need rate limiting, auth and analytics on self-hosted

11k 1.2k today Thriving MPL-2.0

Krakend

API management and gateways

Stateless Go API gateway for teams fronting microservices with declarative config

2.7k 504 4 days ago Thriving Apache-2.0

oathkeeper

API management and gateways

Identity-aware proxy that authorizes HTTP requests against access rules in front of your

3.6k 419 4 months ago Dormant Apache-2.0