Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Add RateLimit middleware using TokenBucket algorithm #557

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Commits on May 16, 2023

  1. Add rate_limiter in plugins

    Signed-off-by: TungHoang <sontunghoang@gmail.com>
    LaPetiteSouris committed May 16, 2023
    Configuration menu
    Copy the full SHA
    271bc9f View commit details
    Browse the repository at this point in the history
  2. Add configs for rate limit

    Signed-off-by: TungHoang <sontunghoang@gmail.com>
    LaPetiteSouris committed May 16, 2023
    Configuration menu
    Copy the full SHA
    9f8daf7 View commit details
    Browse the repository at this point in the history
  3. Add Interceptor for RateLimit

    Signed-off-by: TungHoang <sontunghoang@gmail.com>
    LaPetiteSouris committed May 16, 2023
    Configuration menu
    Copy the full SHA
    2b7fb81 View commit details
    Browse the repository at this point in the history
  4. Add details docs for configs

    Signed-off-by: TungHoang <sontunghoang@gmail.com>
    LaPetiteSouris committed May 16, 2023
    Configuration menu
    Copy the full SHA
    808ec45 View commit details
    Browse the repository at this point in the history
  5. Add lastAccess timestamp test for RateLimiter

    Signed-off-by: TungHoang <sontunghoang@gmail.com>
    LaPetiteSouris committed May 16, 2023
    Configuration menu
    Copy the full SHA
    260e71d View commit details
    Browse the repository at this point in the history
  6. Add timestamp unit test for RateLimiter

    Signed-off-by: TungHoang <sontunghoang@gmail.com>
    LaPetiteSouris committed May 16, 2023
    Configuration menu
    Copy the full SHA
    e9585fb View commit details
    Browse the repository at this point in the history
  7. Use sync.Map to avoid contention on RateLimiter

    Signed-off-by: TungHoang <sontunghoang@gmail.com>
    LaPetiteSouris committed May 16, 2023
    Configuration menu
    Copy the full SHA
    6061035 View commit details
    Browse the repository at this point in the history
  8. Remove global lock in RateLimitStore

    Signed-off-by: TungHoang <sontunghoang@gmail.com>
    LaPetiteSouris committed May 16, 2023
    Configuration menu
    Copy the full SHA
    dfaf183 View commit details
    Browse the repository at this point in the history