[SpringBoot] 87. Integrating Redisson in SpringBoot to realize Redis distributed lock

1. Introduction to Redisson

Redisson is a Java in-memory data grid (In-Memory Data Grid) built on the basis of Redis. Based on the NIO-based Netty framework, Redisson makes full use of a series of advantages provided by the Redis key-value database. Based on the common interfaces in the Java utility toolkit, Redisson provides users with a series of common tool classes with distributed characteristics. . This enables the toolkit originally used to coordinate single-machine multi-thread concurrent programs to obtain the ability to coordinate distributed multi-machine multi-thread concurrent systems, greatly reducing the difficulty of designing and developing large-scale distributed systems. At the same time, combined with various distributed services with rich characteristics, it further simplifies the cooperation between programs in a distributed environment.

2. Features of Redisson

  1. Supports cloud hosting service model (supports Amazon Cloud's ElastiCache Redis and Microsoft Cloud's Azure Redis Cache):

    • Automatically discover master node changes
  2. Supports Redis cluster mode (supports Amazon Cloud's ElastiCache Redis Cluster and Microsoft Cloud's Azure Redis Cache):

    • Automatically discover master and slave nodes

    • Automatic update of status and configuration topology

    • Automatic discovery of slot changes

  3. Support Redis sentinel mode:

    • Automatic discovery of master, slave and sentinel nodes

    • Automatic update of status and configuration topology

  4. Support Redis master-slave mode

  5. Support Redis single section mode

  6. Multi-node mode supports read-write separation: slave read master write, master read master write, master-slave mixed read master write

  7. all objects and

Guess you like

Origin blog.csdn.net/qq_40065776/article/details/132231482