DATABASES GUIDE
Redis Interview Questions
By the HireReadyAI team · 8 min read
Caching, rate limits, data structures, and production pitfalls like stampedes and huge keys.
Common use cases
Caching, session stores, rate limiting, leaderboards, short-lived locks, and pub/sub for lightweight messaging. Say why Redis fits: speed, simple data structures, TTL support.
Data structures
Strings, hashes, lists, sets, sorted sets, streams. Interviews often ask when to use a hash vs many string keys, or sorted sets for rankings.
Pitfalls
- Cache stampede on hot key expiry
- Treating Redis as durable primary storage without ops plan
- Huge keys blocking the single-threaded event loop
- Missing TTLs leading to memory growth