A comprehensive guide to the Netty framework, covering Java NIO basics, development guides, protocol parsing, and advanced features for Java developers.
This document is a technical book titled "Netty Guide (2nd Edition)" authored by Li Linfeng. It serves as a classic reference for the asynchronous non-blocking communication field, based on Netty 5.0.
The content is structured into three main parts: Basics, Introduction to Netty NIO Development, and Advanced Multi-Protocol Development. It covers topics ranging from Java IO evolution and NIO programming models (BIO, NIO, AIO) to specific Netty features like handling TCP sticky packets, using various decoders (MessagePack, Protobuf, JBoss Marshalling), and developing HTTP and WebSocket protocols. The book also includes a detailed source code analysis section for core Netty classes such as ByteBuf, Channel, and ChannelPipeline. This manual is written in Chinese.