Skip to content

CemHarput/RateLimitService

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🔐 Rate Limit Service (Token Bucket + Redis)

This project is a simple and extensible Rate Limiting microservice implemented with Spring Boot and Redis using the Token Bucket algorithm.


🚀 Features

  • ✅ Token Bucket algorithm implementation
  • ✅ Redis-based in-memory bucket store
  • ✅ Supports per-user rate limiting via X-User-ID header
  • ✅ JSON API with clear HTTP responses
  • ✅ Easy to extend with other algorithms (sliding window, leaky bucket)
  • ✅ Clean and testable code structure

🏗️ Tech Stack

  • Java 21
  • Spring Boot 3.5.x
  • Redis (local or Docker)
  • Maven
  • JUnit & Mockito (for testing)

About

Generic Rate Limit Service

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages