Tagged articles
ByteBuf
11 articles · Page 1 of 1

java1234Oct 15, 2026 · Backend Development
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.
AdaptiveByteBufAllocatorByteBufEventLoop
0 likes · 17 min read

The article details the data structures behind Netty 4.2's AdaptiveByteBufAllocator, explaining how MagazineGroup, Magazine, and Chunk collaborate to manage memory pools, handle thread-local and shared allocation, and use size-classed chunks with free lists for efficient buffer pooling.
AdaptiveByteBufAllocatorByteBufChunk
0 likes · 6 min read

This article examines Netty 4.1.x’s ByteBuf reference‑counting mechanism, explains why reference counting was introduced, traces its original design, shows instruction‑level optimizations, reveals concurrency bugs in version 4.1.17, and details the clever even‑odd redesign that guarantees thread‑safe memory release while preserving high performance.
ByteBufConcurrencyJava
0 likes · 34 min read

This article explores Netty’s low‑level data container ByteBuf by examining Java NIO Buffer design, its core attributes, view mechanisms, heap and direct implementations, byte‑order handling, and how to read and write primitive types, providing a comprehensive foundation for high‑performance network programming.
BufferByteBufHeapByteBuffer
0 likes · 54 min read

This tutorial explains why Netty is preferred over raw NIO, introduces its core components and architecture, and walks through a complete Java example of a simple Netty chat server, including handling of connections, message broadcasting, pipeline configuration, and TCP sticky‑packet issues.
ByteBufChannelPipelineJava
0 likes · 25 min read

This article explains how using Netty for HTTP handling—covering codec setup, HEAD request support, ByteBuf reference management, connection pooling, and full asynchronous processing—delivers superior performance, lower GC pressure, and better scalability compared to traditional servlet containers.
ByteBufHTTPJava
0 likes · 15 min read

This article explains how Netty achieves high‑performance, scalable networking by addressing the C10K and C10M problems through efficient I/O models, multithreading, zero‑copy ByteBuf handling, memory allocation strategies, and resource management techniques, providing practical code examples and architectural diagrams.
ByteBufC10KC10M
0 likes · 25 min read

This article provides a comprehensive walkthrough of Netty’s core components—including ServerBootstrap, EventLoop, Channel, ChannelFuture, ChannelHandler, and ByteBuf—illustrated with a simple server example, code snippets, diagrams, and detailed explanations of threading, zero‑copy, and pipeline processing.
ByteBufEventLoopJava
0 likes · 30 min read

This article explains how Netty, an asynchronous event‑driven framework built on Java NIO, powers high‑throughput RPC systems by detailing its core components, data handling with ByteBuf, and practical client‑server examples, offering developers a clear roadmap for building efficient distributed services.
ByteBufJavaNIO
0 likes · 17 min read

This article demystifies Netty’s ByteBuf pooling mechanism, explaining how off‑heap memory is allocated and managed through PooledByteBufAllocator, detailing the internal structures such as PoolThreadCache, PoolArena, PoolChunk, and Subpage, and providing code examples to illustrate allocation and release processes.
ByteBufJavaNetty
0 likes · 10 min read

This article shares five practical pitfalls encountered while building a pure‑async Redis client with Netty, covering thread‑model changes, pooled ByteBuf allocation across threads, ByteBuf expansion, connection timeout handling, and flow‑control in asynchronous writes, and offers concrete code‑based solutions.
ByteBufasynchronousperformance
0 likes · 13 min read
