Skip to content
Hard Design: Rate Limiter

Why must the sliding window check-and-increment be done atomically in Redis?

— Tests your understanding of this concept.

Answer Options

A Redis requires atomic operations
B ZCARD then ZADD is a race condition — two concurrent requests can both see count < limit and both get allowed
C Atomicity improves performance
D Redis Sorted Sets require atomic access

Want to see the correct answer?

Get the answer with a detailed explanation, plus practice 22+ more Design: Rate Limiter questions with adaptive quizzes and timed interviews.

See the Answer on Guru Sishya →

This question is from the Design: Rate Limiter topic (System Design Cases).

More Design: Rate Limiter Questions