The north of server programming for beginners -- using Docker to configure your server environment

Install Docker First, install Docker. The bottom layer of Docker uses the container technology of Linux. Therefore, in order to use Docker, we need a miniaturized host with a compatible version of Linux kernel and binaries installed. I use CentOS 7 operating system here. Step1. Update Docker Package ...

Posted on Wed, 22 Jan 2020 00:54:20 -0800 by ondemand

RedisTemplate configuration for Redis (serialization and deserialization)

1. Preface For redis operations, springboot is well encapsulated, spring data redis.A highly encapsulated ReedisTemplate class is provided for a series of redis operations, with connection pools automatically managed, and transaction encapsulation operations handled by containers. Several strategies a ...

Posted on Mon, 20 Jan 2020 18:41:19 -0800 by esfisher

go microservice framework kratos learning note seven (kratos ward load balancing balancer)

go microservice framework kratos learning note seven (kratos ward load balancing balancer) Article directory go microservice framework kratos learning note seven (kratos ward load balancing balancer) demo demo server demo client pool dao service p2c roundrobin grpc official load balancing workfl ...

Posted on Sun, 19 Jan 2020 05:03:57 -0800 by penguinboy

Redis learning note 10: redis as message queue

Redis can not only be used as a cache server, but also as a message queue. Its list type is inherently supported as a message queue. As shown in the figure below: Because Redis's list is implemented by using a two-way linked list, which saves the head and tail nodes, it is very fast to insert elements on both sides of the list. So you can d ...

Posted on Wed, 15 Jan 2020 01:59:04 -0800 by Clerma

Redis source code analysis and annotation: redis database and related command implementation (db)

Redis database and related command implementation Database management command The commands for database management are shown in the following table: redis keys command details The realization of database 2.1 structure of database typedef struct redisDb { // Key value pair dictionary, save all key ...

Posted on Tue, 14 Jan 2020 00:02:46 -0800 by vinod79

Redis source code analysis and annotation: set type key implementation (t_set)

Redis set type key implementation Set command introduction All the set commands in redis are as follows: redis set command details Implementation of collection type As mentioned in the source code analysis and annotation of redis object system, there are two types of object codes for a collection ty ...

Posted on Mon, 13 Jan 2020 19:25:53 -0800 by anindya23

Shiro integration Redis of SpringBoot 2.x development case

Preface A few days ago, I did a small project of drawing beds. Shiro was used as the security framework. In order to make users access 7x24 hours, it is decided to upgrade the project from stand-alone to cluster deployment architecture. However, the security framework Shiro only has session Dao of stand-alone storage. Although Shrio has a mult ...

Posted on Mon, 13 Jan 2020 06:06:06 -0800 by holstead

SpringBoot 2.0 Actual | Chapter 21: Integrating Redis

Relevant knowledge Introduction to Redis Redis is an open source, in-memory, high-performance data storage system that can be used as a database, cache, and messaging middleware. Redis supports many types of data structures, such as string, hashes, lists, sets, sortedSets, and so on. Redis has built ...

Posted on Fri, 10 Jan 2020 17:16:18 -0800 by mountaindave

zabbix monitoring single machine multi instance redis script

zabbix monitoring single machine multi instance redis script The company saves cost, makes full use of resources and deploys the online situation of single machine and multi instance.As a new python User, I decided to write a very low script and then implement the monitoring function. The following script realizes the automatic discovery, and ...

Posted on Wed, 08 Jan 2020 06:39:00 -0800 by carrotcake1029

Ubuntu 16.04 install redis

Install redis apt-get installl redis-server Install PHP redis apt-get installl php-redis Check redis process ps -aux|grep redis Accessing redis basic operations from the command line root@ubuntu16:~# redis-cli # View all key lists 127.0.0.1:6319>keys * (empty list or set) # Add a record key1 127.0.0.1:6379> set key1 "hello w ...

Posted on Mon, 06 Jan 2020 06:48:33 -0800 by xyn