Do you know red and black trees? Tell you a different red and black tree and say something interesting!

Let's first look at the following two questions: Question 1. Can the key values of the red black tree be repeated? Question 2. Must the red black tree have a key value? There are many introductions about red and black trees on the Internet, and red and black trees are also widely used. Ask Du Niang. She will tell you all kinds of implementati ...

Posted by xylex on Fri, 17 Dec 2021 00:06:46 +0100

Ali artifact, a move to locate the online Bug

background The company has a channel system, which is specially connected with three-party channels. There is no business logic. It mainly works on message conversion and parameter verification, which plays a connecting role. Recently, after optimizing the response time of the interface and the code, the time still can not meet the requiremen ...

Posted by numan82 on Wed, 15 Dec 2021 16:06:17 +0100

LNMP platform construction steps

catalogue 1, Installing nginx 1. Install nginx dependent environment 2. Create an nginx account 3. Unzip the nginx installation package and parse and compile it 4. Add configuration file 5. Start nginx 2, Compile and install mysql 1. Install dependent environment and create server account 2. Unzip the compressed package and compile and ...

Posted by Tatara on Tue, 14 Dec 2021 12:30:30 +0100

Two ways to implement AOP in Java

Everyone who knows Spring knows the aspect oriented programming (AOP) of Spring. We won't talk about the aspect of Spring here. Later, we will have an opportunity to dissect the aspect programming of Spring. We want to explain how to implement AOP in ordinary Java code. There are two ways to implement AOP. One is the implementation of the nativ ...

Posted by adige72 on Fri, 26 Nov 2021 21:27:20 +0100

E-book analysis

Book constructor The Book object is divided into two scenarios: Parse the Book object directly from the e-Book fileGenerate Book object from data object class Book { constructor(file, data) { if (file) { this.createBookFromFile(file) } else { this.createBookFromData(data) } } createBookFromFile(file) { cons ...

Posted by georgee.b on Fri, 19 Nov 2021 11:50:50 +0100

1 - [high performance Nginx server] - 8 HTTP dynamic load balancing

1 what is dynamic load balancing In traditional load balancing, if the Upstream parameters change, the nginx.conf file needs to be reloaded every time, so the scalability is not very high. Therefore, we can adopt dynamic load balancing to realize the configurability and dynamics of Upstream without manually reloading nginx.conf. This is simil ...

Posted by BigMonkey on Wed, 17 Nov 2021 02:06:55 +0100

Nginx configuration and principle learning

Basic concepts of Nginx definition Nginx (engine x) is a high-performance HTTP and reverse proxy web server. It also provides IMAP/POP3/SMTP services. Nginx was developed by Igor sesoyev for Rambler.ru, the second most visited site in Russia. It is famous for its stability, rich feature set, simple configuration file and low consumption of sy ...

Posted by Majes on Wed, 10 Nov 2021 10:26:40 +0100

Nginx reverse proxy FTP (public IP proxy to intranet IP)

1, Nginx reverse proxy usually only does seven layers of load balancing, but now my cluster needs FTP as the file system to upload and download web files, so it needs to be a TCP "four layers proxy". If nginx wants to achieve four layers of load balancing, it needs to add a "- with stream" module. 2, Environment software ver ...

Posted by nick2price on Tue, 09 Nov 2021 05:18:16 +0100

Use Docker Compose, Nginx, SSH and Github Actions to realize the front-end automatic deployment test machine

At the beginning, let's take a look at the construction and deployment process in ancient times. Everyone must be familiar with this:The developer compiles, compresses and packages the source code to generate packaging filesUpload the packaged file to the serverObviously, this process is not only cumbersome, but also inefficient. Each release o ...

Posted by ammupon on Tue, 09 Nov 2021 03:40:26 +0100

Deploy two Tomcat on one linux host

@catalogue1. Basic principles2. Start configuration1. Prepare multiple Tomcat2. Set CATALINA_BASE and CATALINA_HOME variable3. Set three ports for each server4. Modify Catalina.sh script5. Operation inspection6. Test 1. Basic principles (https://blog.csdn.net/shmily_lsl/article/details/80718508) tomcat startup can be started through two scrip ...

Posted by disaster77 on Sat, 06 Nov 2021 16:57:04 +0100