Rate Limiter

Rate limiter could implmented by each API/ each IP/ total region Might save the rule in DB / config file

Where to implement

  1. server side
    • Fully control
  2. middleware
    • API gateway
    • Might be 3rd party

Algorithm

  • Token bucket
  • Leaking bucket
  • Fixed window counter
  • sliding window log
  • Sliding window counter

Resource

0%