Netty15 -- Analysis of netty startup process
there are many Netty cases under Netty's io.netty.example package, which can be used for source code analysis and learning. Now use the Echo case under the package to analyze the startup process of Netty. The entry code is as follows:
public final class EchoServer {
static final boolean SSL = System.getProperty("ssl") != null;
...
Posted by karikamiya on Mon, 06 Dec 2021 20:44:42 +0100
selector in nio
I. Introduction to Selector
Selector Commonly referred to as selectors , Of course, you can also translate it into Multiplexer . It is one of the core components of Java NIO. It is used to check whether the state of one or more NiO channels is readable and writable. In this way, multiple channels can be managed by a ...
Posted by sean72 on Mon, 29 Nov 2021 01:02:14 +0100
springboot integrates netty and sleuth with MDC to generate traceId
springboot integrates netty, uses slf4j's MDC to generate a traceId for link tracking, and sleuth works together [sleuth and MDC can choose not to use, so there is no need to write aop and annotations, and no need to introduce aop and sleuth].
1: The jar you need to depend on (choose according to your needs)
<!-- version management ...
Posted by twostars on Mon, 29 Nov 2021 00:35:51 +0100
NIO learning of Netty learning
Netty learning NIO learning
I. three major components
The core of Java NIO system is: channel and buffer. A channel represents an open connection to an IO device (e.g., file, socket). If you need to use NIO system, you need to obtain the channel used to connect IO devices and the buffer used to hold data. Then operate the buffer to proces ...
Posted by yozyk on Sat, 13 Nov 2021 03:53:58 +0100
NIO three components
1. Channel
1.1 what is Channel
Channel is similar to Stream. It is a two-way channel for reading and writing data.You can read data from the channel into the buffer or write data from the buffer into the channel. (channel only deals with buffer)The previous stream is either input or output, and channel is lower than stream.
1.2 common channel ...
Posted by jabbaonthedais on Tue, 09 Nov 2021 04:58:10 +0100
On the advantages and implementation of FastThreadLocal in Netty
catalogue
Why is FastThreadLocal faster than ThreadLocal
ThreadLocal
ThreadLocalMap
Linear detection method
FastThreadLocal
FastThreadLocalThread
InternalThreadLocalMap
FastThreadLocal.set method
FastThreadLocal.get method
Using FastThreadLocal based on FastThreadLocalThread is more efficient than using Thread Loc ...
Posted by wizhippo on Sat, 30 Oct 2021 13:00:48 +0200
How to realize 485 communication through Java
1. Selection of overall architecture
First of all, according to the requirements, I use the springboot+netty architecture, using a serial port to network port conversion module. Why use it like this? The Linux system is used during deployment. It is troublesome to install the driver under Linux, so the network port can save a lot of server con ...
Posted by fipp on Fri, 29 Oct 2021 04:34:47 +0200
netty series: making TLS support http2
brief introduction
We know that although the HTTPS protocol does not force the use of HTTPS, for most browsers, if they want to use HTTPS, they must use HTTPS. Therefore, we need to know how to support HTTPS in netty's TLS.
Extended protocols NPN and ALPN of TLS
Http2 protocol is developed from spdy protocol. Both spdy and http2 have dev ...
Posted by Butthead on Wed, 20 Oct 2021 02:15:39 +0200
Analysis of implementation process of epoll and selector in nio
1, NETTY bottom layer is implemented by NIO selector and epoll. Select, poll and epoll are IO multiplexing mechanisms. I/O multiplexing is a mechanism through which a process can monitor multiple descriptors. Once a descriptor is ready (generally read ready or write ready), it can notify the program to perform corresponding read-write opera ...
Posted by Xurion on Fri, 17 Sep 2021 12:39:42 +0200
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