Summary of JAVA concurrent synchronization and mutual exclusion
We all know that locking is an effective means to prevent the same resource from being preempted by multiple parties in the concurrent situation. Locking is actually synchronous mutual exclusion (or exclusive). That is to say, no matter how many concurrent requests there are at the same time, only one can handle them, and the rest can either w ...
Posted by Revlet on Sun, 19 Jan 2020 21:05:45 -0800
vue koa2 nuxt.js from scratch as front-end part of personal blog login registration function
0. Effect demonstration
It's annoying to plug in a video.You can go out and turn right to Youku. Click on me!).
1. Preparations
1.1 Front End Framework
The front end uses nuxt.js based on vue.js.Why use nuxt.js?
The first thing I did was a blog project, so SSR is important.Although it has nothing to do with the login registration described i ...
Posted by cpace1983 on Fri, 17 Jan 2020 10:56:30 -0800
Redis 5 - new cluster installation mode - redis cli - Cluster Create
outline
For the principle of cluster, please refer to Redis design and Implementation - working principle of cluster , I won't go into details here. I introduced how to use redis trib toolset to install cluster a long time ago How to build and use Redis cluster In the past two days, I read the official documents and found a new way of installa ...
Posted by Dillinger on Fri, 17 Jan 2020 03:15:30 -0800
Discussion and recommendation on redis's security free configuration in docker compose
In an interesting discussion, let's take a look at the docker compose configuration script:
version: '2'
services:
redis:
image: 'redis:5.0.3-stretch'
restart: always
command: redis-server --requirepass redis
environment:
# ALLOW_EMPTY_PASSWORD is recommended only for development.
- ALLOW_EMPTY_PASSWORD=yes
...
Posted by jassikundi on Thu, 16 Jan 2020 19:23:52 -0800
Logstash and filebeat configuration
The mutate plug-in can modify the data in the event, including rename, update, replace, convert, split, gsub, uppercase, lowercase, strip, remove field, join, merge and other functions.
1,rename
For a field that already exists, rename its field name.
filter {
mutate {
rename = ...
Posted by fiorefrank on Thu, 16 Jan 2020 03:45:15 -0800
Example of using redis in spring boot
1. Start by creating a spring boot project. See the following links for a way to create a spring boot project:
https://blog.csdn.net/liutong123987/article/details/79385513
2. Add the following configuration to the pom.xml file that you just created the project
<dependency>
<groupId>org.springframework.boot ...
Posted by splitinfo on Wed, 15 Jan 2020 08:07:13 -0800
Redis learning note 1: redis builds a simple back end of article voting website.
Restrictions:
If an article gets at least 200 support votes, it is considered to be an interesting article. If the website publishes 1000 articles every day, and 50 of them meet the requirements of interesting articles, what the website has to do is to put these 50 articles in the top 100 of the art ...
Posted by namasteaz on Wed, 15 Jan 2020 03:43:27 -0800
zabbix monitoring redis, tomcat, Nginx
This blog post needs to be based on the basic environment of zabbix. Please refer to Build zabbix
1, Configure zabbix to monitor redis
(1) Deploy zabbix agent
Please refer to the blog for details of agent deployment and software package download Configure email alarm and wechat alarm monitored by Zabbix There is no detailed explanation here!
[ ...
Posted by Boerboel649 on Tue, 14 Jan 2020 01:46:45 -0800
spring cloud gateway is configured with Zuul RateLimit current limiting
Reprinted from: https://www.jianshu.com/p/2fc92a929e8e
Narration
In order to prevent the API without token access from being called infinitely, some services need to be API restricted. It's like taking some interfaces for registration or sending verification codes. If they are called maliciously an ...
Posted by coalgames on Sat, 11 Jan 2020 00:54:04 -0800
The way of operation and maintenance | Redis master-slave replication (one master and many slaves) is built and read-write separation is realized
Redis master-slave replication (one master and many slaves) is built and read-write separation is realized
Preface:
Because of the high performance of redis, it is highly dependent on it in the application. Sometimes a redis server has insufficient performance and needs to be configured with a redis ...
Posted by PHPdev on Fri, 10 Jan 2020 20:19:39 -0800