Learn Labs
Foundations

Self-test

Check your understanding

Self-test9 questions

—/9
  1. Walk through one iteration of the Redis event loop.

  2. What runs outside the main thread in Redis? Name four kinds of work.

  3. Why can a single command freeze every client? Give three examples of such commands.

  4. Why does pipelining speed things up when Redis itself isn't the bottleneck?

  5. Why is the container memory limit set to twice maxmemory?

  6. What's the difference between SCAN and KEYS, and what are SCAN's guarantees?

  7. When would you use UNLINK instead of DEL?

  8. Why are key prefixes better than numbered databases for separating data?

  9. 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.