Skip to content

odrianoaliveira/ratelimiter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go Rate Limiter using Token Bucket Algorithm

This project implements a rate limiter in Go, utilizing the token bucket algorithm. The token bucket algorithm allows for flexible rate limiting, accommodating bursts of requests up to the capacity of the bucket, with tokens replenishing at a steady rate. This approach is handy for APIs and web services, ensuring fair usage and preventing abuse.

Features

  • Token bucket rate limiting strategy.
  • Flexible token replenishment rates and burst capacities.
  • In-memory and Redis token storage options for scalability.

Getting Started

You can follow these instructions to get the project up and running on your local machine for development and testing.

Prerequisites

  • Go (version 1.18 or later recommended).

Installing

  1. Clone the repository:
git clone https://github.com/yourusername/ratelimiter.git
cd ratelimiter

About

A rate limiter app that utilizes the token bucket algo.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published