Tagged articles
16 articles
Page 1 of 1
Lin is Dream
Lin is Dream
Aug 18, 2025 · Backend Development

Boost Java NIO Performance with a Multi‑Threaded Boss‑Worker Server Model

This article explains how to overcome the single‑threaded bottleneck of Java NIO by introducing a Boss‑Worker architecture, detailing the design of multiple Selectors, thread binding, client implementation, performance considerations, and provides complete open‑source code examples.

Boss-WorkerServerjava
0 likes · 11 min read
Boost Java NIO Performance with a Multi‑Threaded Boss‑Worker Server Model
Lin is Dream
Lin is Dream
Aug 15, 2025 · Backend Development

Why Java NIO Beats BIO: Mastering Non‑Blocking Network Programming

This article explains what network programming is, why it matters beyond HTTP, compares BIO and NIO models, dives into Java NIO's design with selectors, channels, and ByteBuffer methods, provides full server/client code examples, and shows how Netty simplifies high‑performance networking.

ByteBufferNetwork programmingNon-blocking IO
0 likes · 23 min read
Why Java NIO Beats BIO: Mastering Non‑Blocking Network Programming
Java One
Java One
May 19, 2025 · Backend Development

Mastering Non‑Blocking IO Pipelines in Java: Design Challenges and Solutions

This article examines the difficulties of building non‑blocking services with Java NIO, compares blocking and non‑blocking pipelines, and presents practical designs for handling partial reads, dynamic buffers, message framing, and efficient write management to scale servers to millions of connections.

Java NIONon-blocking IOmessage parsing
0 likes · 19 min read
Mastering Non‑Blocking IO Pipelines in Java: Design Challenges and Solutions
Cognitive Technology Team
Cognitive Technology Team
Apr 17, 2025 · Backend Development

Understanding and Solving NIO Empty Polling in Java with Netty

This article explains the root causes of Java NIO empty polling, its impact on CPU usage, and presents Netty's multi‑layer detection, threshold‑based auto‑rebuild, and selector reconstruction techniques, along with configuration tips and future optimization directions for high‑concurrency backend systems.

EmptyPollingNettyjava
0 likes · 8 min read
Understanding and Solving NIO Empty Polling in Java with Netty
New Oriental Technology
New Oriental Technology
Jul 5, 2021 · Backend Development

Introduction to Java NIO: Buffers, Channels, and Selectors

This article provides a comprehensive overview of Java NIO, explaining the differences between BIO and NIO, the concepts of synchronous/asynchronous and blocking/non‑blocking I/O, and detailing the usage and implementation of Buffers, Channels, and Selectors with code examples.

ChannelNon-blockingasynchronous-io
0 likes · 10 min read
Introduction to Java NIO: Buffers, Channels, and Selectors
ByteDance ADFE Team
ByteDance ADFE Team
May 12, 2021 · Frontend Development

Understanding Recoil: Solving State Management Challenges in React

This article explains the origins of Recoil, why existing tools like Redux, React's built‑in state, and Context fall short for complex shared and derived state scenarios, and how Recoil's atom‑selector architecture, including async selectors and application‑level state observation, addresses flexibility, performance, and robustness in modern React applications.

AtomReactRecoil
0 likes · 8 min read
Understanding Recoil: Solving State Management Challenges in React
Programmer DD
Programmer DD
Mar 15, 2021 · Fundamentals

Master Java NIO: From Basics to High‑Performance I/O with Real‑World Examples

This article provides a comprehensive guide to Java NIO, covering its core components—Channel, Buffer, and Selector—explaining the differences from traditional IO, demonstrating file, socket, and server implementations with detailed code samples, and illustrating advanced features such as memory‑mapped files, scatter/gather, and pipe communication.

ChannelFileChannelSocketChannel
0 likes · 31 min read
Master Java NIO: From Basics to High‑Performance I/O with Real‑World Examples
Code Ape Tech Column
Code Ape Tech Column
Mar 2, 2021 · Backend Development

A Quick Introduction to Java NIO with Practical Examples

This article explains Java NIO fundamentals—including Channels, Buffers, and Selectors—compares them with traditional IO, and provides multiple runnable code examples such as FileChannel, SocketChannel, Selector loops, memory‑mapped files, scatter/gather, transferTo/From, Pipe and DatagramChannel to illustrate non‑blocking and high‑performance I/O.

ChannelNetworkingbuffer
0 likes · 31 min read
A Quick Introduction to Java NIO with Practical Examples
JavaEdge
JavaEdge
Dec 25, 2020 · Backend Development

How Netty Accepts Connections: Inside NioEventLoop and Worker Threads

This article explains how Netty's boss and worker NioEventLoop threads collaborate to accept socket connections, register selectors, and transition to read operations, detailing the underlying selector polling, OP_ACCEPT handling, and the code paths that trigger channel activation.

BackendJava NIONetty
0 likes · 4 min read
How Netty Accepts Connections: Inside NioEventLoop and Worker Threads
Java Captain
Java Captain
Mar 6, 2018 · Backend Development

Java NIO Basics: Channels, Buffers, and Selectors

This article introduces Java NIO fundamentals, explaining the key concepts of Channel, Buffer, and Selector, comparing them with traditional I/O streams, and providing code examples for file reading, writing with FileChannel, and illustrating how selectors enable single‑threaded multiplexed I/O handling.

BackendChannelI/O
0 likes · 8 min read
Java NIO Basics: Channels, Buffers, and Selectors
360 Zhihui Cloud Developer
360 Zhihui Cloud Developer
Oct 26, 2017 · Backend Development

Understanding Kafka’s NIO Selector: How the Selector Class Manages Connections

This article delves into Kafka’s network layer implementation, explaining the Selector class’s role in registering socket channels, handling connection events, and orchestrating reads and writes via KafkaChannel and TransportLayer, while illustrating packet structures and providing code snippets for key functions like register, connect, poll, and send.

KafkaNetwork I/Obackend-development
0 likes · 7 min read
Understanding Kafka’s NIO Selector: How the Selector Class Manages Connections
Java Captain
Java Captain
Aug 22, 2017 · Backend Development

Understanding Java NIO: Channels, Buffers, Selectors and Example Code

This article explains Java NIO fundamentals—including synchronous vs asynchronous, blocking vs non‑blocking I/O—covers core components such as Channel, Buffer, and Selector, and provides complete example code for file operations and a single‑threaded server/client, comparing NIO with traditional I/O.

ChannelNon-blocking I/Obuffer
0 likes · 16 min read
Understanding Java NIO: Channels, Buffers, Selectors and Example Code
Meituan Technology Team
Meituan Technology Team
Nov 4, 2016 · Backend Development

Understanding NIO: From Blocking I/O to Non-Blocking I/O Models

The article explains how NIO replaces the thread‑intensive blocking I/O model with a non‑blocking, event‑driven architecture that lets a single thread handle many connections, covering BIO vs NIO differences, selector mechanics, Reactor/Proactor patterns, buffer strategies, practical use cases, and framework recommendations.

Event-Driven ArchitectureI/O MultiplexingJava networking
0 likes · 19 min read
Understanding NIO: From Blocking I/O to Non-Blocking I/O Models