03 November 2020

#Redis

#Redis

Key Concepts


Topic SubTopics Basic Intermediate Advanced Expert
Introduction & Basics Overview, Features, Use Cases, In-memory vs Disk, Data Structures
Installation & Configuration Installation (Linux/Windows), Configuration Files, Redis CLI
Data Types String, List, Set, Sorted Set, Hash, Bitmaps, HyperLogLog
Basic Commands GET, SET, DEL, EXISTS, INCR, DECR
Advanced Commands MGET, MSET, HSET, HGET, ZADD, ZRANGE
Persistence RDB Snapshots, AOF, Hybrid Persistence, Configuration
Expiration & TTL EXPIRE, PTTL, Key Eviction Policies
Pub/Sub PUBLISH, SUBSCRIBE, Pattern Matching
Transactions & Lua Scripts MULTI/EXEC, WATCH, UNWATCH, EVAL
Replication Master-Slave, Redis Sentinel, Failover, Read Scaling
Cluster Sharding, Redis Cluster, Hash Slots, Slot Migration
Performance & Optimization Memory Management, Pipelining, Lazy Loading
Security AUTH, ACL, Encryption, Network Security, Role-based Access
Monitoring & Management Redis CLI, INFO, MONITOR, Slowlog, Redis Sentinel Monitoring
Persistence Tuning RDB vs AOF Trade-offs, fsync policies, Recovery
Eviction Policies LRU, LFU, TTL-based, Allkeys vs Volatile
Backup & Restore RDB Backup, AOF Replay, Disaster Recovery
Memory Optimization Memory fragmentation, Object Encoding, Maxmemory Policy
Cluster Management Adding/Removing Nodes, Rebalancing, Failover Handling
High Availability Sentinel Setup, Automatic Failover, HA Patterns
Lua Scripting Atomic Operations, Scripting Performance, Error Handling
Streams XADD, XREAD, XGROUP, Consumer Groups
Modules & Extensibility RedisJSON, RediSearch, RedisGraph, RedisTimeSeries
Analytics & Metrics Keyspace Events, Memory Stats, Latency Monitoring
Emerging Features Vector Search, AI Integration, Redis AI, Redis Stack

Interview question

📘 Basic Level

  1. What is Redis and what are its key features?
  2. What is the difference between Redis and traditional RDBMS?
  3. What data structures are supported by Redis?
  4. What is an in-memory database?
  5. How do you install Redis on Linux/Windows?
  6. What is Redis CLI and how is it used?
  7. How do you set and get a key-value pair in Redis?
  8. What commands are used to delete keys?
  9. How do you check if a key exists in Redis?
  10. What is the difference between GET and MGET commands?
  11. What is the difference between SET and MSET commands?
  12. How do you increment or decrement a numeric value in Redis?
  13. How do you view all keys in Redis?
  14. What is TTL in Redis?
  15. How do you set an expiration for a key?
  16. What happens when a key expires?
  17. What is the difference between DEL and UNLINK?
  18. What is the difference between a string and hash in Redis?
  19. How do you store a list in Redis?
  20. How do you retrieve elements from a list?
  21. What is a set in Redis?
  22. How do you add and remove members from a set?
  23. What is a sorted set and how is it different from a set?
  24. What is the Redis default port?
  25. What are the persistence options in Redis?

📗 Intermediate Level

  1. What is RDB persistence and how does it work?
  2. What is AOF persistence and how does it work?
  3. What is the difference between RDB and AOF?
  4. How do you configure Redis persistence in redis.conf?
  5. What is a Redis transaction?
  6. What are the MULTI, EXEC, and WATCH commands?
  7. How do you execute Lua scripts in Redis?
  8. What is Redis pub/sub and how does it work?
  9. How do you subscribe to a channel?
  10. How do you publish a message to a channel?
  11. What is Redis replication?
  12. What is a master and a replica node in Redis?
  13. How do replicas synchronize with the master?
  14. What is Redis Sentinel?
  15. How does Sentinel handle failover?
  16. What are Redis eviction policies?
  17. What is LRU and LFU eviction policy?
  18. How do you monitor Redis performance?
  19. What are Redis slow logs and how do you use them?
  20. What is pipelining in Redis?
  21. How do you optimize Redis queries using pipelining?
  22. What is the difference between blocking and non-blocking commands?
  23. How do you manage memory usage in Redis?
  24. How do you flush all keys from a database?
  25. How do you monitor Redis memory usage?

📕 Advanced Level

  1. What is Redis clustering?
  2. How do Redis hash slots work?
  3. How do you add a node to a Redis cluster?
  4. How do you remove a node from a Redis cluster?
  5. What is key sharding in Redis?
  6. How does Redis handle rebalancing data across nodes?
  7. How do you implement high availability in Redis?
  8. How do Redis clusters handle failover?
  9. What is Redis sentinel monitoring architecture?
  10. How do you configure client read/write preferences in Redis clusters?
  11. What is Redis Streams?
  12. How do consumer groups work in Redis Streams?
  13. What is XREAD and XREADGROUP?
  14. How do you manage offsets in Redis Streams?
  15. How do Redis hyperloglogs work?
  16. How do you implement approximate counting with HyperLogLog?
  17. What is Redis Bitmaps and how is it used?
  18. What are Redis geospatial indexes?
  19. How do you perform geospatial queries in Redis?
  20. How does Redis handle large datasets in memory?
  21. What are the best practices for memory optimization in Redis?
  22. How do Redis modules extend functionality?
  23. What is RedisJSON?
  24. What is RediSearch and how is it used?
  25. How does Redis handle atomic operations with Lua scripts?

📓 Expert Level

  1. How do you design a Redis architecture for high-concurrency workloads?
  2. How do you design Redis for multi-region replication?
  3. How do you handle failover in distributed Redis systems?
  4. How do you tune Redis performance for low latency?
  5. How do you index Redis data for analytics queries?
  6. How do you monitor Redis clusters at scale?
  7. How do you handle Redis memory fragmentation?
  8. How do you configure Redis for persistence in cloud environments?
  9. How do you design Redis caching strategies for large applications?
  10. How do you use Redis with Kubernetes?
  11. How do Redis pipelining and transactions differ in high load?
  12. How do you implement distributed locks in Redis?
  13. How do you design Redis for session management at scale?
  14. How do you implement rate limiting using Redis?
  15. How do you secure Redis in production?
  16. How do you use ACLs in Redis 6+?
  17. How do you perform real-time analytics using Redis Streams?
  18. How do Redis Vector Search and AI modules work?
  19. How do you plan disaster recovery for Redis clusters?
  20. How do you migrate data between Redis clusters?
  21. How do you handle schema evolution in Redis?
  22. How do you implement multi-tenancy in Redis?
  23. How do you integrate Redis with machine learning pipelines?
  24. How do you optimize Redis for microservices architectures?
  25. What are emerging trends in Redis, such as Redis Stack and AI integration?

Related Topics