Netty Introduction:
Do the game know, Netty and Mina is the network layer communication popular two kinds of socket framework. Mina appeared earlier, belongs to Apache,netty current update is relatively stable, 5 is still in the Alpha version, the series Netty the first four is mainly about the current comparison of more than 3 series, will briefly talk about Netty4 and Mina.
Netty is the network communication framework, why use Netty? What are the benefits of using Netty? Java NIO-based programming can actually refer to the reactor model, multiplexing these, listening ports, threading, closing connections, and so on, these are thought to be very complex, and we use Netty, we can not consider the content of these underlying communications, directly processing our business logic.
The key to understanding Netty, in addition to the need to supplement NIO knowledge, there is one of its events.
Summarize Netty:channel with a brief sentence is the pipeline, is the channelevent of the generation, channelevent through Channelhandler processing, Channelpipeline is the collection of Channelhandler.
A previously interviewed game company asked about the Mina framework bug, and why Netty was chosen, and the difference between the two.
Netty 3.7.0 Final First article