← Quiz: Design a Rate Limiter: all 15 questions
Quiz: Design a Rate Limiter · Question 4 of 15
What is the main cost of the sliding window log algorithm?
What is the main cost of the sliding window log algorithm?
- A.It allows double bursts at window edges
- B.It stores a timestamp for every recent request, which uses a lot of memory
- C.It cannot reject any request
- D.It only works with one server
Answer & explanation
Correct answer: It stores a timestamp for every recent request, which uses a lot of memory
Exactness comes from remembering every request in the window.
Can you get the rest right without peeking?
Take the timed Quiz: Design a Rate Limiter quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →