SpinTheMic
Pro

Interview practice question

Simple rate limiter with Redis

Backend Engineering · NoSQL and Redis · Beginner

Implement a simple per-user limit of 60 requests per minute using Redis.

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Key per user per minute window.
  • INCR on each request.
  • EXPIRE on first increment.
  • Reject if count > 60.
  • Atomicity via MULTI or Lua.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics