A tool for a long time in silence: supervisor
Note that since the supervisor cannot monitor the background program, all commands executed by the command need to be executed in the foreground, such as nginx: command = /usr/local/bin/nginx -g 'daemon off;'
Talk about the benefits of this tool:Manage your process, terminate the automatic restart service process abnormallyTurn off the machine ...
Posted by nwoottonn on Fri, 29 Nov 2019 10:20:32 -0800
Exchange brokerage transactions [1]
Preface
Recently, I have been researching the stock (currency) exchange matching engine. From a concept of matching that is not clear enough, I am gradually exploring some of my own understanding and concepts.So I'm going to write a matching engine, and I want to get the people together to make a good engine.
Matching rules
This is mainly t ...
Posted by Texan on Fri, 29 Nov 2019 00:09:30 -0800
Deep understanding of readwritelock ReentrantReadWriteLock
I collated Java advanced materials for free, including Java, Redis, MongoDB, MySQL, Zookeeper, Spring Cloud, Dubbo high concurrency distributed and other tutorials, a total of 30G, which needs to be collected by myself.Portal: https://mp.weixin.qq.com/s/JzddfH-7yNudmkjT0IRL8Q
1. Introduction to read-write lock
1. Introduction to read-write ...
Posted by the_last_tamurai on Tue, 26 Nov 2019 23:52:01 -0800
Write a short link service in golang
original text)
In our daily work and life, there are always various domain name links that need to be shared with colleagues, friends or family. However, there are always some problems due to the length of domain name is too long and there are various restrictions, or it is impossible to copy all of them. In order to solve this problem, we need ...
Posted by jeffery on Mon, 25 Nov 2019 21:06:47 -0800
Spring boot uses redis through redisTemplate without manual serialization
For some operations of redisTemplate, please refer to the following two articles http://blog.csdn.net/whatlookingfor/article/details/51863286 http://www.jianshu.com/p/7bf5dc61ca06
Import redis dependency
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spr ...
Posted by departedmind on Mon, 25 Nov 2019 12:58:04 -0800
Basic C with your handwritten redis adlist
Introduction - Navigation
Some friends may be full of endless thirst for knowledge about redis. Maybe redis belongs to the big play of work, communication (interview),
I have to... But now I just stay at the level of using redis, and I have little involvement in the level of detail. In order to integrate into the big faster
Let's write the s ...
Posted by Sanjib Sinha on Fri, 22 Nov 2019 05:49:26 -0800
Spring Cloud Security: Oauth2 used in conjunction with JWT
SpringBoot e-commerce project mall (20k+star) address: https://github.com/macrozheng/mall
abstract
Spring Cloud Security provides a series of solutions for building secure SpringBoot applications, and with Oauth2, more functions can be achieved, such as using JWT tokens to store information and refreshing tokens. This article will give a detai ...
Posted by adrianuk29 on Thu, 21 Nov 2019 18:23:31 -0800
PHP uses Redis's list command to implement message queuing
1. List command used
command
Effect
lPush
Insert one or more values into the list header
rpoplpush
Pops up the last value of the list, inserts it into the header of another list, and returns the value
lRem
Delete the given value in the list
lIndex
Get values in the list by index
2. Composition of the queue
Name
Duty
Producer
...
Posted by prestonwinfrey on Thu, 21 Nov 2019 11:55:38 -0800
PHP uses Redis's transaction command
1.Transaction command
command
Effect
Return value
watch
Monitor one or more key s
Always OK
multi
Declare the start of the transaction, and subsequent commands will be queued for exec execution in order
Always OK
exec
Execute the command after multi in sequence. If the value of the key monitored by the watch command before multi change ...
Posted by funguse on Thu, 21 Nov 2019 10:42:11 -0800
PHP uses the geo command of Redis
Notes: CentOS 6.9 source compilation and installation of redis and PHP redis extensionI like to climb mountains. When I study GEO, I also demonstrate the coordinates of mountains. My coordinates are:116.517159,39.922267I sorted out the coordinates of some mountains
$mountainCoordinates = array(
array('115.793844', '40.584459', 'Hai_tuo'),// ...
Posted by Dorin85 on Thu, 21 Nov 2019 08:35:35 -0800