Faced with a scenario where an API must handle a sudden surge in traffic, what rate limiting technique would you consider most effective?

  • Fixed Window
  • Leaky Bucket
  • Sliding Window
  • Token Bucket
In a scenario of sudden traffic surge, the Token Bucket algorithm is often considered effective due to its ability to handle bursts while maintaining a sustainable rate over time. Token Bucket regulates the traffic by using tokens that are refilled at a constant rate. This allows occasional bursts while ensuring overall rate adherence.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *