Flink notes: Flink data saving redis (custom Redis Sink)

This paper mainly introduces the process that Flink reads Kafka data and sinks (Sink) data to Redis in real time. Through the following link: Flink official documents , we know that the fault tolerance mechanism for saving data to Redis is at least once. So we use idempotent operation and the principle ...

Posted by quak on Wed, 19 Feb 2020 20:38:23 -0800

Data type of redis

Article directory Data type of redis 1: String: 1.1 add a key: 1.2 get the content of a key: 1.3 view the type of a key 1.4 set the automatic key expiration time 1.5 delete a key 1.6 batch setting multiple key s: 1.7 additional data 1.8 numerical increment 1.9 numerical decrement 1.10 return strin ...

Posted by russthebarber on Sat, 15 Feb 2020 22:22:10 -0800

Using spring boot + mybatis + RabbitMQ + redis to simulate the second kill function of the mall

Using spring boot + mybatis + RabbitMQ + redis to simulate the second kill function of the mall First, we need to install RabbitMQ. Before installing RabbitMQ, we need to install Erlang, because RabbitMQ is based on Erlang. For specific steps, click the following link: After installation, RabbitMQ i ...

Posted by newjsguy on Tue, 11 Feb 2020 01:49:52 -0800

Spring security failed to properly catch UsernameNotFoundException exception

Preface In Web application development, security has always been a very important aspect. In the huge spring ecosystem, the authority verification framework is also very perfect. Among them, spring security is very easy to use. Today, I'd like to record a spring security related problem encountered in development. Problem description When using ...

Posted by V-Man on Mon, 10 Feb 2020 08:07:01 -0800

How to build Redis cluster?

Article directory Preface I. environment 1.1: Environment 1.2: purpose of the experiment 2: Experimental process 2.1: deployment of Redis from master-slave server 2.2: master-slave server configuration file modification 2.3: install rvm and RUBY control cluster software on the main server 2.4: th ...

Posted by minou on Fri, 07 Feb 2020 23:20:53 -0800

Understanding application.properties and application.yaml

In SpringBoot, there are two different formats for configuration files, one is properties and the other is yaml. Although properties files are common, yaml is more concise and uses more scenarios than properties, and many open source projects are configured using yaml (for example, Hexo).In addition ...

Posted by martins on Tue, 04 Feb 2020 20:29:20 -0800

Algorithm learning series - hash table, bloom filter, consistent hash, island problem, and concurrent query set

Article directory 1. Understand hash function and hash table 1.1 what is Hash 1.2 why there should be Hash 1.3 for example, chestnuts: 1. To use array storage, you need to create new arrays new int[]{2,5,9,13}, and then write a loop to traverse the search: 2. If the hash function is used for calcul ...

Posted by duk on Tue, 04 Feb 2020 00:09:04 -0800

Redis details - cluster

Redis details (7) - cluster Before version 3.0 of redis, high availability (HA) can be achieved through Redis Sentinel. After version 3.0, Redis Cluster was officially launched. Its main purpose is to achieve data sharding, but it can also achieve ha, which is currently recommended by the government. In the Redis Sentinel mode, each node needs ...

Posted by gardnc on Mon, 03 Feb 2020 06:59:45 -0800

Redis Cultivation - cardinality statistics: HyperLogLog

There is no end to learning. brief introduction HyperLogLog is an advanced data structure in Redis. It is mainly used for cardinal Statistics (de duplication Statistics) of massive data (2 ^ 64 data can be counted). It is characterized by high speed and small space (12KB). But there are errors in th ...

Posted by scavok on Sat, 01 Feb 2020 00:06:32 -0800

swoole battle in 2018 7-process details

Following the last chapter 2018 swoole 6-asynchronous redis This presentation swoole process management module Create child process New process.php <?php $process = new swoole_process(function(swoole_process $pro) { echo 'swoole Create process' . PHP_EOL; }, false); // If set to true, the terminal will not display standard o ...

Posted by sandsquid on Fri, 31 Jan 2020 12:04:36 -0800