Scalability and Performance · Remembering answers
Redis
Redis keeps data structures in RAM and runs commands one at a time, so each command is fast and atomic. The same design means one slow command blocks everyone, and memory and durability have hard limits.
- Time22 min
- LevelDeveloper
- Experiments1 live
- Check6 questions






Request arrives from one IP; the app builds the key rate:IP:current-second.
INCR Redis adds one to that key and returns the new count.
Count at most 10 the app serves the request normally.
Count above 10 the app answers 429 Too Many Requests until the second ends.
Key
Hash slot CRC16 of
Slot map the client's cached map says which primary owns that slot.
Primary runs the command, or replies MOVED if the slot has moved.