How to optimize the performance of a scenario where the 95th percentile delay requires 5ms
The data system in the group cannot meet the performance requirements when undertaking a business requirement, so some optimizations are made for this scenario, and an article is written here for records.
The business scenario is as follows: the caller obtains hundreds of characteristics of a user at a time (characteristics can be understood a ...
Posted by jaoudestudios on Thu, 25 Nov 2021 22:33:41 -0800
Program O takes you to recall the classic: developing a brick playing game with native Python
Introduction
well! I just gave it to you not long ago ✍ Had a bouncing ball game!
Do you remember? I don't remember looking at the content of the previous issue. I upgraded this small tour with large transfer on the basis of the previous issue
Play, the interface is also very simple, classic color, original, hahaha.
Hello everyone, I'm ...
Posted by tomhoad on Thu, 25 Nov 2021 14:46:51 -0800
With so many groups of wechat and QQ, how should we manage the friend relationship?
This article is excerpted from "design patterns should be learned this way"1. Application scenario of intermediary modeIn real life, the existence of intermediaries is indispensable. Without intermediaries, we can't communicate with distant friends. Each colleague object will reference each other. If each object interacts with multipl ...
Posted by dardsemail on Thu, 25 Nov 2021 12:24:19 -0800
Detailed explanation of the past and present life of Spring Boot and its relationship with Spring Cloud
To understand the development background of Spring Boot, we have to start with the release of Spring Framework version 1.0 in 2004. However, we all use the spring framework from the beginning of learning Java, so we don't expand too much.With more and more enterprises and individuals using the Spring Framework for development, Spring has slowly ...
Posted by POGRAN on Wed, 24 Nov 2021 10:25:12 -0800
Spring MVC construction case
Article catalog
What is spring MVC
A long time ago, SSH was the most popular architecture mode( Spring Struts encapsulates servlet s hibernate );–> Baidu Encyclopedia SSH Framework
Then came SSM( Spring Struts Mybatis ) ; Note that it's not working here yet Spring MVC &nbs ...
Posted by cwiddowson on Wed, 24 Nov 2021 08:01:56 -0800
It turns out that this is the correct implementation of multithreading
Java Memory Model
Thread synchronization
Thread synchronization mechanism is a set of data access mechanism suitable for coordinating threads, which can ensure thread safety
The thread synchronization mechanism provided by the java platform includes lock, volatile keyword, final keyword, static keyword, and related API s such as obje ...
Posted by jzimmerlin on Wed, 24 Nov 2021 07:14:29 -0800
LockSupport explained in detail. It took 6 months to successfully join Alibaba
void park(): blocks the current thread. If the unpark method is called or the current thread is interrupted, it can be returned from the park() method void park(Object blocker): the function is the same as method 1. An Object object is added to the input parameter to record the blocking objects that cause thread blocking, so as to facilitate ...
Posted by quikone on Wed, 24 Nov 2021 04:23:54 -0800
Complete collection of Java interview questions (continuously updated, interview with Java Senior Development Engineer)
13. Look at the program and write the results
class Fu{
public int num = 10;
public Fu(){
System.out.println("fu");
}
}
class Zi extends Fu{
public int num = 20;
public Zi(){
System.out.println("zi");
}
public void show(){
int num = 30;
System.out.println(num);
System.out.println(this.num);
System.out.prin ...
Posted by JimF on Wed, 24 Nov 2021 02:13:13 -0800
Teach you to play real nixie tube
Our ultimate goal is to be lazy. Working together is to see you work hard, and I am lazy to enjoy. Therefore, in order to be lazy, frame programming is inevitable. In my blog in the future, I hope everyone is frame programming. Those who are irregular should be serious and diligent. We are too lazy to be worthy of you. joy:, remember that we ar ...
Posted by nickk on Tue, 23 Nov 2021 08:40:05 -0800
Talk about Java exceptions
In the process of developing applications, the ideal state is not to have errors. Even if errors occur, they should be detected during compilation. However, in reality, errors will occur from time to time when the program runs, which will not be expected. If ignored, it will lead to program crash.In C language, the program will indicate the err ...
Posted by egorig on Sun, 21 Nov 2021 22:13:23 -0800