As a programmer, if you like to output technical articles, you must have had the idea of building a personal blog website. After comparing a lot of blog frameworks, I found that the blog website built with the theme of Hexo + Hexo theme matrix not only has a beautiful interface, but also has powerful functions. Today, I will take you to build a ...
Posted by rammac13 on Fri, 17 Sep 2021 22:56:56 -0700
Because currently developing WEB applications, Spring Boot is the fastest and most popular way to start Spring projects. No matter what kind of application we want to build, it can let us start and run as soon as possible. There is basically no need to configure anything in the early stage, and the built-in application server al ...
Posted by VMinder on Thu, 09 Sep 2021 23:03:23 -0700
Hello, I'm test Jun!
Recently, a small partner left a message to me in the background, saying that he wrote an Api interface for uploading large files with Django. Now he wants to test the stability of interface concurrency locally and ask me if I have a good scheme
This article takes file upload as an example to talk about the ...
Posted by Cheers on Thu, 09 Sep 2021 20:13:04 -0700
SecondThread sec = new SecondThread("zs"); SecondThread thr = new SecondThread("lsii"); //Set sec and thr threads as daemon threads sec.setDaemon(true); thr.setDaemon(true); //Start sec.start(); thr.start(); //When it is found that sec and thr are daemon threads, it will be interrupted
* **Interrupt thread**: `public void interrupt()`: This ...
Posted by jllydgnt on Thu, 09 Sep 2021 19:36:43 -0700
)2-1. Three treatment methods
)2-1-1. Single loop insertion
We take 10w pieces of data for some tests. If the insertion method is program traversal loop, insert one by one. It is detected that the speed of inserting a message on mysql is between 0.01s and 0.0 ...
Posted by tmswenson on Thu, 09 Sep 2021 14:47:19 -0700
Find expansion port
Take a closer look and see when the thread pool was created?
The entry is shown in the figure below. Each time a new HystrixCommand is created, the constructor of the parent class will be called:
As shown in the figure above, the initThreadPool will create a thread pool. It should be noted that the first argument here, ...
Posted by tcarnes on Wed, 08 Sep 2021 13:41:13 -0700
Suppose you are developing a logistics management application. The original version could only handle truck transportation, so most of the code was in a class called truck.
After a while, this app became extremely popular. You can receive more than ten requests from shipping companies every day, hoping that the application can su ...
Posted by Xyphon on Mon, 06 Sep 2021 19:16:29 -0700
Like the factory method mode, the abstract factory mode is also composed of four elements: abstract factory, concrete factory, abstract product and concrete product. However, the number of methods in the abstract factory is different, so is the number of abstract products.
The main roles of the abstract factory pattern are as follows:
1. Abst ...
Posted by tecdesign on Mon, 06 Sep 2021 17:44:24 -0700
The Adapter pattern converts the interface of a class into another interface that the customer wants. So that those classes that could not work together due to interface incompatibility can work together.
The adapter pattern has two different forms: class adapter and object adapter.
2, Structure of adapter mode
Define a specific ...
Posted by andre_c on Mon, 06 Sep 2021 13:10:21 -0700