On the development history of container in java -- collection interface
In jdk 1. * version, the main containers are vector (implementing List interface) and hashtable (implementing Map interface). With the evolution of jdk version, in order to deal with transactions in high concurrency environment, jdk later added some containers suitable for high concurrency; Now let's follow the footsteps of history to explo ...
Posted by aaron_mason on Thu, 28 Oct 2021 19:11:35 +0200
Viewing AOP source code from @ EnableAspectJAutoProxy
background
In fact, springboot is enabled by default. @The annotation "EnableAspectJAutoProxy" is an annotation for manually starting AOP. If you want to see what Spring has done behind the scenes, you have to start with the source code.
EnableAspectJAutoProxy
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documente ...
Posted by jvrothjr on Mon, 25 Oct 2021 10:53:31 +0200
k8s replicaset controller analysis - initialization and startup analysis
replicaset controller analysis
Introduction to replicaset controller
Replicaset controller is one of many controllers in Kube controller manager component. It is the controller of replicaset resource object. It monitors replicaset and pod resources. When these two resources change, it will trigger the replicaset controller to tune the corresp ...
Posted by Haraldur1234 on Sun, 24 Oct 2021 07:33:50 +0200
Spring string placeholder parser PropertyPlaceholderHelper
Spring property placeholder parser PropertyPlaceholderHelper source code reading
PropertyPlaceholderHelper is used to process the "${}" placeholder in the string, such as obtaining the property value defined in the corresponding property file through the @ Value("${}") annotation (but @ Value("#{}") cannot be proc ...
Posted by developer on Thu, 14 Oct 2021 08:49:19 +0200
ZFKC principle and source code analysis
principle
summary
NameNode active / standby switchover is mainly realized by three components: ZKFailoverController, HealthMonitor and ActiveStandbyElector. HealthMonitor is responsible for monitoring the health of NN, starting a thread to send rpc request, confirming the NN status according to the response, and notifying zkfc through cal ...
Posted by bob2006 on Fri, 08 Oct 2021 11:02:51 +0200
canal source code analysis series - sink module analysis
canal source code analysis series - sink module analysis
introduction
The parser module is used to subscribe to binlog events and post them to the store through sink. What the sink stage does is to filter binlog data according to certain rules. In addition, some data distribution will be done. Its core interface is CanalEventSink, and its cor ...
Posted by s0me0ne on Fri, 17 Sep 2021 19:35:46 +0200
Handwritten spring Chapter 3 - refactoring, using dependencies to improve instantiation bean operations
preface
In the previous article, we wrote a spring short version framework based on the single responsibility principle and template method pattern, but in the process of use, we found that if the bean to be loaded into the container has parameters, there will be problems when creating the bean. In this chapter, we need to adjust the frame ...
Posted by SP8600 on Sun, 05 Sep 2021 04:27:33 +0200