Skip to content

Stay curious. Build better.

Appearance

Choose how BestHub looks on this device.

Changes apply immediately.

Search articles

Open Discover with these filters

Suggested searches

Latest articles

17 min read

Netty 4.2 Deep Dive: Adaptive Memory, Composable Event Loops, and io_uring Graduation

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.

13 min read

Inside Netty 4.2's AdaptiveByteBufAllocator: Stripe-Based Allocation & Lock-Free Strategies

This article dissects Netty 4.2's AdaptivePoolingAllocator memory allocation flow, covering request size routing, MagazineGroup's stripe mechanism with dynamic expansion, and Magazine's tryAllocate implementation with locked and lock-free paths using NEXT_IN_LINE for concurrency safety.

6 min read

Netty 4.2 AdaptiveByteBufAllocator: MagazineGroup, Magazine & Chunk Internals

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.