Netty learning route

Netty learning route I said I would write a blog about Netty for a long time. Now he's here, he's here!!! Chapter 1 Introduction to Netty 1.1 overview of netty 1.1.1 introduction to netty Explanation on the official website: Netty is an asynchronous event driven network application framework for rapid development of maintainable high-pe ...

Posted on Fri, 26 Nov 2021 05:02:24 -0500 by dhorn

netty network programming 2

Netty network programming 1. IO concept IO refers to input stream and output stream to support the external transmission and exchange of data by JAVA applications. The transfer in destination can be file, network, memory, etc. With the increasing demand for transmission efficiency, java has gradually evolved three generations of IO model ...

Posted on Fri, 26 Nov 2021 00:02:14 -0500 by whitsey

Netty: WebSocket application, code demo

WebSocket Why use the advanced version? The new technology must have solved the technical problem Defects of Http protocol: The communication can only be initiated by the client, which requires a kind of ability that the server can actively push to - websocket **websocket: * * this is a two-way communication capability, also known as ...

Posted on Sun, 21 Nov 2021 17:52:54 -0500 by manalnor

11, Netty realizes the long connection between server and client through WebSocket programming

1, What is Websocket? 1. Application scenario of websocket Technology Use java technology to quickly learn a simple online chat room system. The system has strong scalability. It can make online customer service system, web version of wechat, QQ instant messaging system, etc. according to business needs, use more popular technology and adopt ...

Posted on Tue, 09 Nov 2021 06:24:56 -0500 by alconebay

Network programming: epoll

preface As mentioned earlier, the disadvantage of the IO multiplexing API, select and poll is that the performance is not enough. The more client connections, the more obvious the performance degradation. The emergence of epoll solves this problem. Reference The Linux Programming Interface A statistical comparison is as follows: fd quantity ...

Posted on Fri, 05 Nov 2021 21:19:10 -0400 by leeharvey09

netty series: build a client to connect to the http2 server using http1.1

cataloguebrief introductionUse http1.1 to handle http2Handling TLS connectionsProcessing h2c messagessend messagesummary brief introduction For http2 protocol, its bottom layer is completely different from http1.1, but in order to be compatible with http1.1 protocol, http2 provides a way to upgrade from http1.1 to http2, which is called clearte ...

Posted on Thu, 04 Nov 2021 06:23:16 -0400 by Digitry Designs

netty series: build a client to connect to the http2 server using http1.1

brief introductionFor http2 protocol, its bottom layer is completely different from http1.1, but in order to be compatible with http1.1 protocol, http2 provides a way to upgrade from http1.1 to http2, which is called cleartext upgrade, or h2c for short.In netty, http2 data corresponds to various http2Frame objects, while http1 data corresponds ...

Posted on Wed, 03 Nov 2021 23:01:58 -0400 by 4554551n

Netty Principle 5: ChannelFuture and DefaultChannelPromise object parsing

1. Preface When learning Netty, you will certainly see these codes: //Start server listening ChannelFuture future = serverBootstrap.bind(7000).sync(); //close? future.channel().closeFuture().sync(); Question 1: the object returned by serverBootstrap.bind() is ChannelFuture. What is the effect of calling its syn ...

Posted on Thu, 07 Oct 2021 20:38:49 -0400 by pck76

Implementation of a simple server supporting http and webSocket protocol based on netty (including source code analysis of XXL job communication module)

background Last time I looked at XXL job, I found that his communication mechanism was to implement an http server based on Netty. Then I found that I didn't understand it very well, so I planned to implement a simple server supporting http protocol and webSocket protocol to help me understand it rely on <dependency> ...

Posted on Wed, 06 Oct 2021 21:04:43 -0400 by OopyBoo

Careful analysis of Netty source code (emphasis! Reprint the article!!!)

Emphasis: This article is a reprint of the article, and the link is: javadoop , this big guy's articles are of great value. Click the original text to see the experience more register operation of Channel After the foreshadowing in front, we already have a certain foundation. Let's start to rub together the contents we learned in front. In th ...

Posted on Sat, 02 Oct 2021 19:21:40 -0400 by benwestgarth