Interview practice question
KEYS command in production
Backend Engineering · NoSQL and Redis · Experienced
A developer ran KEYS * on production Redis to debug, and the app had a latency spike. Why, and what should be used instead?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- KEYS scans all keys, blocks server.
- O(N) on millions of keys.
- Use SCAN with cursor and COUNT.
- Restrict KEYS via ACLs.
- Use key patterns and monitoring tools.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.