Netty-Pipeline Depth Analysis
First of all, we know that in NIO network programming model, IO operations are directly related to channel, such as client request connection, or sending data to the server, the server must obtain this data from the client channel.
So what is Channel Pipeline?
In fact, this channel Pepiline is a component added by netty to the native channel. A ...
Posted by vladj on Fri, 19 Jul 2019 20:41:59 -0700
Dubbo Extension Mechanism: Extension Loader
I. Preface
Dubbo's Extension Loader is an important component of "micro-kernel + plug-in" implementation, which is based on the java spi mechanism but provides the following extensions:
jdk spi only obtains all implementations by interface class name, while Extension Loader obtains an implementation by interface class name and key ...
Posted by Jove on Fri, 05 Jul 2019 13:18:54 -0700
Netty Protocol Development
Http
HTTP protocol is the abbreviation of Hyper Text Transfer Protocol (HTTP), which is used to transfer hypertext from WWW:World Wide Web server to local browser.
HTTP is a communication protocol based on TCP/IP to transfer data (HTML files, image files, query results, etc.).
HTTP is an object-oriented protocol belonging to the ...
Posted by phreek on Fri, 05 Jul 2019 11:36:22 -0700
Some basic concepts of netty
netty Literacy
> The purpose of this article is to have a general impression of netty, so that we can have a deep understanding of some basic concepts before netty.
brief introduction
NIO Communication Framework
The number of connections supported by a single point is related to machine memory (about 10W + 1G memory), not to the maximum num ...
Posted by DeathRipple on Sun, 30 Jun 2019 17:47:15 -0700
The Engine in netty--EventLoop and Its Implementation Source Code Analysis of NioEventLoop-like
EventLoop
In introducing the initialization and start-up process of Bootstrap, we touched NioEventLoopGroup several times. To understand this class, we also need to understand netty's thread model. NioEventLoopGroup can be understood as a set of threads, each of which can handle io events generated by multiple channel s independently.
Initializ ...
Posted by AbeFroman on Wed, 26 Jun 2019 11:27:06 -0700
Heisenberg Source Analysis 5: server Listening Port & Processing Logins
The code snippet is as follows:
// startup server
ServerConnectionFactory sf = new ServerConnectionFactory();
sf.setCharset(system.getCharset());
sf.setIdleTimeout(system.getIdleTimeout());
server = new NIOAcceptor(NAME + "Server", system.getServerPort(), sf);
server.setProcessors(processors);
server.start();
See how to do this, t ...
Posted by chen2424 on Wed, 19 Jun 2019 10:15:25 -0700
IOS Airplay -- Implementation of Airtunes Music Play on Android Box and Mobile Phone (Part 2)
In the last article, we let iOS devices discover Android devices via AirTunes link. In this article, we will complete iOS devices connected to Android devices via AirTunes.
3. Implementing iOS devices connected to Android devices via AirTunes
1. Use netty to construct a server and set the basic configuration.
final ServerBootstrap airTunesBoo ...
Posted by smordue on Sun, 16 Jun 2019 15:20:23 -0700
Netty Notes - Summary of Technical Points
Catalog
· Linux Network IO Model
· File descriptor
· Blocking IO Model
· Non-blocking IO Model
· IO Multiplexing Model
· Signal Driven IO Model
· Asynchronous IO Model
· BIO programming
· Pseudo-asynchronous IO programming
· NIO programming
· Buffer and Channel
· Deep into Buffer
· Selector
· AIO programming
...
Posted by r00tk1LL on Sat, 01 Jun 2019 14:47:31 -0700
Netty4 (8): ByteBuf Details
What is ByteBuf?
The Java NIO provides the ByteBuffer class as a byte buffer, but the use of ByteBuffer is complex, especially requiring flip() to switch between read and write
So Netty redesigned a byte buffer ByteBuf with the following features:
Extensibility
Defines read and write indexes, so flip() switching is not required f ...
Posted by caminator on Fri, 17 May 2019 23:00:27 -0700
Architecture of Netty Asynchronous Read-Write Operation and Application of Observer Mode
1. Future in Netty
Future in Netty inherits ava.util.concurrent.Future, while Future in Java primarily runs or cancels tasks, and Netty adds more functionality.
public interface Future<V> extends java.util.concurrent.Future<V> {
boolean isSuccess(); //Returns true if and only if the i/o operation completes suc ...
Posted by crondeau on Fri, 10 May 2019 21:48:13 -0700