Introduction to Redis client and toolset

java client

 

  • Redssion

Features: The simplest operation, the most abundant functions, Redis smart client, support distributed collection, distributed lock, tripartite framework integration, etc. The bottom layer
uses the Netty framework. Support Redis 2.8 or above, and Java 1.6+ or above. It is more efficient than other redis clients.

https://github.com/redisson/redisson/

  • Jedis

Features: Jedis is a client of Redis's Java implementation, and its API provides comprehensive Redis command support. Integration with Spring. As its
official recommended Java version client, jedis is also very powerful and stable, supporting transactions, pipelines, and distributed by jedis itself.

https://github.com/xetorthio/jedis

 

Redis client

 

  • Redis Desktop Manager

       Features: written in C++, fast response and good performance. But does not support database backup and recovery

      https://github.com/uglide/RedisDesktopManager

  • Redis Client

     Features: It is written in Java and has rich functions. The disadvantage is that the performance is slightly worse. When the network is not good, it will disconnect from time to time.

     https://github.com/caoxinyu/RedisClient

  • Redis Studio

      Features: Another redis management tool written in C++, only supports windows platform, supports xp operating system

     https://github.com/cinience/RedisStudio

 

 

Redis traffic monitoring

  • CacheCloud

Provide a Redis cloud management platform: realize automatic deployment of multiple types (Redis Standalone, Redis Sentinel, Redis Cluster), solve the fragmentation phenomenon of Redis instances, provide complete statistics, monitoring, operation and maintenance functions, and reduce the operation and maintenance costs and errors of developers Operation, improve machine utilization, provide flexible scalability, and provide convenient access to clients;

https://github.com/sohutv/cachecloud

Features:

1. Monitoring and statistics: Provides a monitoring and statistics interface for various dimensions of data under machines, applications, and instances.
2. One-click start: Redis Standalone, Redis Sentinel, Redis Cluster three types of applications, no need to manually configure and initialize.
3. Failover: Support the high availability mode of sentinel and cluster.
4. Telescopic: Provide complete vertical and horizontal online telescopic functions.
5. Improve operation and maintenance: Provide automatic operation and maintenance and simplify operation and maintenance functions to avoid pure manual operation and maintenance errors.
6. Convenient client: convenient and quick client access.
7. Metadata management: Provide machine, application, instance, and user information management.
8. Process: Provide complete processing procedures for application, operation and maintenance, scaling, modification, etc.

 

Redis application scenarios

  • Session Cache (Session Cache) The most commonly used scenario is session cache. The advantage of using Redis to cache sessions over other storage (such as Memcached) is that Redis provides persistence. When maintaining a cache that does not strictly require consistency, most people will be unhappy if all the user's shopping cart information is lost.
  • Object caching When working on a Java project, it usually speeds up query efficiency and reduces the number of connections to the database. We will add caching functions to the code. Redis's efficient cache solves the problem for us
  • Distributed locks In the application of Internet products, some scenarios require lock processing, such as: seckill, global increment ID, distributed batch processing. Redis provides some commands SETNX and GETSET, which can facilitate the realization of distributed lock mechanism.
  • One of the major advantages of queue Reids in the field of memory storage engines is to provide list and set operations, which makes Redis a good message queue platform to use.
  • The leaderboard/counter Redis implements the operation of incrementing or decrementing numbers in memory very well. Set and Sorted Set also make it very simple for us to perform these operations. Redis just provides these two data structures. So, we need to get the top 10 users from the sorted set-we call it "user_scores"

 

 

 

 

Guess you like

Origin blog.csdn.net/qq_36807862/article/details/96272693