sliding window rate limiting
Adaptive Rate Limiting: Flash Sale Shoppers vs. DDoS Attacks
Adaptive rate limiting with token-bucket and sliding-window code that tells flash-sale shoppers from DDoS bots, so you block attackers without blocking buyers ...

