Dubbo Registry

1. The role of registries With the registry, service providers can dynamically add and delete services, and service consumers can pull up the latest services to achieve synchronization after receiving update notifications. Unified configuration can be achieved in the registry, and dynamic adjustment of parameters can be automatically notified t ...

Posted by Rangana on Mon, 07 Oct 2019 06:43:30 -0700

Mybatis uses Redis instead of secondary caching

1. Case introduction The results of Mybatis query database are stored in Redis database as key-value pairs instead of secondary cache in Mybatis. When querying the same operation, we can read the results directly in Redis to improve efficiency. 2. Case Realization 2.1 Importing project dependencie ...

Posted by iamatube on Fri, 04 Oct 2019 12:18:16 -0700

Redis-Xi-01-Redis Distributed Lock (Single Node Lua script)

Article directory Redis-Xi-01-Redis Distributed Lock (Lua script) Get Lock Release Lock Code test Code Testing process Redis-Xi-01-Redis Distributed Lock (Lua script) In SpringBook project, set key value nx px command is used to ensure the atomic operation of acquiring lock, and Lua script ...

Posted by rimedey on Wed, 02 Oct 2019 16:52:10 -0700

Sprboot-Integrated redis from Zero Learning

Add dependency <!-- spring boot2.0 Later, the default redisConnectionFactory by LettuceConnectionFactory,I want to continue using it here. jedis,Just do it. exclusion --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-da ...

Posted by Crackhead on Wed, 02 Oct 2019 01:54:30 -0700

12. Renewal of Registered Directory Introduced by Services and Connection of Services

The last section talks about the configuration and parameter subscription of service introduction. After parameter subscription, the consumer obtains the provider url, the configurer url, and the routing URL under the corresponding interface classifi ...

Posted by rtown on Mon, 16 Sep 2019 01:24:09 -0700

Introduction to Redis and Simple Operations

Introduction to Redis Redis is a key-value-oriented memory database for data types, which can meet our needs for fast reading and writing of massive data. Is a nosql non-relational database Redis keys can only be string-type values that can be of ...

Posted by billynastie on Mon, 09 Sep 2019 06:05:01 -0700

Distributed ID Series - Is Redis Cluster Implemented Distributed ID Suitable for Distributed ID

First is the project address: https://github.com/maqiankun/distributed-id-redis-generator For Redis Cluster to generate distributed ID s, here's the first thing to learn about the EVAL, EVALSHA command when redis uses the lua script: https://www.runoob.com/redis/scripting-eval.htmlhttps://www.runoob.com/redis/scripting-evalsha.html Explain how ...

Posted by dawsba on Wed, 14 Aug 2019 20:37:06 -0700

Installation and use of redis

Redis Redis Command Reference Web Site: http://doc.redisfans.com/ Introduction to Redis Redis is completely open source, free of charge, complies with BSD protocol, and is a high-performance key-value database. Redis and other key - value caching products have three features: Redis supports dat ...

Posted by jbulaswad on Thu, 01 Aug 2019 23:20:36 -0700

Introduction to Redis HyperLog usage

(1) Introduction to HyperLogLog HyperLogLog was added at Redis version 2.8.9. The HyperLogLog algorithm is an algorithm for cardinality statistics. It only takes 12 KB of memory per HyperLogLog key to calculate the cardinality of nearly 2^64 different elements.HyperLogLog is suitable for large data volumes because it is relatively ...

Posted by jonathanellis on Wed, 17 Jul 2019 09:26:54 -0700

[Redis] 5. Redis transaction processing

MULTI, EXEC, DISCARD and WATCH are the basis of Redis transactions1. The MULTI command is used to open a transaction and always returns OK.After MULTI is executed, the client can continue to send any number of commands to the server, which will not be executed immediately, but will be placed in a queue. 2. When the EXEC command is invoked, all ...

Posted by thomasd1 on Sun, 07 Jul 2019 19:03:02 -0700