Redis overview-how to learn Redis

Redis is a very good middleware system, it is designed very classic in the four aspects of CPU usage, memory organization, storage persistence and network communication. Redis is a key-value database, which is widely used. To learn Redis, we first need to understand the "two dimensions and three main lines" of Redis.

Application dimension Cache application Cluster application Data structure application
System dimension Processing layer Thread model Master-slave replication Data fragmentation
Memory layer data structure Sentinel mechanism  
Storage layer AOF RDB Load balancing
Network layer epoll network framework    
    High-performance main line Highly reliable main line Highly scalable main line

Caching and clustering are the two major application scenarios of Redis. You can learn through some classic use cases and combine with practical applications to draw Redis problem portraits so that you can use Redis problem portraits when you encounter problems in the future. Map quickly locate the problem and find a solution.

1.Redis basic learning

  • Build a simple key-value pair database
  • Understand data structure, threading model, persistence

2.Redis practice learning

  • Reasonable use of data structure
  • Avoid request blocking and jitter
  • Avoid memory competition and improve memory efficiency
  • Learn to use the two application scenarios of cache and cluster

 

Guess you like

Origin blog.csdn.net/qq_39074984/article/details/113731873