Spring Boot Data Cache
We know that the bottleneck of a program is the database. We also know that the speed of memory is much faster than that of hard disk. When we need to retrieve the same data repeatedly, we request database or remote service again and again, which leads to a large amount of time spent on database query or remote method invocation, resulting in d ...
Posted by $SuperString on Wed, 05 Jun 2019 15:41:48 -0700
JSON Development Notes (IV) - JSON Schema Actual Warfare (II)
1. JSON Schema Third Party Auxiliary Tool
JSON Schema already has a number of third-party assistive tools based on different languages. You can see the instructions on the official website for details: http://json-schema.org/implementations . Among these third-party tools, we focus on the third-party tools available in the Java language. Cur ...
Posted by ol4pr0 on Wed, 05 Jun 2019 14:46:01 -0700
[MyBatis Source Analysis] Load the Xml configuration file
Debug Entry
Find the XmlConfigBuilder Test in the mybatis source code and run shouldSuccessfully Load XMLConfigFile () in debug mode.
Initialization
First, create the XMLConfigBuilder object, in the construction method:
Reading files through InputStream to generate Document objects for XML, the operations related to XML are beyond the sc ...
Posted by Imad on Wed, 05 Jun 2019 12:06:24 -0700
Dynamic Sensing Server Up and Down
Dynamic Sensing of Distributed Server Up and Down-line Function by zookeeper
Dynamic Sensing of Distributed Server Up and Down-line Function by zookeeper
Business Description
Implementation of Server-side
Implementation of Client
test
Business Description
In a distributed system, the master node can have more than one, whi ...
Posted by billkom on Wed, 05 Jun 2019 10:30:20 -0700
Source code and asynchronous log of slf4j and log4j
In our projects, we usually use slf4j to log in this way:org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(Test.class);Start with this log Logger creation to see the source code:org.slf4j.LoggerFactory.getLogger(String name){
ILoggerFactory iLoggerFactory = getILoggerFactory(); //1 places
return iLoggerFactory.getLogger(name); ...
Posted by Evanthes on Fri, 31 May 2019 15:44:01 -0700
Nginx uses webbench for stress testing
Webbench is developed by Lionbridge. It mainly tests the number of requests per second and data transmission per second. It also supports static, dynamic and SSL. It is easy to deploy and can be tested both statically and dynamically. This paper introduces Nginx's stress testing using webbench.
Stress testing is a very important work in op ...
Posted by shae marks on Mon, 27 May 2019 16:34:46 -0700
log4j collation in production environment
log4j collation in production environment
There are many improvements in the log of the company's java underlying code. This article mainly records the difficulties encountered in the process of improvement and records them in order to avoid forgetting (here I use log4j.propertes, not log4j.xml).
How to configure log paths in non-web projec ...
Posted by TF@TheMoon on Mon, 27 May 2019 13:26:55 -0700
flume data transmission to kafka
A Brief Introduction to flume
When you read this article, you should have a general understanding of flume, but in order to take care of the beginners, you will still say flume. When you first use flume, you don't need to understand too much about it. Just understand the following figure, you can use flume to transfer log data into kafka. ...
Posted by jbruns on Mon, 27 May 2019 11:32:47 -0700
ActiveMQ Plug-in Development Example-Task Log
The project encountered a scenario where task logs need to be recorded on ActiveMQ. Actually AMQ itself has a Logging Plugin, but it is not always suitable for the actual scenario of the project. Think about it, just a while ago for other projects to do a MQTT protocol authentication plug-in, the technical basis has been, or write a customiz ...
Posted by abitshort on Sat, 25 May 2019 14:29:43 -0700
Mybatis Source Parsing-Interface Scanning
In mybatis-spring, there's a comment called MapperScan, and we'll start with him today. When we add this comment, it represents the introduction of Bean s of the MapperScanner Registrar class.
public class MapperScannerRegistrar implements ImportBeanDefinitionRegistrar, ResourceLoaderAware {}
He's an example of ImportBean Definition Registrar ...
Posted by FireDrake on Sat, 25 May 2019 13:57:21 -0700