Netty authoritative guide Http protocol development

3.1 Http protocol development 3.1.1 basic knowledge HTTP (Hypertext Transfer Protocol) protocol is an application layer protocol based on TCP transmission protocol. Its development is the result of the cooperation between the World Wide Web association and the Internet working group IETF. HTTP is an object-oriented protocol belonging to t ...

Added by dennismonsewicz on Tue, 08 Mar 2022 09:03:56 +0200

[Netty] Netty's thread model and simple usage

Netty's threading model Reactor model Netty's model is based on Reactor mode, so we must know Reactor first. The Reactor model is also called the Dispatch model. When one or more requests are sent to the server at the same time, the server synchronously assigns them to the processing threads of each request. Three roles of Reactor model Ac ...

Added by -Karl- on Tue, 08 Mar 2022 06:29:47 +0200

netty series: detailed explanation of channelPipeline

brief introduction When we introduced channel, we mentioned that almost all the implementations in channel are implemented through channelPipeline. As a pipeline, how does it work? Let's have a look. ChannelPipeline ChannelPipeline is an interface, which inherits three interfaces: channelinboundinvoker, channeloutbooundinvoker and Itera ...

Added by mananx on Mon, 28 Feb 2022 12:52:03 +0200

netty -- sticky package and half package problem

netty(3) – stick pack and half pack problem What is TCP sticky packet and half packet? Suppose the client sends two data packets D1 and D2 to the server respectively. Since the number of bytes read by the server at one time is uncertain, there may be the following four situations. The server reads two independent data packets, D1 an ...

Added by t_miller_3 on Thu, 24 Feb 2022 07:12:25 +0200

Netty starts from 0 --- section 3: chat demo based on netty

1. Requirements of chat program Through the previous study, we can see that the client and server can interact normally, so can we make a chat applet ourselves? Now we can define some requirements ourselves, such as: 1. After the server receives a message from the client establishment request, we need to push the message to other clients, whic ...

Added by nashsaint on Wed, 23 Feb 2022 05:11:35 +0200

RocketMQ network communication

brief introduction The remoting module of RocketMQ is the basis of communication among RocketMQ client, consumer, NameServer and Broker. It is implemented through the netty framework. The inheritance structure of the core class is as follows: The RemotingService interface defines the start(), shutdown(), registerRPCHook() methods. The re ...

Added by Technex on Sat, 19 Feb 2022 11:57:32 +0200

netty series: channel and channelGroup

brief introduction Channel is not only the channel of data transmission and data processing in netty, but also an indispensable part of netty program. In netty, channel is an interface, which has different implementations for different data types or protocols. Although channel is very important, it is really mysterious in the code. Basica ...

Added by mitzleah on Thu, 17 Feb 2022 23:43:14 +0200

What is Netty? Why use Netty? What are the components of Netty?

What is Netty 1. Netty is a client server framework based on NIO, which can be used to develop network applications quickly and easily. 2. It greatly simplifies and optimizes network programming such as TCP and UDP socket server, and has even better performance and security. 3. Support a variety of protocols, such as FTP, SMTP, HTTP and ...

Added by HektoR on Thu, 17 Feb 2022 18:07:57 +0200

LengthFieldBasedFrameDecoder custom protocol solves the problems of sticking and unpacking

1, Introduction 1.1 function of lengthfieldbasedframedecoder The LengthFieldBasedFrameDecoder can customize the length to solve the problem of TCP packet sticking. Therefore, it is also called "basedlength" 1.2 TCP packet sticking and packet sticking TCP sticky packet refers to that several data packets sent by the sender are glu ...

Added by v4g on Thu, 17 Feb 2022 14:56:04 +0200

Introduction to Netty in Silicon Valley

Reproduced in the original text: Introduction to Netty and detailed explanation of NIO_ dzyls' notes - CSDN blog catalogue Introduction to Netty netty concept Noun concept netty application scenario Basic description of I/O model Basic description of I/O model There are three network programming models I/O modes supported by Java: Java ...

Added by evilcoder on Sun, 13 Feb 2022 11:00:09 +0200