Back to Portfolio
Distributed Rate Limiter - In Progress
Backend System

Distributed Rate Limiter - In Progress

A high-performance distributed rate limiter designed to protect APIs from abuse and ensure fair usage.

Project Overview

This project is a distributed rate limiter built to handle high-throughput environments. It's designed to be deployed as a microservice or integrated as a library to enforce API usage policies across a distributed system.

The core of the system uses a sliding window algorithm implemented over a centralized data store like Redis. This approach ensures accurate rate limiting across multiple server instances without sacrificing performance.

It provides flexible rule configuration, allowing administrators to define different limits for various API endpoints, user tiers, or IP addresses.

Key Features

  • Sliding window algorithm for accurate, time-based request counting
  • Centralized state management using Redis for distributed consistency
  • Low-latency checks (under 10ms) to minimize performance overhead
  • Flexible rule engine to define granular rate limits per route or user
  • Real-time monitoring and analytics dashboard integration
  • Atomic operations to prevent race conditions in a concurrent environment

Technologies Used

JavaSpring BootRedisDockerKubernetesPrometheusGrafanagRPC

Project Gallery

System Architecture Diagram
Distributed Architecture
Algorithm - Leaky Bucket
Algorithm Token Bucket
Race Condition

Project Details

Client

Personal Project

Timeline

2025 Personal projects

Role

Backend Software Engineer

© 2025 Jane Doe. All rights reserved.

0%