Implementing redis client using java (simple jedis)

The redis server uses port 6379 by default to communicate with the outside world, so we can actually implement a simple redis client on our own. This is done in java. Implementing a redis client consists of two main parts socket communicationEncoding and decoding of redis communication protocol The second part is mainly the implementation of ...

Posted on Mon, 06 Dec 2021 12:49:12 -0500 by goobers

Redis or Zookeeper for distributed locks?

Why use distributed locks? Before discussing this issue, let's take a look at a business scenario: System A is an e-commerce system. At present, it is deployed on A machine. There is an interface for users to place orders. However, users must check the inventory before placing orders to ensure that the inventory is sufficient. Because the sy ...

Posted on Sun, 05 Dec 2021 08:54:30 -0500 by sean paul

docker container - overlay, written by Dockerfile

catalogue 1, overlay 1. AUFS and overlay / overlay 2 2. overlay structure 3. Joint mount 2, Written by dockerfile 1. Dockerfile structure consists of four parts 2. CMD and entrypoint 3. Write dockerfile 4. dockerfile optimization Optimization scheme summary Building nginx images docker image hierarchy Difference between CMD and EN ...

Posted on Sat, 04 Dec 2021 18:46:31 -0500 by keithschm

Redis related commands and persistence

Redis Redis is short for Remote Dictionary Service; It is also a Remote Dictionary Service; Redis is a memory database, KV database and data structure database; Redis is widely used, such as Twitter, Blizzard Entertainment, Github, Stack Overflow, Tencent, Alibaba, JD, Huawei, Sina Weibo, etc. many small and medium-sized companies are also u ...

Posted on Fri, 03 Dec 2021 15:46:02 -0500 by shaunrigby

Two basic ways of configuring redis with springboot

When building the springboot+Redis environment based on IDEA, deeply understand the relevant mechanisms of the springboot framework, know when to use the configuration file and when to use the annotation, and summarize the relevant core issues as clearly and completely as possible. Don't talk much. Get into the subject. 1. There are two ways to ...

Posted on Thu, 02 Dec 2021 22:22:50 -0500 by c_coder

Integration framework - Redis

Redis introduction Redis (Remote Dictionary Server), i.e. remote dictionary service, is an open source log type key value database written in ANSI C language, supporting network, memory based and persistent, and provides API s in multiple languages. Since March 15, 2010, the development of redis has been hosted by VMware. Since May 2013, t ...

Posted on Wed, 01 Dec 2021 12:54:59 -0500 by ayok

Past and present life of Redis thread model

1, OverviewAs we all know, Redis is a high-performance data storage framework. In high concurrency system design, Redis is also a key component and a powerful tool for us to improve system performance. It is more and more important to deeply understand the high-performance principle of Redis. Of course, the high-performance design of Redis is a ...

Posted on Tue, 30 Nov 2021 07:05:26 -0500 by morphius

[Redis] spring boot integrates Redis and Redis.conf

SpringBoot operation data: Spring data JPA JDBC mongodb redis! SpringData is also as famous as SpringBoot! explain: After spring boot 2. X, the original jedis is replaced by lettuce? Jedis: direct connection and multi thread operation are unsafe. If you want to avoid unsafe, use jedis pool connection pool, which is more like BIO modelettuce: ...

Posted on Tue, 30 Nov 2021 00:16:32 -0500 by avvllvva

Redis_ Business_ Second kill case

Redis_ Business_ Second kill case 1. Solve the transaction operations of counters and personnel records Simple version: index.jsp <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <ht ...

Posted on Mon, 29 Nov 2021 17:46:18 -0500 by seoreferrals

Maven, Redis, and Kafka installation and configuration

Maven installation and configuration 1, Download and install go to https://Download the latest version of Maven at maven.apache.org/download.cgi 2, Custom storage directory Extract the file to D:\Program Files\Apache\maven directory 3, Environment variable configuration New environment variable MAVEN_HOME, assignment D:\Program Files\A ...

Posted on Mon, 29 Nov 2021 03:57:45 -0500 by Sarok