Set up eureka,gateway,admin,redis,docker series. Redis and redisapi are together

This chapter covers the redis interface Aspect signature swagger2 1. Install redis on Linux centOS server. Go to the Internet for specific installation commands. It's relatively simple. I used the config set maxmemory policy volatile LRU policy 2. Create an empty module project Add pom dependency <dependencies> <dependency> ...

Posted by l00ph0le on Thu, 26 Mar 2020 16:09:58 +0100

API s commonly used in Redis - are you really familiar with Redis?

For a long time, Redis, as a Nosql database, has been widely used in a variety of projects due to its function of frying chickens and cows. I didn't think much of Redis before, but now I like it more and more. It is often used to store some common data, such as user id, session, user menu permission, me ...

Posted by Hotkey on Sat, 18 Jan 2020 11:34:07 +0100

rabbitmq series message idempotency processing

1. springboot Integrating Rabbit MQ We need to create two new projects, one as a producer and the other as a consumer.Add an amqp dependency to pom.xml: <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-amqp</artifactId> </dependency> Add rabbitmq information ...

Posted by Sephirangel on Fri, 17 Jan 2020 02:02:21 +0100

Automatically configuring machine numbers with SnowFlake in a cluster or development environment using Redis

Automatically configuring machine numbers with SnowFlake in a cluster or development environment using RedisPreface:SnowFlake Snowflake ID algorithm is a well-known distributed ID generation algorithm introduced by Telco.With pre-allocated machine IDs, workspace IDs, machine time can generate globally unique Long Type IDs that increase over tim ...

Posted by joel24 on Fri, 03 Jan 2020 06:30:40 +0100

Spring Boot 2 Series Tutorial Spring Boot Integrated Redis

Before Redis came along, we had a wide range of caching frameworks. With Redis, the caching scheme was basically unified. There was a series of tutorials about Redis and Songo that Redis's little buddies might refer to: Redis Tutorial Collection There are many ways to use Java to operate Redis. Jedis is currently one of the more popular solutio ...

Posted by vivianp79 on Sat, 23 Nov 2019 03:09:10 +0100

redis pipeline mass storage

pipeline is a way for redis to submit in batch, that is, to establish a connection for multiple command operations and send them to redis for execution. In terms of performance, it will be much better than a single circular submission. Performance comparison Circular single submission The code is as follows: public void testOne ...

Posted by contex on Sat, 09 Nov 2019 17:33:12 +0100

There was Cheng Yaojin's "three board axes" in ancient times, which shocked Sui and Tang Dynasties.

In many scenarios of distributed system, in order to ensure the final consistency of data, we need many technical solutions to support, such as distributed transactions, distributed locks and so on. Sometimes, we need to ensure that a method can only be executed by the same thread at the same time. In the stand-alone environment, Java actually ...

Posted by bogdaniel on Fri, 25 Oct 2019 08:14:53 +0200

SSM+redis Cluster Integration

Combine redis cluster with java (see previous blog for redis cluster) First: Non-use of frameworks1. Introducing jar (a jedis jar is enough) 2. Create the node object, add the node object to the JedisCluster object, and then use it properly. public static void main(String[] args) { // Create and popul ...

Posted by Kwakhed on Mon, 07 Oct 2019 20:34:14 +0200

SpringBoot 2.0 Basic Case (08): Integrating Redis database to achieve cache management

Introduction to Redis In addition to providing excellent automation support for commonly used relational databases, Spring Boot also provides automation configuration support for many NoSQL databases, including Redis, MongoDB, Elastic search. After these cases are sorted out, Git will be uploaded one after another.Spring Boot version 2, which s ...

Posted by JamieWAstin on Thu, 03 Oct 2019 15:15:05 +0200

Configuration of Spring MVC when intercepting Redis

Copy the company's project code from colleagues and try to run it. Because the project's architecture is springmvc, I mainly look at the file springmvc.xml, and see that the configuration file needs to connect to the local redis, so I learn by the way: 1. Download: github downloads files is really d ...

Posted by Elizabeth on Mon, 30 Sep 2019 14:43:23 +0200