Tagged articles
Selector
18 articles · Page 1 of 1
The new CSS :has() selector finally lets parents be selected based on child states, eliminating dozens of lines of JavaScript; this article demonstrates sixteen real‑world use cases, explains compatibility across major browsers, and offers performance tips for safe adoption.
:has()CSSCSS tricks
0 likes · 9 min read

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-WorkerJavaNIO
0 likes · 11 min read

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.
ByteBufferJavaNIO
0 likes · 23 min read


Java OneMay 19, 2025 · Backend Development
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 NIOSelectormessage parsing
0 likes · 19 min read

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.
EmptyPollingJavaNIO
0 likes · 8 min read

jQuery 3.6.4 arrives just two months after its predecessor, adding support for the new :has() selector, refining how native CSS.supports determines whether selectors are handled by querySelectorAll or jQuery's engine, and includes various other bug fixes and improvements.
SelectorjQueryweb development
0 likes · 3 min read

This article thoroughly explains Kafka's network layer by dissecting the complete send and receive workflow, covering message pre‑sending, selector polling, write and read operations, buffer management, and callback handling, all illustrated with core source code snippets.
Java NIOKafkaMessage Sending
0 likes · 18 min read

This article explains Java NIO’s non‑blocking I/O model, compares it with traditional BIO, details zero‑copy techniques, and walks through core components such as Channel, Buffer, and Selector with concrete code examples and diagrams, then shows how Redis leverages I/O multiplexing for high performance.
BufferJava NIOSelector
0 likes · 20 min read

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.
BufferNIOSelector
0 likes · 10 min read

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

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.
BufferJavaNIO
0 likes · 31 min read

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.
BufferIOJava
0 likes · 31 min read


JavaEdgeDec 25, 2020 · Backend Development
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

The article explains how Kafka's network layer uses the Reactor pattern with Java NIO, describes the single‑threaded selector model, its limitations, and how Kafka introduces multiple selectors, acceptor, processor, and handler thread pools to achieve high‑concurrency network I/O.
Java NIOReactor PatternSelector
0 likes · 6 min read

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.
BackendBufferI/O
0 likes · 8 min read

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.
Backend DevelopmentJavaKafka
0 likes · 7 min read

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.
BufferNIOSelector
0 likes · 16 min read

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.
Buffer ManagementI/O multiplexingJava Networking
0 likes · 19 min read
