Netty 4.2 delivers a major architectural rewrite after 10 years: event loops decoupled from transports via IoHandlerFactory, io_uring graduates from incubator with kernel-level batching, the default memory allocator switches to adaptive magazine-style caching, and TLS hostname verification becomes strict by default — all requiring careful migration due to API breakages and classpath incompatibility.
This article explores Netty 4.2's major changes including the new adaptive memory allocator, composable MultiThreadIoEventLoopGroup with IoHandlerFactory, official io_uring transport support, ManualIoEventLoop for custom event-loop driving, QUIC/HTTP/3 graduation, and default client TLS hostname verification.
This article explains how Netty 4.2 leverages Linux io_uring's zero-copy send (IORING_OP_SEND_ZC) to avoid user-kernel data copies, detailing the two completion queue events (CQEs) — I/O completion and buffer release notification — and Netty's handling logic with code examples.