Skip to content

Latest commit

 

History

History
14 lines (10 loc) · 739 Bytes

README.md

File metadata and controls

14 lines (10 loc) · 739 Bytes

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.

It is a demo project that helped me writing this blog post.

There are 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.