Next Steps with Redis
You can now
- Install and ping Redis
- Use redis-cli safely
- Work with strings, lists, hashes, and sets
- Set TTLs for caches and sessions
- Sketch app clients in Node or Python
Watch for these traps
- No TTLs on cache keys
KEYS *in production- Storing huge blobs that belong in object storage
- One shared Redis without key prefixes across apps
Where to go next
- Sorted sets and leaderboards
- Pub/Sub and Streams
- Distributed locks (carefully)
- Cluster and Sentinel concepts
- Observability: memory, hit rate, slow commands
Practice idea
Add a cache layer in front of a slow API or database query in a small project, measure the speedup, and invalidate on updates.
Comments
One comment per signed-in account. Comments are saved with this page’s URL.