Netty series: netty's support for SOCKS protocol
brief introductionSOCKS is an excellent network protocol, which is mainly used as an agent. Its two main versions are SOCKS4 and SOCKS5, in which SOCKS5 provides support for authentication. Generally speaking, we can use SSH tools to build a simple SOCKS protocol channel. How does netty support SOCKS? Let's have a look.SocksMessageThe first is ...
Posted by gojakie on Thu, 06 Jan 2022 03:08:56 +0100
Simple use and understanding of Netty
Netty study notes
1. Introduction and application scenario of netty
1.1 INTRODUCTION
Netty is an open source framework for jbossNetty is an asynchronous, event driven network application frameworkBased on nio
1.2 application scenarios
Rpc e.g. dubbogamebig data
Applications involving network communication can use netty
2. i/o model
2.1 ...
Posted by brynjar on Wed, 05 Jan 2022 12:11:46 +0100
Netty entry and advanced 4 ❤❤❤ Network programming
4. Netty entry and advanced 4 ❤❤❤ Network programming
4.1 non blocking vs blocking
block
In blocking mode, the related methods will cause the thread to pause
ServerSocketChannel.accept suspends the thread when no connection is establishedSocketChannel.read pauses the thread when there is no data to readThe performance of blocking is actua ...
Posted by rbarnett on Wed, 05 Jan 2022 10:40:55 +0100
netty series: building a SOCKS proxy server from zero to one
brief introductionIn the previous article, we mentioned that netty provides the encapsulation of SocksMessage object for SOCKS messages, distinguishes between SOCKS4 and SOCKS5, and provides various states of connection and response.With the encapsulation of socks messages, what else do we need to do to build a SOCKS server?Using SSH to build S ...
Posted by nrerup on Wed, 05 Jan 2022 02:34:05 +0100
III Introduction to Netty to super God series - three cores of Java NIO (selector, channel and buffer)
preface
In the previous chapter, we understood the three cores of Java NIO, and focused on the principle of Buffer and several usage scenarios, in which channel is also used. In this chapter, let's understand selector and combine channel to do c/s communication.
Understanding Selector and Channel
The Selector, also known as the multiplexer, ...
Posted by generic on Tue, 04 Jan 2022 05:27:22 +0100
Netty component Future&Promise
Future&Promise
Future in Netty has the same name as future in JDK, but these are two interfaces. Future in Netty inherits from the future interface in JDK, and Promise inherits from the future interface in Netty.The Future function of JDK is weak. You can only get results after * * synchronization and waiting * * task ends (or succeeds or ...
Posted by Hepp on Sat, 01 Jan 2022 02:09:03 +0100
Network data transmission process in flink
background
This paper follows the above StreamTask data flow , we explained how the data in the task in each executor is read, converted and written. In this article, we will explain the data transmission process between executors, including the shuffle implementation of flick and the details of reading and writing data of InputChannel and Res ...
Posted by waterox on Thu, 30 Dec 2021 22:32:03 +0100
netty series: come on, teach you how to make a simple proxy server
brief introduction
Einstein said: all greatness comes from simple details. netty provides us with such powerful eventloop and channel. Through the effective use of these simple things, we can get very powerful applications, such as the agent to be talked about today.
Proxy and reverse proxy
I believe that as long as programmers should ha ...
Posted by markmuir on Wed, 29 Dec 2021 01:21:53 +0100
How to deal with Netty out of heap memory leakage?
1, Background
During the development process, we encountered the problem of out of heap memory leakage - the service will fake death (it seems that the service process is still running, but there is no business response). Check the error log of logback and record the following information:
[location-center:192.168.5.14:8017] [,] 2021-07-2 ...
Posted by tmc01 on Fri, 24 Dec 2021 20:39:03 +0100
netty series: a website speed optimization scheme worth hundreds of millions
brief introductionIn fact, the most profitable thing in the software industry is not to write code. Those who write code can only be called Malone. Those who are more advanced are called programmers. They are all coolies. So is there a big career? There must be. Their name is consultant.Consultants are to help enterprises make plans, architectu ...
Posted by lanjoky on Thu, 16 Dec 2021 10:33:22 +0100