Distributed Rate Limiter

Redis-backed rate limiting service with five algorithms

Image 1 of 1: Rate limiter control panel with request charts

A Spring Boot service with Token Bucket, Sliding Window, Fixed Window, Leaky Bucket and Composite algorithms behind a REST API, with per-key limits, geographic rules, Prometheus metrics and a React dashboard. Clients exist for Java, Python, Node.js and Go.

Trade-offs

  • The failover strategy is fail-open when Redis is unavailable.
  • Lua scripts perform refill-and-consume as atomic operations in Redis.

Q&A2

2 to 3 Redis operations per rate limit check.

Reviews

Loading reviews

    More in Redis

    See all 10 →
    • RuvioRust key-value server that speaks RESP, with locks and queues as commands
    • QueueScopeNative macOS dashboard for BullMQ queues on Redis
    • CodraSelf-hosted AI code review for GitHub pull requests
    • FyroDBRedis-compatible store and PostgreSQL cache proxy in one Rust binary
    • SyncleKeeps databases in sync across engines in real time, without Kafka
    • ZedisOpinionated Redis-compatible in-memory store written in Zig

    More in Distributed systems

    See all 20 →
    • arbiterPostgreSQL job queue for Haskell, with no broker and no leader
    • RRQClosed-loop payment ledger on sharded Postgres with a Kafka outbox
    • EgresPostgres-compatible database in Zig for heavy, multi-tenant workloads
    • clinkC++ stream processing engine that stays correct when processes die
    • pg-statusSidecar that reports PostgreSQL master, replicas and replication lag
    • LassoSelf-hosted Ethereum JSON-RPC proxy that routes each call to the best provider

    More in Java

    See all 7 →
    • FinTrackEvent-driven personal finance platform on Spring Boot, SQS and PostgreSQL
    • FlydbVersioned database migrations with a local GUI, a CLI and agent hand-off
    • SomaOffline semantic search over documents, images, audio and video
    • DuDuSelf-hosted support workspace that brings 15 messaging channels into one inbox
    • Family LedgerSelf-hosted household balance sheet built from a monthly 10-minute snapshot
    • dawn-langSelf-hosted functional language with explicit effects