Current limiting scheme for cloud native services
The purpose of current limiting is to protect the system when the system flow is too large to avoid system instability or even failure due to too large flow.
There are many current limiting schemes in the cloud native environment. The lightweight scheme can use the memory data combination scheme of Bucket4j + Hazelcast/ignite/infinispan. Senti ...
Added by the_NEWBIE_ON_THE_BLOCK on Thu, 24 Feb 2022 11:24:34 +0200
Spring Boot learning notes for beginners
Spring Boot is a new development framework under the spring family. Its design purpose is mainly to simplify the creation and development process of spring applications. It provides features such as automatic configuration and starter dependency, so as to free developers from a large number of XML configurations. Spring Boot is committed to bec ...
Added by wwfc_barmy_army on Thu, 24 Feb 2022 10:55:06 +0200
Java_ Self writing byte buffer stream, input stream and output stream for data transmission
Java_ Self writing byte buffer stream for data transmission
I. byte buffered output stream
java.io.BufferedOutputStream extends OutputStream
BufferedOutputStream: byte buffered output stream.
Common member methods inherited from parent class:
public void close(): close this output stream and release any system resources associated ...
Added by black.horizons on Thu, 24 Feb 2022 10:34:08 +0200
Interviewer: why can SpringBoot be started with Jar package?
Many beginners will be confused about how Spring Boot packages the application code and all dependencies into a separate Jar package, because after the traditional Java project is packaged into a Jar package, the dependencies need to be specified through the - classpath attribute before it can run. Let's analyze and explain the startup principl ...
Added by FramezArt on Thu, 24 Feb 2022 09:36:46 +0200
Spring security filter chain analysis
Filter chain analysis
In Spring security, all functions are implemented through filters, which form a complete filter chain.
4.1 initialization process analysis
4.1.1ObjectPostProcessor
/**
* Allows objects to be initialized. Typically, this is used to call the Aware method, initializingbean Afterpropertieset() and ensure disposab ...
Added by bbaker on Thu, 24 Feb 2022 08:29:24 +0200
spring ioc: circular dependency, L3 cache and FactoryBean
Last This article introduces the spring ioc container initialization process as a whole (starter - > refresh - > registerbeandefinition - > docreatebean - > populatebean)But it is limited to the routine process. How to deal with some special cases, such as "object loop application" spring - this is the question to be answe ...
Added by sherri on Thu, 24 Feb 2022 08:29:40 +0200
netty -- sticky package and half package problem
netty(3) – stick pack and half pack problem
What is TCP sticky packet and half packet?
Suppose the client sends two data packets D1 and D2 to the server respectively. Since the number of bytes read by the server at one time is uncertain, there may be the following four situations.
The server reads two independent data packets, D1 an ...
Added by t_miller_3 on Thu, 24 Feb 2022 07:12:25 +0200
Unit test framework -- Mockito
Problems encountered in unit testing in current development
After the business code development is completed, the new code needs to be unit tested. Due to the large number of third-party components and external system interfaces that the project depends on, the whole project needs to be started and various dependencies need to be loaded ev ...
Added by bijukon on Thu, 24 Feb 2022 05:00:48 +0200
Simple solution of HashMap source code
jdk1.7 -: it is composed of array + linked list. The array is the main body. The linked list mainly exists to solve hash conflicts (i.e. the array index values calculated through the key are the same) (the "zipper method" solves conflicts).
jdk1.8 +: it is composed of array + linked list + red black tree. There are great changes in r ...
Added by simpjd on Thu, 24 Feb 2022 04:51:51 +0200
Annotation development of MyBatis
Mybatis annotation development single table operation
1. Common notes of mybatis
In recent years, annotation development has become more and more popular. Mybatis can also use annotation development, which can be used to reduce the writing of Mapper
Mapping file.
@Insert: add
@Update: implement update
@Delete: delete
@Select: implement q ...
Added by hemantraijain on Thu, 24 Feb 2022 02:45:23 +0200