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