Advanced features of redis billion level data filtering and bloon filter

1, Brief introduction of bloon filter Last time, we learned to use HyperLogLog to estimate big data. It is very valuable and can solve many statistical requirements with low accuracy. But if we want to know whether a certain value is already in the HyperLogLog structure, it can't help. It only provi ...

Posted by tywin on Fri, 13 Mar 2020 08:32:34 -0700

Thinking about the pconnect long link of PHP redis

Throw question Some time ago, a big guy said that PHP redis's pconnect can't realize long links. After the request ends, the connection is released. I have doubts in my mind. If so, why does PHP redis have connect and pconnect? Search document The connection will not be closed on end of request un ...

Posted by NightCoder on Thu, 12 Mar 2020 01:23:19 -0700

Talk about MQ and how to build a message center based on Spring Boot RocketMQ

Preface Before introducing a technology, it must be clear what problems the technology can solve for the project. Before I understood message queue, I thought that message queue was mainly used to send messages such as SMS and email (asynchronous decoupling), but I found my understanding was wrong on ...

Posted by Ron Woolley on Sun, 08 Mar 2020 23:12:04 -0700

Implementation of high concurrent seckill in real combat: modify inventory based on Token token bucket + MQ

1, Theoretical basis 1.1 front end optimization Use dynamic and static separation to store static resources in a third-party file server to achieve cdn acceleration, so as to reduce the bandwidth of second kill and rush to buy When the user clicks the seckill button, the button should be disable ...

Posted by tamir_malas on Sun, 08 Mar 2020 07:01:54 -0700

Docker private warehouse Harbor installation

previously on My system environment is: CentOS Linux release 7.7.1908 (Core) Before installing Harbor, you need to install Docker and Docker compose (the installation of these two items will not be described in detail) Harbor introduction Harbor is an open-source project, which is used to store and distribute Docker images. It extends Docker D ...

Posted by netman182 on Sun, 08 Mar 2020 06:28:58 -0700

LNMP enterprise case -- Introduction and deployment of OpenResty

1.OpenResty Openresty is a scalable Web platform based on NGINX. It was initiated by Chinese people Zhang Yichun and provides many high-quality third-party modules. OpenResty is a powerful web application server. Web developers can use Lua scripting language to mobilize various C and Lua modules suppo ...

Posted by daucoin on Sun, 08 Mar 2020 05:29:55 -0700

redis data type and its use

redis is the data structure of key value. Each data is a key value pair. The key type is string and cannot be repeated. There are five types of value: 1. String String type is the most basic data type in Redis, which is stored in binary form, so it can accept data of any format. The maximum length that ...

Posted by no3dfx on Sat, 07 Mar 2020 17:52:59 -0800

docker deploy redis cluster cluster

Environment preparation: CentOS7 Three virtual machines: because the redis cluster is highly available, six nodes are configured here. Two nodes are deployed for each. ip and port are respectively: 192.168.1.103:6379 192.168.1.103:6380 192.168.1.106:6379 192.168.1.106:6380 192.168.1.1076379 19 ...

Posted by ozzthegod on Tue, 03 Mar 2020 01:43:37 -0800

Creation of redis cluster, detailed description and validation of ERR syntax error for redis cluster card slot migration error

Preface Before redis 5.0.0, the script redis-trib.rb written by ruby was used to operate redis cluster. The disadvantage of this is that Ruby and gems environment need to be installed. There is no Ruby environment such as redis-trib.rb in the official docker image, which needs to be installed by itself. It is time-consuming, complex and not eas ...

Posted by windjohn on Sun, 01 Mar 2020 17:51:36 -0800

Redis Source Tidy Notes: intset and personal understanding

intset structure typedef struct intset { uint32_t encoding; // Types of all elements in the current structure uint32_t length; // Number of elements in contents, that is, the number of elements in the set of integers int8_t contents[]; // Elements stored in a collection of integers } ...

Posted by plezops on Sat, 29 Feb 2020 19:33:40 -0800