← Quiz: Design a Rate Limiter: all 15 questions
Quiz: Design a Rate Limiter · Question 6 of 15
Why is Redis INCR suitable for a shared counter?
Why is Redis INCR suitable for a shared counter?
- A.It writes to disk before replying
- B.It is atomic, so simultaneous increments are never lost
- C.It encrypts the counter
- D.It works without a network
Answer & explanation
Correct answer: It is atomic, so simultaneous increments are never lost
Atomic increments mean two servers adding at the same moment both count.
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 →