akka-typed - cluster: group router, cluster-load-balancing
Let's start with the router actor for akka-typed.route is divided into pool router and group router.Let's first look at a demonstration of using pool-router:
val pool = Routers.pool(poolSize = 4)(
// make sure the workers are restarted if they fail
Behaviors.supervise(WorkerRoutee()).onFailure[Exception](SupervisorStrateg ...
Posted by scnjl on Thu, 11 Jun 2020 03:02:18 +0200
Changes of JDK8 in generic type derivation
This article comes from: PerfMa technology community
Perfma official website
summary
JDK8 upgrade, most of the problems may be encountered in the compile time, but sometimes it is more painful, there is no problem in the compile time, but there is a problem in the run time, such as today's topic, so when you upgrade, you still need to test mo ...
Posted by Random on Tue, 09 Jun 2020 09:26:58 +0200
Java multithreading: a new understanding of threads
preface
For Java multithreading, in fact, it has been some scattered learning. Multithreading is often asked in the interview. I really want to summarize this certification this time, and I really don't want to fall in this field. According to "Java high concurrent programming details" a boo ...
Posted by coolbeansdude51 on Thu, 04 Jun 2020 15:32:41 +0200
Using Kotlin reflection skillfully to name by value, debugging more quickly and save money
Pain spot
We often define constants, such as
1
2
3
4
5
6
7
public interface ItemType {
public static final int TYPE_TEXT = 0;
public static final int TYPE_IMG = 1;
public static final int TYPE_VIDEO = 2;
public static final int TYPE_AUDIO = 3;
public static final int TYPE_LINK = 4;
}
When we print to see ...
Posted by Sh0t on Mon, 01 Jun 2020 03:04:06 +0200
JDK14 performance management tool: introduction to jstack
brief introduction
In the previous article, we introduced the use of jstat tool in JDK14. In this article, we will further explore the use of jstack tool.
jstack tool is mainly used to print java stack information, mainly java class name, method name, bytecode index, row number and other information.
More highlights:
Blockchain from getting st ...
Posted by unidox on Sat, 30 May 2020 03:56:47 +0200
How does Java achieve an elegant stop?Get to the bottom of
Traveling in the Java world, if you can have a pair of eyes that are good at discovery, there are many things to watch carefully, plus patience and help, you will often taste different things carefully.
With this sharing, you can easily get the following points, which are absolutely rewarding.
a) How do you make Java programs look elegant?Thoug ...
Posted by brandtj on Wed, 20 May 2020 04:01:28 +0200
Elastic search 7.1 in depth learning
1. elatic engineer certification examination
If you have the strength, you can take the exam. It will be helpful for the appreciation and salary increase
2. es architecture
Ecosphere
install
jvm configuration
Install plug-ins
Use elasticsearch plugin in elasticsearch-7.1.0/bin to install the plug-in. es will download a ...
Posted by oskom on Mon, 04 May 2020 14:05:17 +0200
JEP interpretation and tasting Series 2 - JEP 142 cache line filling simplification
This article is based on OpenJDK 8 ~ 14
JEP 142 content
It is used to fill a cache row with one or some field s that need to be read and modified by multiple threads. At the same time, due to the way of filling cache rows before Java 8, which is cumbersome and not elegant enough, there may be different sizes of cache rows, so the @ contented ...
Posted by lightningstrike on Sat, 18 Apr 2020 10:02:43 +0200
Don't ask me how many objects new string created! I'll prove it to you!
Yunqi information:[ Click to see more industry information]Here you can find the first-hand cloud information of different industries. What are you waiting for? Come on!
I think all Java programmers have been bothered by this new String question, which is a high-frequency Java interview question, but unfortunately, there are different opinions ...
Posted by wulfgar on Fri, 17 Apr 2020 09:46:27 +0200
You must know the JDK dynamic agent and CGLIB dynamic agent
When we read the source code of some Java frameworks, we often see the use of dynamic proxy mechanism, which can unconsciously enhance the methods of existing code, so that the code has a better expansibility.
Through the static agent, JDK dynamic agent, CGLIB dynamic agent to analyze this paper.
Static proxy
Static proxy is that before the pr ...
Posted by Sydok on Mon, 06 Apr 2020 10:07:24 +0200