tags: The internet netty
Zero copy hard driver - kernel buffer - protocol engine only DMA copy avoids cpu copy
There was actually a cpu copy of kernel buffer - socket buffer, but the copied information can rarely be ignored;
Traditional blocking IO model
Each connection requires an independent thread to complete data input, business processing, and data return;
Disadvantages: When the concurrency is large, a large number of threads will be created, increasing the pressure on the server;

reactor mode
1. Based on the IO reuse model, multiple connections share a blocking object
2. Reuse thread resources based on the thread pool, one thread can handle the business of multiple connections
Core component reactor handler
According to the number of reactors and the number of processing threads, there are three implementations:
1. Single reactor single thread
2. Single reactor and multi-threaded high concurrency, there will be performance bottlenecks

3. Master-slave reactor multithreading The reactor main thread can correspond to multiple reactor sub-threads


The core concept in Netty isEvent loop (EventLoop), Which is actually Reactor in Reactor mode,Responsible for monitoring network events and calling event handlers for processing.In the 4.x version of ...
Introduction to Netty Netty is a high-performance, high-scalable asynchronous event-driven network application framework, which greatly simplifies network programming such as TCP and UDP clients and s...
Why use Netty Netty is an asynchronous event-driven web application framework for rapid development of maintainable high-performance and high-profile servers and clients. Netty has the advantages of h...
Event cycle group All I / O operations in Netty are asynchronous, and the asynchronous execution results are obtained by channelfuture. Asynchronously executes a thread pool EventLoopGroup, it ...
table of Contents Thread model 1, traditional IO service model 2, Reactor mode reactor Three modes: to sum up Netty model Excommissum Thread model 1, traditional IO service model Blocked IO mode Get i...
Hey everyone, I amJava small white 2021。 The programmer of the halfway is in the development of aircraft, and the opportunity to find a more interesting thing under the development of a surveying cour...
content 1. Single Reactor single thread 2. Single Reactor Multi -thread 3. Reactor Main Strike Model Single -threaded model (single Reactor single thread) Multi -threaded model (single Reactor multi -...
Single-threaded model: the boss thread is responsible for connection and data reading and writing Hybrid model: the boss thread is responsible for connection and data reading and writing, and the work...
This chapter of the Redis database server implementations are introduced, indicating achieve Redis database-related operations, including key-value pairs in the database to add, delete, view, update a...
1、b1041 2、b1042 3、b1043 4、b1044 5、b1045...