Exploration of Java principle: the principle and implementation of CLH and MCS lock of AQS technology system
background
SMP(Symmetric Multi-Processor)
Symmetric multiprocessor architecture is a widely used parallel technology compared with asymmetric multiprocessing technology.
In this architecture, a computer is composed of multiple CPUs and shares memory and other resources. All CPUs can access memory, I/O and external interrupts equally ...
Added by jauson on Sat, 11 Dec 2021 08:07:05 +0200
Goodbye, MybatisPlus, Ali launches new ORM framework
Using fluent mybatis, you don't have to write specific xml files. You can construct more complex business sql statements through java api to achieve the integration of code logic and sql logic. You no longer need to assemble queries or update operations in Dao, or reassemble parameters in xml and mapper. Compared with native Mybatis, Mybatis Pl ...
Added by recklessgeneral on Sat, 11 Dec 2021 07:53:55 +0200
[Jsp] Lesson 13 MVC + three tier architecture
concept
The core idea of MVC mode is to separate the input, processing and output processes of an application in the way of Model, View and Controller. Such an application is divided into three layers: Model layer, View layer and control layer
The MVC pattern defines the interaction between these three parts in detail:
The user interacts wit ...
Added by tourer on Sat, 11 Dec 2021 05:53:18 +0200
The most powerful and powerful Java logging framework
Logback is an old logging framework in JAVA. It has been iterating for more than ten years since its first version in 2006. However, the latest stable version of logback is still in 2017 and has not been updated for several years; The last stable version of logback's brother slf4j is also 2017, which means it's a little cool.
Moreover, the asy ...
Added by imartin on Fri, 10 Dec 2021 14:50:05 +0200
03 redis transaction processing and architecture application practice
1. Introduction to redis transaction
1.1 general
Transaction is a business and can also be regarded as a logical work unit. It is a control mechanism introduced to ensure the integrity of business and the correctness of data. In principle, transactions must meet the four characteristics of ACID (atomicity, consistency, isolation and persisten ...
Added by jamesflynn on Fri, 10 Dec 2021 04:07:00 +0200
cloud Alibaba e-commerce project series: architecture evolution, understanding domain driven design, and writing of project common modules
cloud Alibaba project
Architecture evolution
Monomer architecture
The database and cache are shared in one program, and the deployment is simpleThe disadvantages are obvious, and the code coupling seriously affects the whole body
Vertical Architecture
Advantages: service, independent deployment, easy horizontal expansionDisadvantages: co ...
Added by tony.j.jackson@o2.co.uk on Fri, 03 Dec 2021 00:25:22 +0200
Redis master-slave architecture
Steps for setting up redis master-slave architecture and configuring slave nodes:
1. Make a copy redis.conf file
2. Modify the relevant configuration to the following values:
port 6380
pidfile /var/run/redis_6380.pid # Write the pid process number to the pidfile configuration file
logfile "6380.log"
dir /usr/local/redis‐5.0.3/data/6380 # Spec ...
Added by dlester on Wed, 01 Dec 2021 11:37:17 +0200
How to analyze Java problems from the perspective of bytecode
preface
One day when i was wandering around Zhihu, i encountered such a problem: why is i the final result of face code 8?
public static void main(String[] args) {
int i = 1;
i += i += ++i + 2.6 + i;
}
Very simple two lines of code. If you encounter such a problem, how will you explain the problem clearly? Is the formula disassembled by J ...
Added by echoninja on Tue, 30 Nov 2021 07:41:38 +0200
Dubbo's Troubleshooting: distributed service components of Spring Cloud Alibaba series
1. Distributed theory
1.1 basic definition of distributed
Definition of distributed system principle and paradigm:
"A distributed system is a collection of several independent computers that are like a single related system to users."
distributed system is a software system based on network.
1.2 architecture development and evolu ...
Added by JonathanS on Tue, 30 Nov 2021 00:49:19 +0200
Architect Essentials: Smart use of Canal for asynchronous, decoupled architecture
This paper describes how to use Canal to implement an asynchronous and decoupled architecture. Subsequent articles will be rewritten to analyze Canal principles and source code.
Introduction to Canal
Canal is the middleware used to get database changes.
Fake yourself as a MySQL slave library, pull the master binlog and parse and process it. Pro ...
Added by psyqosis on Sat, 27 Nov 2021 05:06:03 +0200