Bin's Tech Cabin
Author

Bin's Tech Cabin

Original articles dissecting source code and sharing personal tech insights. A modest space for serious discussion, free from noise and bureaucracy.

38
Articles
0
Likes
13
Views
0
Comments
Recent Articles

Latest from Bin's Tech Cabin

38 recent articles
Bin's Tech Cabin
Bin's Tech Cabin
Apr 8, 2022 · Backend Development

Inside Netty's Write and Flush Mechanism: How Java Handles Network I/O

This article provides a detailed walkthrough of Netty's internal write and flush processes, explaining how ChannelHandlerContext propagates outbound events, how ChannelOutboundBuffer manages pending data with high/low watermarks, the role of write loops, OP_WRITE handling, and the combined writeAndFlush operation in Java's high‑performance network framework.

Flushnetwork-iowrite()
0 likes · 70 min read
Inside Netty's Write and Flush Mechanism: How Java Handles Network I/O
Bin's Tech Cabin
Bin's Tech Cabin
Feb 23, 2022 · Backend Development

How Netty’s Sub‑Reactor Efficiently Handles OP_READ Events and Dynamically Adjusts ByteBuffer Size

This article explains the complete flow of how Netty's Sub‑Reactor processes OP_READ events, from selector polling to channel pipelines, and details the adaptive mechanisms of AdaptiveRecvByteBufAllocator and PooledByteBufAllocator that dynamically resize DirectByteBuffers for optimal network data reception.

AdaptiveRecvByteBufAllocatorByteBufferNetty
0 likes · 36 min read
How Netty’s Sub‑Reactor Efficiently Handles OP_READ Events and Dynamically Adjusts ByteBuffer Size
Bin's Tech Cabin
Bin's Tech Cabin
Feb 11, 2022 · Backend Development

Why Netty’s Connection Handling Slows Down – Inside the OP_ACCEPT Bug and Fix

This article dissects Netty’s core connection‑acceptance mechanism, explains how the OP_ACCEPT event is processed, reveals a subtle bug that limits read loops to a single connection, and shows the fix introduced in version 4.1.69.final, offering developers a complete understanding of Netty’s reactor architecture.

Bug FixJava NIONetty
0 likes · 40 min read
Why Netty’s Connection Handling Slows Down – Inside the OP_ACCEPT Bug and Fix
Bin's Tech Cabin
Bin's Tech Cabin
Jan 13, 2022 · Backend Development

How Netty Builds Its Reactor Thread Pool: Deep Dive into NioEventLoopGroup

This article explains how Netty constructs its core reactor thread pool using NioEventLoopGroup, detailing the creation of boss and worker groups, the underlying selector optimization, task queue setup, and the round‑robin binding strategy that distributes channels across multiple event loops for high‑performance I/O handling.

IO multiplexingJava NIONetty
0 likes · 39 min read
How Netty Builds Its Reactor Thread Pool: Deep Dive into NioEventLoopGroup