Skip to content

🏎 ⏱ βœ‹ A distributed, simple rate limiting library written in Rust and a sample API project to demo its capabilities

Notifications You must be signed in to change notification settings

dili91/rate-limiting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

40 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Implementing a distributed rate limiter in rust

This repository proposes an implementation of a distributed rate limiter written in Rust, and a REST API project example using the same rate limiter library to limit the number of incoming requests based on the caller's IP address.

This repository includes 2 main directories:

  • rate-limiter-rs: the rate limiter library, that offers both a fixed window and a sliding window implementations;
  • carbon-intensity-api: a sample project exposing a REST API, that uses the above mentioned rate limiter component.

About

🏎 ⏱ βœ‹ A distributed, simple rate limiting library written in Rust and a sample API project to demo its capabilities

Topics

Resources

Stars

Watchers

Forks

Languages