x-sushant-x / Rate-Shield

A completely configurable rate limiter that can apply rate limiting on individual APIs with individual rules.
MIT License
99 stars 7 forks source link

hacktoberfest - implement basic leaky bucket rate limit strategy #18

Open x-sushant-x opened 1 day ago

x-sushant-x commented 1 day ago

Basic concept of Rate Shield is to implement different rate limiting strategies and integrate them with Redis. Than user can choose which strategy to apply and what rule to apply on particular API endpoint.

Currently we support: -

  1. Token Bucket
  2. Fixed Window Counter

You can provide code for very basic leaky bucket rate limiting strategy in golang. There is no need to integrate redis in it as of now.

Procedure: -

  1. Fork this repo.
  2. Clone into your machine.
  3. Add a new file leaky_bucket.go in rate_shield/limiter directory.
  4. Implement leaky bucket rate limiting logic into that file.
anveshthakur commented 20 hours ago

hi @x-sushant-x, Can I work on this issue?

uskYash commented 18 hours ago

Hi , I hope you're doing well. I I believe I can contribute effectively, and I'm eager to help resolve it. If it's possible, could you please assign me this task? I would really appreciate the opportunity. Thank you!"

x-sushant-x commented 15 hours ago

Hi @anveshthakur I'm assigning this issue to you. Also @uskYash please check other issues in this repo, you can work on them.