Tagged articles
Reactor Pattern
49 articles · Page 1 of 1
This article analyzes why Netty and ZooKeeper form the foundation of RPC frameworks, covering IO model evolution, communication and coordination layers, core components, common pitfalls, and a 10-part series roadmap to build a mini RPC system.
Java NetworkingNIONetty
0 likes · 39 min read

This article analyzes Netty's custom Future system, contrasting CompleteFuture (pre-completed results) with JDK's CompletableFuture (composable async tasks), and explains six architectural reasons Netty retains its own Future—including EventLoop thread binding, deadlock detection, lightweight completed futures, Channel binding, and ecosystem compatibility—with a deep dive into DefaultPromise's CAS-based implementation.
Asynchronous ProgrammingCompletableFutureCompleteFuture
0 likes · 27 min read

The article explains why Netty outperforms raw JDK NIO for network programming by detailing NIO's pain points, Netty's elegant Reactor design, zero‑copy and memory‑pool optimizations, built‑in codecs and pipeline, bug fixes, and its extensive ecosystem, all framed as interview knowledge.
ChannelPipelineJava NIONetty
0 likes · 14 min read

This article explains how Netty leverages Linux epoll, a reactor thread model, zero‑copy techniques, custom memory pools, and careful OS/JVM tuning to enable a single server to handle up to a million simultaneous connections efficiently.
EpollNettyReactor Pattern
0 likes · 8 min read

This article walks through serial file reading, thread‑based parallelism, event‑driven asynchronous I/O, callbacks, and finally shows how coroutines combined with an event loop provide a synchronous‑style solution that scales efficiently without the drawbacks of massive threading.
Asynchronous ProgrammingReactor Patterncoroutine
0 likes · 13 min read

This article explains the three‑stage execution flow of a Redis command—connection establishment, command processing, and result return—detailing how the single‑threaded reactor pattern drives event handling, how commands are parsed and dispatched, and how the output is sent back, with code snippets and a comparison to Netty’s multithreaded reactor.
Command ExecutionDatabase InternalsI/O multiplexing
0 likes · 50 min read

This article explains why using raw Java NIO for network communication is problematic, highlights Netty's advantages such as simplified APIs, high performance, and extensive adoption, and provides a complete server‑client demo with detailed code and design insights.
JavaJava NIONetty
0 likes · 14 min read

This article explains Netty's powerful asynchronous architecture, compares classic multithread, Reactor, select, poll, and epoll I/O multiplexing models, demonstrates JNI integration for native performance, and provides complete example code for building a high‑performance epoll‑based server in Java.
BackendEpollIO Multiplexing
0 likes · 32 min read

Netty is a high‑performance network framework whose three‑layer architecture—Core, Protocol Support, and Transport Service—combined with a Reactor‑based logical design, diverse I/O models, advanced memory management, zero‑copy techniques, and optimized data structures, enables efficient custom protocol handling and scalable server development.
I/O ModelsNettyReactor Pattern
0 likes · 27 min read

This article explains Netty’s reactor‑based asynchronous architecture, compares classic multithread, select, poll and epoll I/O multiplexing models, demonstrates Java‑C interaction via JNI, and provides a complete hand‑written epoll server implementation with detailed code and performance insights.
C++EpollIO Multiplexing
0 likes · 36 min read

This article explains the fundamentals of socket programming, detailing server and client setup steps, the TCP three‑way handshake, criteria for readable and writable sockets, and advanced techniques such as multi‑process models, I/O multiplexing, the Reactor pattern, and Epoll’s role in efficient event‑driven networking.
EpollI/O multiplexingReactor Pattern
0 likes · 9 min read

This article deeply dissects Kafka Broker's network architecture and request‑processing pipeline, covering sequential, multithreaded, and event‑driven designs, the Reactor pattern, Acceptor and Processor threads, core request flow, and practical tuning parameters for high‑throughput, low‑latency deployments.
KafkaReactor Patternbackend development
0 likes · 22 min read


政采云技术Sep 12, 2023 · Backend Development
This article explains the Netty EventLoop implementation, covering its reactor‑based event loop design, event handling and task processing mechanisms, code examples, common pitfalls such as the JDK epoll bug, and practical recommendations for building high‑performance backend services.
ConcurrencyEventLoopJava
0 likes · 15 min read

This article explains what Netty is, why it’s essential for Java back‑end development, details its core components and high‑performance mechanisms such as the Reactor model, Zero‑Copy and object pooling, and shows how Netty handles TCP framing issues with practical decoding solutions.
JavaNettyReactor Pattern
0 likes · 9 min read

This article deeply analyzes Kafka broker’s network architecture and request‑handling pipeline, walking through simple sequential models, multithreaded async designs, the Reactor pattern with Java NIO, key thread roles, core processing flow, and practical tuning parameters for high‑throughput, low‑latency deployments.
Java NIOKafkaReactor Pattern
0 likes · 21 min read

The article explains Java NIO’s non‑blocking channels, buffers, and selectors, then shows how the open‑source Tars RPC framework builds a multi‑reactor, multi‑thread network model on top of NIO—detailing server socket setup, event dispatch, session management, and read/write processing.
Java NIOReactor PatternTars
0 likes · 18 min read

This article thoroughly examines Kafka's broker‑side network architecture, tracing its evolution from a simple sequential model to a high‑performance, event‑driven Reactor design using Java NIO, and provides practical tuning guidance for achieving optimal throughput and latency.
Broker ArchitectureJava NIOKafka
0 likes · 18 min read

This article explains Netty’s multithreaded Reactor architecture, introduces the underlying concepts such as Channel, ChannelPipeline, and EventLoop, shows how threads are allocated to ChannelHandlers, and demonstrates how to customize thread pools for customer‑service and agent‑side logic in an IM system.
EventLoopJavaMultithreading
0 likes · 21 min read

This article thoroughly analyzes Kafka broker's high‑throughput network architecture, tracing its evolution from simple sequential handling to a multi‑selector Reactor model, detailing Acceptor and Processor thread implementations, request‑handling pipelines, and practical tuning parameters for optimal performance.
Reactor Patternjava-nionetwork architecture
0 likes · 20 min read

This article thoroughly examines Kafka Broker's network architecture and request‑handling pipeline, exploring sequential, multi‑threaded, and Reactor‑based designs, detailing Acceptor and Processor threads, NIO mechanisms, and offering practical tuning tips to achieve high concurrency and performance.
KafkaReactor Patternnetwork architecture
0 likes · 21 min read

This article explains why simple serial file reads are slow, compares multithreaded and event‑loop based approaches, introduces the Reactor pattern and callbacks, and finally shows how coroutines provide a synchronous‑style solution for efficient, non‑blocking I/O processing.
CoroutinesReactor Patternasynchronous I/O
0 likes · 12 min read

This article explains how Redis initializes, creates a TCP listener, registers file events, runs a single‑threaded reactor loop, accepts client connections, processes commands via a command table, and sends replies, illustrating the core backend architecture of the in‑memory database.
IO MultiplexingReactor Patternevent-loop
0 likes · 8 min read

This article walks through the limitations of traditional Java IO, explains how NIO and its selector mechanism solve thread‑resource and efficiency problems, and demonstrates why Netty’s higher‑level abstraction makes network programming far simpler and more performant, complete with runnable code examples.
Java NIONettyReactor Pattern
0 likes · 17 min read

Explore the comprehensive step-by-step process of Netty server startup, covering channel creation, initialization, reactor registration, and binding, while demystifying the asynchronous flow and internal mechanisms that power high-performance network applications.
JavaNettyReactor Pattern
0 likes · 42 min read

This article provides a comprehensive analysis of Kafka Broker's network and request‑handling architecture, tracing its evolution from a simple sequential model through multithreaded and event‑driven designs to a Reactor‑based NIO implementation, and offers concrete tuning recommendations for high‑concurrency deployments.
Reactor Patternhigh-concurrencyjava-nio
0 likes · 22 min read

This article provides a comprehensive overview of Java NIO network programming, explaining BIO, NIO, and AIO models, the core components Channel, Buffer, and Selector, and how Netty leverages the Reactor pattern with multi‑threaded boss and worker groups for high‑performance asynchronous I/O.
JavaNIONetty
0 likes · 15 min read

This article explains Redis's high‑performance I/O architecture by tracing the evolution from blocking, non‑blocking, and multiplexed network models to various Reactor‑based thread designs, illustrating each model with Java pseudo‑code and diagrams to clarify why Redis adopts a single‑threaded Reactor with optional multi‑threaded I/O extensions.
JavaReactor Patternio-model
0 likes · 19 min read

The article thoroughly examines Redis’s high‑performance architecture, detailing the evolution from blocking to non‑blocking I/O, the Reactor pattern’s single‑ and multi‑reactor models, Redis’s I/O multiplexing thread design, and how its hybrid single‑thread core with auxiliary I/O threads mitigates bottlenecks under heavy traffic.
I/O multiplexingReactor Patternhigh-performance
0 likes · 16 min read

This article walks through Redis's startup sequence, explaining how the server creates a listening socket, registers events with the aeFileEvent system, runs a single‑threaded select‑based event loop, and processes client commands using the Reactor pattern, complete with code examples and diagrams.
Reactor Patternbackend developmentevent-loop
0 likes · 8 min read

This article explains server thread models—including traditional blocking I/O, the Reactor pattern with its single‑thread, multi‑thread, and master‑slave variants, and the asynchronous Proactor model—detailing their mechanisms, advantages, disadvantages, and typical use cases in backend development.
Reactor Patternasynchronous I/Onetwork programming
0 likes · 12 min read

This article explains how servers handle requests using process/thread models, covering traditional blocking I/O, the Reactor pattern with its single‑thread, multi‑thread, and master‑slave variants, and the Proactor model, while comparing their advantages, drawbacks, and typical use cases.
ConcurrencyProactorReactor Pattern
0 likes · 12 min read

This article explains Netty’s high‑performance asynchronous NIO architecture, introduces the Reactor pattern and its three thread‑model variants, and details Netty’s core components such as Selector, EventLoopGroup, ChannelPipeline, and ByteBuf, highlighting how they improve scalability and efficiency.
Java NIONettyReactor Pattern
0 likes · 11 min read

The article traces Redis’s shift from its original single‑threaded reactor model to the I/O‑threaded architecture introduced in version 6, explaining how atomic operations and round‑robin client distribution let separate threads handle network I/O and parsing while the main thread executes commands, yielding roughly a two‑fold throughput boost but retaining a single‑threaded command core and incurring brief CPU spikes from busy‑wait synchronization.
I/O multiplexingNetwork ModelReactor Pattern
0 likes · 34 min read


ITPUBJan 28, 2021 · Backend Development
This article explains the fundamentals of IO events and multiplexing, compares thread‑based and event‑driven architectures, details the Reactor pattern variants, and clarifies synchronous versus asynchronous IO, providing a practical guide for building high‑performance network frameworks in Linux environments.
IO MultiplexingLinuxReactor Pattern
0 likes · 13 min read

This article explains Netty’s core architecture and its master‑worker multi‑reactor thread model, detailing the roles of Acceptor, Main Reactor, and Sub Reactor, how connection handling, I/O, encoding/decoding, and business logic are coordinated across threads, and provides practical insights for interview preparation.
Java NIOReactor Patternbackend development
0 likes · 11 min read

This article explains the core concepts of high‑performance Linux network programming, covering IO events, IO multiplexing, thread and event‑driven architectures, the Reactor pattern and its variants, as well as synchronous versus asynchronous IO, providing clear examples and practical guidance for building efficient server frameworks.
IO MultiplexingReactor Patternbackend development
0 likes · 14 min read

This article explains the fundamentals of blocking and non‑blocking I/O, compares select, poll, and epoll mechanisms, introduces the Reactor model and its variants, and shows how to solve the C10K problem with processes, threads, thread pools, and event‑driven architectures, complete with code examples.
EpollI/O multiplexingReactor Pattern
0 likes · 28 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 explores the fundamentals of high‑performance I/O design in Java, comparing BIO and NIO throughput, analyzing thread‑based and event‑driven architectures, and detailing the Reactor pattern with code examples and performance considerations for scalable web services.
BIOIOJava
0 likes · 18 min read

This article explains how servers manage connections using different I/O and thread models—including traditional blocking I/O, the Reactor pattern with its single‑thread, multi‑thread, and master‑slave variants, and the Proactor model—highlighting their advantages, drawbacks, and typical use cases in backend development.
I/O ModelsReactor Patternnetwork programming
0 likes · 10 min read


58 TechJun 14, 2019 · Backend Development
This article explains the two main network I/O architectures—thread‑based designs such as one‑connection‑per‑thread, pre‑forked processes, and their pros and cons, as well as event‑driven designs like the Reactor pattern, thread pools, and multiple reactors—helping readers choose the appropriate model for different server workloads.
Reactor Patternevent-drivenio-model
0 likes · 11 min read

This article examines Redis's I/O multiplexing mechanism, explaining why it uses non‑blocking models, detailing the Reactor pattern, comparing select, epoll, and kqueue, and providing a thorough walkthrough of the underlying C code that implements event creation, addition, deletion, and polling across platforms.
EpollI/O multiplexingReactor Pattern
0 likes · 11 min read

This article explains Redis’s core architecture by detailing its event‑driven model, the initialization of the event loop, how file and time events are handled, and walks through a complete client command flow such as a SET operation, illustrated with key source‑code excerpts.
Command ProcessingDatabase ArchitectureIO Multiplexing
0 likes · 15 min read


JD TechJun 21, 2018 · Backend Development
This article explains the fundamentals of high‑concurrency systems, covering how network cards and routers handle massive traffic, the role of the operating system and epoll/select, various I/O models, reactor and multithreading patterns, and strategies to improve CPU and I/O utilization.
EpollIO MultiplexingMultithreading
0 likes · 19 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 explores server I/O models—including single‑thread blocking, multi‑thread blocking, single‑thread non‑blocking, and multi‑thread non‑blocking (Reactor) approaches—detailing their mechanisms, advantages, drawbacks, and how kernel‑level event detection improves performance, helping developers choose the right model for various scenarios.
Reactor Patternbackend developmentblocking I/O
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

This article explains how Redis, a high‑performance in‑memory database, uses a single‑process single‑thread architecture combined with the Reactor pattern and I/O multiplexing techniques such as select, poll, epoll, and kqueue to efficiently handle massive client connections.
BackendI/O multiplexingReactor Pattern
0 likes · 12 min read

This article explains how Redis, a single‑process single‑threaded in‑memory database, uses the Reactor pattern and various I/O multiplexing techniques such as select, poll, epoll, and kqueue to efficiently handle thousands of concurrent client connections.
I/O multiplexingReactor Patternbackend architecture
0 likes · 12 min read
