Foundations
Self-test
Check your understanding
Self-test9 questions
—/9
Walk through one iteration of the Redis event loop.
What runs outside the main thread in Redis? Name four kinds of work.
Why can a single command freeze every client? Give three examples of such commands.
Why does pipelining speed things up when Redis itself isn't the bottleneck?
Why is the container memory limit set to twice
maxmemory?What's the difference between
SCANandKEYS, and what are SCAN's guarantees?When would you use
UNLINKinstead ofDEL?Why are key prefixes better than numbered databases for separating data?
- Design question
Design the key schema for a multi-tenant SaaS that caches products, stores sessions, and rate-limits API keys. Show how ACLs would restrict each service.