Source code analysis of XXL job core process

preface This article mainly analyzes the source code of several main operations of XXL job. 1. Create actuator - dispatch center background On the background admin page, add an actuator. be careful: Select "automatic registration" (automatic registration method is introduced here)AppName corresponds to xxl.xml configured in the pr ...

Posted by jotate on Sat, 12 Feb 2022 13:30:30 +0100

Algorithm design and analysis ordered table

Ordered table Function: supports all operations of hash table. Keys are organized in order (hash table is out of order)Time complexity: all operations are O(log N) levelImplementation method: (1) Red black tree (2)AVL (3)SBT (4) Skip list (1) , (2), (3) all attribute BST (balanced search binary tree) Search Binary Tree There are general ...

Posted by Arrow on Sat, 12 Feb 2022 13:28:22 +0100

JAVA exercise 114 - cat and mouse

The two players play the role of cat and mouse respectively, and play the game on an undirected graph. They take turns. The form of graph is: graph[a] is a list, which is composed of all nodes b satisfying that ab is an edge in the graph. The mouse starts from node 1 and starts first; The cat starts from node 2 and starts the second. There is ...

Posted by drunknbass on Sat, 12 Feb 2022 13:22:55 +0100

Spring Cloud Alibaba Seata distributed transaction solution

1, Distributed transaction problem A business operation needs to be called remotely across multiple data sources or across multiple systems, which will lead to distributed transaction problems. give an example: Business logic for users to purchase goods. The whole business logic is supported by three micro services: Warehousing service: ...

Posted by netbros on Sat, 12 Feb 2022 13:22:00 +0100

[SpringCloud component learning notes series] Config component

5. Use and explanation of SpringCloud Netflix Config 5.1 introduction In the distributed system, due to the large number of services, the configuration files are scattered in different micro service projects, which is inconvenient to manage. The Spring Cloud Config component is mainly used to centrally manage configuration files. It supports ...

Posted by acoole on Sat, 12 Feb 2022 13:00:02 +0100

Spring Cloud Alibaba Nacos service registration and configuration center

As the Spring Cloud Netflix project enters the maintenance mode (putting the module in the maintenance mode means that the Spring Cloud team will not add new functions to the module, but will only fix block level bug s and security problems), Alibaba team provides us with a new one-stop solution for microservice development See official in ...

Posted by rbama on Sat, 12 Feb 2022 12:59:32 +0100

Java - Comparison of Java objects

Comparison of java objects Objectives of this section Raising questionsComparison of elementsComparison of objects in JavaComparison method of PriorityQueue in collection frameworkSimulate the implementation of PriorityQueue 1. Questions raised Last class, we talked about priority queue. When inserting elements into priority queue, there is ...

Posted by anon_amos on Sat, 12 Feb 2022 12:57:36 +0100

[SpringCloud component learning notes series] OpenFeign component

3. Use and explanation of SpringCloud Netflix OpenFeign Feign can hide the Rest request and disguise it as a Controller similar to spring MVC. It doesn't need to splice URL s, parameters and other operations by itself. Feign can take over these and complete them automatically. 3.1 use of Feign 3.1.1. Dependency import In the pom file of con ...

Posted by pb4life55 on Sat, 12 Feb 2022 12:54:34 +0100

Interface isolation principle -- give an example to illustrate the interface isolation principle in Java design pattern

Before introducing the principle of interface isolation, let's take a look at the first example in the following example - counterexample 1, Examples 1. Counterexample (1) Class diagram description Because the class diagram is relatively clear, let's look at the class diagram first As you can see, DogPlays Java and CatPlays Java impl ...

Posted by areid on Sat, 12 Feb 2022 12:50:56 +0100

NestJS builds front-end routing service

backgroundGenerally, in order to better manage and maintain projects, projects are generally divided into business categories, such as commodities, orders, members, etc., resulting in many front-end projects (SPA, single page application) with different business responsibilities. Suppose there is a requirement that all front-end projects need t ...

Posted by stringfield on Sat, 12 Feb 2022 12:35:49 +0100