The growth path of Java back-end architect -- Java network programming Netty

Java network programming Netty Analysis of Netty core source code Source code analysis of Netty startup process The overall understanding of the Demo source startup class of Echo program Source code analysis of NioEventLoopGroup ServerBootstrap creation and build process Source code analysis of bin ...

Posted by fresch on Thu, 25 Jun 2020 13:58:26 +0200

Spring-Cloud-Gateway Source Parsing - NettyRoutingFilter for Filter (4.7)

1. Overview This article mainly shares the code implementation of NettyRoutingFilter. NettyRoutingFilter, Netty Routing Gateway Filter.It uses a Netty-based HttpClient to request back-end Http services based on http:// or https:// Prefix (Scheme) filtering. NettyWriteResponseFilter, a gateway filt ...

Posted by keveen on Tue, 23 Jun 2020 18:34:50 +0200

java Network Programming Practice-Native NIO Non-Blocking Communication Network Programming Practice

Preface Last mentioned to improve our RPC framework, this week take the time to explore the native NIO non-blocking network programming ideas that JDK provides to us.NIO libraries were introduced in JDK 1.4.NIO makes up for the deficiency of the original I/O by providing high-speed, block-oriented I/O in standard Java code. Main differences ...

Posted by nike121 on Mon, 22 Jun 2020 00:19:57 +0200

TCP - packet sticking / unpacking

TCP sticking / unpacking TCP is a "flow" protocol. The so-called flow is a string of data without boundary. You can think of the running water in the river. They are connected in one piece and there is no boundary between them. The bottom layer of TCP does not know the specific meaning of th ...

Posted by anjanesh on Sun, 14 Jun 2020 09:30:18 +0200

Spring boot learning: the configuration method of Filter and the implementation principle of spring boot source code

Registration of Servlet, Filter, Listener In the case of spring boot application, because it starts a Servlet engine by itself, and needs to create a ServletContext object associated with the application to bind to the Servlet engine, so that the Servlet engine can receive the request and distribut ...

Posted by TristanOfADown on Thu, 11 Jun 2020 04:25:00 +0200

Implementing counters in Java multithreads using the JDK built-in tool class

Preface In the actual development process, we often encounter businesses that require multi-threaded concurrency. Finally, we need to summarize the tasks completed by each thread, but the main thread usually ends earlier than the sub-threads. If you want to wait for each sub-thread to finish before running the main thread, you need to identify ...

Posted by freedomclan on Mon, 25 May 2020 18:56:38 +0200

Simple Java implementation of Netty for communication

Using Java to build a simple example of Netty communication Students who have seen the dubbo source code should know that the underlying communication using the dubbo protocol is to use netty for interaction. Recently, after reading the netty part of dubbo, they wrote a simple example of netty communication. Source address of this paper: implem ...

Posted by PlasmaDragon on Sat, 16 May 2020 13:09:58 +0200

Akka writes RPC communication framework to simulate a small case of Worker connecting to Master

Guiding ideology: 1. Using RPC communication framework (AKKA)2. Define 2 classes Master and Worker -------------------------------------------------------------------------------------------------------------------------------Start Master first, then all workers1. After the Worker is started, establish a connection with the Master in the PreSta ...

Posted by kettle_drum on Thu, 30 Apr 2020 17:12:55 +0200

Technology dry goods sharing | spring cloud gateway full link implementation analysis

1. background With the popularity of microservice architecture, services are divided according to different dimensions. A request often involves multiple services. And many services may be distributed in thousands of servers, across multiple different data centers. In order to locate and solve the fault quickly and analyze the application perf ...

Posted by MentalMonkey on Mon, 02 Mar 2020 10:40:46 +0100

Lightweight RPC Design and Implementation 2nd Edition

In the previous version, netty was used to implement a simple one-to-one RPC, which required manual service address setup and was more restrictive. In this article, using zookeeper as a service registry, local service information is registered in zookeeper at service startup. When a client initiates a remote service call, the address of the ser ...

Posted by wilzy1 on Wed, 19 Feb 2020 18:51:56 +0100