Pick a rate-limiting algorithm, code the leaky bucket, and handle concurrent requests for the last slot.
Pick a rate-limiting algorithm, code the leaky bucket, and handle concurrent requests for the last slot. Too many requests from your network. Please wait a minute.