Redis message queue

1, Message queue Basic requirements of message queuing Message order preservation: the generation and consumption of messages are in order, and the message queue needs to ensure the order of consumption.Duplicate message processing: the producer may send duplicate messages, and the idempotency of consumption shall be guaranteed.Message reliab ...

Posted by chaoswuz on Tue, 12 Oct 2021 15:11:28 -0700

Redis cluster fault monitoring and sentinel mechanism principle analysis

Construction of Redis master-slave cluster and analysis of master-slave replication principle preface In the last article, I analyzed how to build a master-slave cluster and the principle of master-slave replication; This article continues to analyze the continuous sinking of clusters, common runtime detection tools, the principle of sentinel ...

Posted by ashben on Tue, 12 Oct 2021 00:10:38 -0700

Implementation of ranking function based on Redis in java - with source code

In my spare time, I sorted out the ranking function previously realized by Redis Zset data type. preface The reason why redis was selected for the ranking function is that there are a large amount of user data, nearly 200000 people, and it is not impossible to check the top 100 ranking from the database, but it is not enough to see compar ...

Posted by howard-moore on Mon, 11 Oct 2021 19:43:36 -0700

Advanced use of redis -- redis persistence

brief introduction Redis provides two persistence methods: RDB (Redis DataBase) and AOF (Append Only File). RDB, in short, is to generate snapshots of data stored in redis at different time points and store them on disks and other media;AOF implements persistence from a different perspective, that is, record all the write instructions execute ...

Posted by Toneboy on Mon, 11 Oct 2021 19:00:16 -0700

ZABBIX monitoring five ZABBIX monitoring case practice

1, Monitoring Linux TCP connection status 1.1 script for monitoring TCP connections The script needs to be placed on the corresponding ZABBIX agent server root@web1:~# vim /etc/zabbix/zabbix_agentd.conf.d/tcp_conn_plugin.sh #!/bin/bash tcp_conn_status(){ TCP_STAT=$1 ss -ant | awk 'NR>1 {++s[$1]} END {for(k in s) print k,s[ ...

Posted by Stathy on Mon, 11 Oct 2021 18:52:09 -0700

Redis advanced application

1, Master slave replication Quick start practice Based on Redis, a Master-Slave architecture is designed, including one Master and two slaves. The Master is responsible for reading and writing Redis and synchronizing data to the Slave. The Slave is only responsible for reading. The steps are as follows: First, duplicate redis01, for example: ...

Posted by rhunter007 on Mon, 11 Oct 2021 17:12:38 -0700

How to solve the Redis cache penetration problem in the blind date source code?

Redis is a cache solution that we use a lot in our daily work. Using cache can improve the performance of blind date source code and greatly reduce the pressure on the database. However, improper use will also cause many problems. Next, let's take a look at the cache penetration problem in blind date source code development. Cache penetration ...

Posted by khurramijaz on Mon, 11 Oct 2021 16:03:45 -0700

Introduction to Redis6 - learn about NoSQL, installation and data types

title: Redis6 Introduction (I) NoSQL database NoSQL database summary NoSQL(NoSQL = Not Only SQL), which means "not just SQL", generally refers to non relational databases. NoSQL does not rely on business logic storage, but is stored in a simple key value mode. Therefore, it greatly increases the expansion ability of the databa ...

Posted by someone2088 on Sun, 10 Oct 2021 18:27:47 -0700

There are five ways to use scheduled jobs in Python

There are five ways to use scheduled jobs in Python Most applications built today require some sort of scheduling mechanism. Polling API s or databases, constantly checking system health, archiving logs, etc. are common examples. Kubernetes and Apache Mesos And other software using auto scaling technology need to check the status of deployed ...

Posted by jackliu97 on Sat, 09 Oct 2021 18:52:44 -0700

[PROJECT] day10 summary of health project

Chapter 10 Redis high availability Learning objectives Understand Redis cache cluster scheme Be able to use spring to integrate Redis cluster environment The theme of this chapter is Redis. At present, Redis has been widely used in enterprises, and Redis is also the key content in the interview. 1. Redis cache related issues [Objective] ...

Posted by shoutdots on Fri, 08 Oct 2021 10:11:45 -0700