I met Redis

  1. What is a Redis
    • Redis is a NoSQL database based on key-value pairs
  2. Redis features
    • Read and write fast
      1. The official data read and write rate is 10,000 times per second
      2. C language is used for development
      3. Redis uses a single-threaded architecture to prevent the race problems that multithreading can cause.
    • Key-value pair-based data structure server
      1. Redis stores data based on key-value pairs. Different from many key-value pairs,Redis values can be not only strings, but also specific data structures, which not only facilitates development in many application scenarios, but also improves development efficiency.
    • feature-rich
      1. Provides key expiration functionality that can be used for caching.
      2. Provides publish and subscribe functionality that can be used to implement a messaging system.
      3. Support Lua scripting function, you can use Lua to create new Redis commands.
      4. Provides a simple transaction function, can guarantee the transaction characteristics to a certain extent.
      5. Pipeline is provided, so that clients can send a batch of commands to Redis at once, reducing network overhead.
    • Simple and stable
      1. Redis source code is small
      2. Redis uses single threads to make development easier
      3. Redis does not rely on class libraries in the system
    • Multiple client languages
      1. Redis provides a simple TCP communication protocol, and many programming languages can easily access Redis
    • persistence
      1. Redis provides two types of persistence :RDB and AOF
    • A master-slave replication
      1. Redis provides a replication function that enables multiple Redis copies of the same data
    • Highly available and distributed
      1. Redis has officially provided a highly available implementation Redis Sentinel from version 2.8, which guarantees fault discovery and automatic failover of Redis nodes. Redis Cluster is the true distributed implementation of Redis, providing high availability, read and write, and capacity scalability.

The attached:

  1. What is based on the key value:
    1. Almost all programming languages provide dictionary-like functions, such as Map in Java and Dict in Python. This way of organizing data is called key-value based