Using Netty to implement RPC

As an asynchronous event driven network application framework, Netty can be used to rapidly develop maintainable high-performance servers and clients. The bottom layer of Dubbo, a famous RPC framework in China, uses Netty as network communication. In this article, we will explore the nature of RPC fr ...

Posted on Tue, 30 Jun 2020 00:00:16 -0400 by adams0423

Source code analysis of Zhiyu dubbo

dubbo source code analysis file dubbo load profile dubbo service provision 1. Verify configuration information 2. Create URL 3. Local registration 4. Remote registration 4.1 enable netty server 4.2 connect to the registration center zk and write information 4.3 monitoring Registration Center dubbo ...

Posted on Thu, 25 Jun 2020 07:08:24 -0400 by jahwobbler

Custom Codec for Netty Source Analysis

Protocol resolution is essential in daily network development. Although length-based, delimiter-based codecs are built into Netty, in most scenarios we use custom protocols, so Netty provides MessageToByteEncoder<I> and ByteToMessageDecoder Two abstract classes that encode and decode private protocols by inheriting overrides of their enco ...

Posted on Mon, 22 Jun 2020 22:05:16 -0400 by jalapena

Analysis of eight rejection strategies for java thread pool ThreadPoolExecutor

See a very good article to share with you. preface When it comes to Java's thread pool, the most familiar one is the ExecutorService interface, which is newly added in jdk1.5 java.util.concurrent The api under the package greatly simplifies the development of multithreaded code. Whether you use FixedT ...

Posted on Fri, 19 Jun 2020 07:08:43 -0400 by tllewellyn

How RocketMQ.2-NameServer started

The previous article described the process of starting NameServer and broker with RocketMQ source code for single-machine deployment and sending and receiving messages. In fact, it is a simple quickstart. After the actual operation, the backend monarch has been able to carry out simple business messaging based on RocketMQ, completing small func ...

Posted on Fri, 12 Jun 2020 22:26:33 -0400 by maverickminds

A RPC framework based on Netty in 20 minutes

Netty is a high-performance network transmission framework, which is widely used as a basic communication component by RPC framework. For example, in Dubbo protocol, it is used for inter node communication, and in Hadoop, Avro component uses it for data file sharing. So let's try to use netty to impl ...

Posted on Fri, 12 Jun 2020 05:13:55 -0400 by florida_guy99

Idea builds springboot multi module project and manages dependency uniformly

1 Select File - > New - > project, select gradle java and click next 2. Enter the GroupId and artifactid of the project. GroupId is generally represented by domain name inversion, for example: com.ws Artifactid: project code, and then click Next 3 check as shown in the figure below. Use auto imp ...

Posted on Tue, 09 Jun 2020 01:17:11 -0400 by mckintosh18

RocketMQ source code analysis RPC communication

The essence of message queue lies in sending, storing and receiving messages. So, for a message queue, how to send and receive messages efficiently is the key point 1, Overview of Remoting communication module in RocketMQ The overall deployment architecture of RocketMQ message queue is as follows: ...

Posted on Sat, 06 Jun 2020 05:51:09 -0400 by fsumba

Break it! What's new in Spring Boot 2.3.0: how to stop gracefully?

1. What is elegant shutdown Let's start with a simple code, as follows: @RestController public class DemoController {  @GetMapping("/demo")  public String demo() throws InterruptedException {      //Simulate business time-consuming processing flow   Thread.sleep(20 * 1000L);   return "hello";  } } When we request the traffic to execute the busi ...

Posted on Fri, 29 May 2020 04:47:24 -0400 by jaylee

Spring Boot 2.3 gracefully closes the new pose, which is really fragrant!

The latest Spring Boot 2.3 is almost half a month old: https://spring.io/blog/2020/05/15/spring-boot-2-3-0-available-now One of the new features is: Graceful shutdown I've shared such articles before, but now I've even produced the official gesture. For the new function, I have to go to the official for a look. Here's the official description ...

Posted on Thu, 28 May 2020 23:47:37 -0400 by dr4296