ziplist source code analysis of Redis
ziplist source code analysis of Redis
1, ziplist introduction
From the previous analysis, we know that ziplist (compressed list) is used for the underlying storage of quicklist. Since the compressed list itself has many contents, we reopened this article. Before the official source code, we should first look at the characteristics of ziplist:
...
Posted by gazolinia on Sun, 19 Apr 2020 14:58:37 +0200
Priority and dead letter queue of RabbitMQ and. net core messages
1. Priority of message
If there is a requirement now, we need to push some of the highest priority notifications to the client. We can use the sortedset of redis or the message priority attribute of rabbit we are going to talk about today
Producer code
using RabbitMQ.Client;
using System;
using System.Collections.Generic;
using System. ...
Posted by andrew_ww on Sat, 18 Apr 2020 17:28:20 +0200
Analyzing the process of dubbo service registering to nacos
We talked about the migration of our dubbo service from redis to Nacos registry. After the migration, we found that an exception of ERROR com.alibaba.nacos.client.naming - [CLIENT-BEAT] failed to send beat: would be thrown from time to time. Therefore, with this analysis process, we found out that the exception is our SLB network mapping proble ...
Posted by juhl on Wed, 15 Apr 2020 13:55:37 +0200
redis basic learning
redis basic learning
redis
Redis is an open source (BSD licensed) in memory data structure storage system, which can be used as database, cache and message middleware
yum install redis
1.yum installation
#The premise is to configure alicloud yum source and epel source
#Check whether there is redis package
yum list redis ...
Posted by Zeon on Sun, 12 Apr 2020 14:52:24 +0200
Nginx series tutorials nginx Solving session consistency
session viscosity
Each request is allocated according to the hash result of the access ip, so that each visitor accesses a back-end server, which can solve the session problem.
upstream backserver {
ip_hash;
server 192.168.0.14:88;
server 192.168.0.15:80;
}
But there are disadvantages. There is a single risk. If I have logged in on port 192.1 ...
Posted by djelica on Sun, 12 Apr 2020 03:53:23 +0200
Getting started with Go Mysql and Redis
Mysql and Redis operations
Mysql development
Install mysql and create test library
Create table
mysql> CREATE TABLE `user` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `name` varchar(20) DEFAULT '', `age` int(11) DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4;
mysql> insert into user (name,age)va ...
Posted by programguru on Sat, 11 Apr 2020 16:17:34 +0200
Install redis Sentry Cluster offline on three servers, one master, two slaves
The gcc environment is installed on the system (otherwise, compiling redis will cause errors).Still don't know how to install the gcc environment offline viewable Install gcc environment offline under CentOS with detailed graphics
download
Click on the official address to download redis for Linux
http://download.redis.io/releases/redis-5.0.4.ta ...
Posted by TGixer on Tue, 07 Apr 2020 06:08:36 +0200
[cache] use Redis cache in SpringBoot
I. Preface
Select is the most frequently used in the database, and it is basically the same every time. update, delete and insert are not used as frequently as select, and they are basically different every time. In order to reduce the pressure of the database, it is necessary to use cache for select. In the past, Ehcache was ...
Posted by richardbotw on Fri, 03 Apr 2020 19:17:08 +0200
preHandle problem of adding and overriding parameters, overriding HttpServletRequestWrapper and Filter
Because HttpServletRequest in preHandle only has setAttribute, no setParameter and no add method
So there is no way to add parameters directly. I checked a lot of data from the Internet, basically speaking, I need to rewrite HttpServletRequestWrapper
Just do what you say. Check the blog on the Internet to see how others can realize it. Maybe be ...
Posted by saltious on Tue, 31 Mar 2020 23:23:36 +0200
Restful API Interface Security Design
1.API Interface Design Specification
https://github.com/mishe/blog/issues/129
2. Security Design
a. Whitelist restrictions
Accept only the request response from a specific system, the caller's IP address needs to be reported in the system, otherwise it cannot be invoked
b. Validation of legitimate identity
Basic Authentication: This ...
Posted by OM2 on Sat, 28 Mar 2020 09:05:09 +0100