Web pack compression package vue.js project lazy load quick load page

In the past, we used the command of webpack – color – progress to package the vue.js project directly. There was only one build.js file for the packaged project. It was just a common small website project, but it had 2.9MB. It was put on the Alibaba cloud server with a loan of 2 trillion. It took four or five minutes for the fir ...

Posted on Fri, 08 May 2020 10:40:02 -0400 by spags

Don't understand asynchronous requests and calls in spring boot? Just read this one

1, The use of asynchronous requests in Spring Boot 1. Asynchronous request and synchronous request characteristic: The thread and related resources allocated by the container to the request can be released first to reduce the burden of the system, and the request of the thread allocated by the container can be released. The response will be d ...

Posted on Fri, 08 May 2020 00:06:30 -0400 by kankohi

The experience of accessing native APNS in a job

scene The company's products mainly interact with the intelligent hardware on the APP side, involving the push of hardware alarm and status, which must be delivered to the user in real time. At the beginning, we chose the integrated Aurora push free version, and the effect can also be achieved, but on the 4th-1st, the aurora server crashed in t ...

Posted on Thu, 07 May 2020 23:00:42 -0400 by wwfc_barmy_army

Index type for MySQL

MySQL index is very important for the efficient operation of MySQL. Indexing can greatly improve the speed of MySQL retrieval. For example, if a reasonably designed and indexed MySQL is a Lamborgini, then a human tricycle is a MySQL that does not design and use an index. Using the catalog page (index) of a Chinese dictionary as an example, we ...

Posted on Thu, 07 May 2020 18:22:54 -0400 by dave007

ThreadLocal Core Source Resolution

1 Preface This class provides thread local variables.These variables are different from regular variables because each thread accessing a variable through its get or set method has its own, independently initialized copy of the variable.A ThreadLocal instance is usually a private static field in a class that expects the state to be associated w ...

Posted on Thu, 07 May 2020 14:13:51 -0400 by iwarlord

How can I get through SpringCloud and HSF calls?

background In 2019 we experienced a whole year of migrations, including a switchover of the RPC framework.The HSF RPC framework that we used before comes from Alibaba. After years of high concurrency of Double 11, there is no doubt that there are no problems with high performance. It also supports both TCP and HTTP. The only bad thing is that i ...

Posted on Wed, 06 May 2020 12:19:30 -0400 by rhosk

Play redis delay message queue

In the previous article, the redis based list implemented a simple message queue: Play redis simple message queue Source address Using demo Product manager often said that we should not only have X function, but also Y function, so that customers can be more satisfied. Similarly, it is not enough to have a simple message queue, and a del ...

Posted on Wed, 06 May 2020 01:05:18 -0400 by tomz0r

Analysis of minimum heap implementation algorithm in libevent

libevent, a very good c network library, has recently begun to analyze. Where to start? I choose to start from the simplest basic things, from simplicity to complexity. Today, we will generate the minimum heap of libevent, and realize how the author of libevent realizes the minimum heap. The minimum heap is used in libevent's time management to ...

Posted on Tue, 05 May 2020 21:54:59 -0400 by kee2ka4

Use of DelayQueue in java

Use of DelayQueue in java brief introduction DelayQueue is a type of BlockingQueue, so it is thread safe. The feature of DelayQueue is that the data inserted into the Queue can be sorted by a custom delay time.Only elements with a delay time less than 0 can be removed. DelayQueue Let's first look at the definition of DelayQueue: public class De ...

Posted on Tue, 05 May 2020 20:00:09 -0400 by vince251

Object arrays are sorted by the properties of an object

The most common way to sort an array is to sort by the first letter or number size of the elements in the array using the sort() method var arr = [2,5,13,7,4,9,1]; var arr1 = arr.sort(); console.log(arr); // [1, 13, 2, 4, 5, 7, 9] console.log(arr1); // [1, 13, 2, 4, 5, 7, 9] The sort() method changes the original ...

Posted on Tue, 05 May 2020 16:57:34 -0400 by tommy445