Tagged articles
46 articles
Page 1 of 1
Liangxu Linux
Liangxu Linux
Nov 4, 2025 · Fundamentals

Why a Single‑Threaded Event Loop Can Beat Multithreading: Exploring Coroutines and the Reactor Pattern

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.

Reactor Patternasynchronous programmingcoroutine
0 likes · 13 min read
Why a Single‑Threaded Event Loop Can Beat Multithreading: Exploring Coroutines and the Reactor Pattern
Tech Freedom Circle
Tech Freedom Circle
Jul 17, 2025 · Databases

What Happens Under the Hood When a Redis Command Executes? – A Deep Dive into Redis’s Reactor Model

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
What Happens Under the Hood When a Redis Command Executes? – A Deep Dive into Redis’s Reactor Model
Java Captain
Java Captain
Jul 6, 2025 · Backend Development

Why Choose Netty Over Java NIO? A Hands‑On Guide with Server‑Client Demo

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.

Java NIONettyReactor Pattern
0 likes · 14 min read
Why Choose Netty Over Java NIO? A Hands‑On Guide with Server‑Client Demo
DaTaobao Tech
DaTaobao Tech
Apr 8, 2024 · Backend Development

Netty Core Concepts and Architecture Overview

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 ModelsNettyNetwork programming
0 likes · 27 min read
Netty Core Concepts and Architecture Overview
Code Ape Tech Column
Code Ape Tech Column
Feb 17, 2024 · Backend Development

Understanding Netty’s Asynchronous Model, Epoll, and IO Multiplexing: Theory, JNI Integration, and a Hand‑Written Epoll Server

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.

IO MultiplexingJNINetty
0 likes · 36 min read
Understanding Netty’s Asynchronous Model, Epoll, and IO Multiplexing: Theory, JNI Integration, and a Hand‑Written Epoll Server
Open Source Tech Hub
Open Source Tech Hub
Nov 13, 2023 · Backend Development

Mastering Socket Programming: From Basics to Epoll and Reactor Patterns

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.

I/O MultiplexingReactor Patternepoll
0 likes · 9 min read
Mastering Socket Programming: From Basics to Epoll and Reactor Patterns
Sanyou's Java Diary
Sanyou's Java Diary
Oct 6, 2023 · Backend Development

Inside Kafka Broker: How Its Network Architecture Handles Millions of Requests

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
Inside Kafka Broker: How Its Network Architecture Handles Millions of Requests
政采云技术
政采云技术
Sep 12, 2023 · Backend Development

Understanding Netty EventLoop: Architecture, Mechanisms, and Best Practices

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.

EventLoopNettyReactor Pattern
0 likes · 15 min read
Understanding Netty EventLoop: Architecture, Mechanisms, and Best Practices
Senior Tony
Senior Tony
Aug 9, 2023 · Backend Development

Why Netty Powers Modern Java Back‑ends: A Deep Dive into Its Architecture

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.

NettyNetwork programmingReactor Pattern
0 likes · 9 min read
Why Netty Powers Modern Java Back‑ends: A Deep Dive into Its Architecture
Sanyou's Java Diary
Sanyou's Java Diary
Jul 17, 2023 · Backend Development

How Kafka’s Broker Handles Millions of Requests: Inside Its Network Architecture

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
How Kafka’s Broker Handles Millions of Requests: Inside Its Network Architecture
vivo Internet Technology
vivo Internet Technology
Mar 15, 2023 · Backend Development

Analysis of Java NIO and Tars Framework Network Programming

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 NIONetwork programmingNon-blocking IO
0 likes · 18 min read
Analysis of Java NIO and Tars Framework Network Programming
Yang Money Pot Technology Team
Yang Money Pot Technology Team
Jul 4, 2022 · Backend Development

Understanding Netty’s Multithreaded Reactor Model and Its Application in an Online Customer Service IM System

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.

EventLoopNettyReactor Pattern
0 likes · 21 min read
Understanding Netty’s Multithreaded Reactor Model and Its Application in an Online Customer Service IM System
Wukong Talks Architecture
Wukong Talks Architecture
Jun 25, 2022 · Big Data

Deep Dive into Kafka Broker Network Architecture and Request Processing Flow

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
Deep Dive into Kafka Broker Network Architecture and Request Processing Flow
Su San Talks Tech
Su San Talks Tech
Jun 25, 2022 · Backend Development

How Kafka Broker Handles High‑Throughput Requests: Deep Dive into Its Network Architecture

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
How Kafka Broker Handles High‑Throughput Requests: Deep Dive into Its Network Architecture
IT Services Circle
IT Services Circle
May 31, 2022 · Fundamentals

Understanding Coroutines, Event Loops, and Asynchronous I/O

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
Understanding Coroutines, Event Loops, and Asynchronous I/O
Programmer DD
Programmer DD
Mar 8, 2022 · Backend Development

Why Netty Beats JDK NIO: A Hands‑On Guide to High‑Performance Java Networking

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
Why Netty Beats JDK NIO: A Hands‑On Guide to High‑Performance Java Networking
JavaEdge
JavaEdge
Dec 20, 2021 · Big Data

How Kafka Broker Handles High‑Throughput Requests: Deep Dive into Its Network Architecture

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
How Kafka Broker Handles High‑Throughput Requests: Deep Dive into Its Network Architecture
IT Architects Alliance
IT Architects Alliance
Dec 9, 2021 · Backend Development

Java NIO Network Programming and Netty Architecture Overview

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.

NettyNetwork programmingReactor Pattern
0 likes · 15 min read
Java NIO Network Programming and Netty Architecture Overview
Sohu Tech Products
Sohu Tech Products
Dec 8, 2021 · Backend Development

Understanding Redis I/O and Thread Models: From Blocking to Multi‑Reactor Designs

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.

IO ModelNetwork programmingReactor Pattern
0 likes · 19 min read
Understanding Redis I/O and Thread Models: From Blocking to Multi‑Reactor Designs
vivo Internet Technology
vivo Internet Technology
Nov 24, 2021 · Databases

Redis I/O Model and Thread Model Deep Dive

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 MultiplexingNetwork programmingNon-blocking I/O
0 likes · 16 min read
Redis I/O Model and Thread Model Deep Dive
macrozheng
macrozheng
Jun 3, 2021 · Backend Development

How Redis Starts: Inside the Server’s Event Loop and Reactor Model

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.

Network programmingReactor PatternSingle Thread
0 likes · 8 min read
How Redis Starts: Inside the Server’s Event Loop and Reactor Model
Top Architect
Top Architect
Apr 19, 2021 · Backend Development

Thread Models and Reactor/Proactor Patterns in Server Architecture

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.

Network programmingReactor PatternThread Model
0 likes · 12 min read
Thread Models and Reactor/Proactor Patterns in Server Architecture
Programmer DD
Programmer DD
Apr 11, 2021 · Backend Development

Understanding Server Thread Models: Blocking I/O, Reactor, and Proactor

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.

ProactorReactor PatternThread Model
0 likes · 12 min read
Understanding Server Thread Models: Blocking I/O, Reactor, and Proactor
Programmer DD
Programmer DD
Mar 16, 2021 · Backend Development

Understanding Netty’s Thread Model: Reactor Patterns and Performance Optimizations

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
Understanding Netty’s Thread Model: Reactor Patterns and Performance Optimizations
Tencent Cloud Developer
Tencent Cloud Developer
Feb 22, 2021 · Databases

Deep Dive into Redis Multi-Threaded Network Model: From Single-Threaded Reactor to I/O Threading

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
Deep Dive into Redis Multi-Threaded Network Model: From Single-Threaded Reactor to I/O Threading
ITPUB
ITPUB
Jan 28, 2021 · Backend Development

Mastering High‑Performance Network Frameworks: IO Events, Multiplexing, and the Reactor Pattern

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 MultiplexingLinuxNetwork programming
0 likes · 13 min read
Mastering High‑Performance Network Frameworks: IO Events, Multiplexing, and the Reactor Pattern
Sohu Tech Products
Sohu Tech Products
Jan 28, 2021 · Backend Development

Understanding Netty’s Thread Model: Master‑Worker Multi‑Reactor Architecture

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 PatternThread Model
0 likes · 11 min read
Understanding Netty’s Thread Model: Master‑Worker Multi‑Reactor Architecture
Liangxu Linux
Liangxu Linux
Dec 19, 2020 · Backend Development

Unlocking High‑Performance Linux Network Frameworks: IO Events, Multiplexing & Reactor Patterns

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 MultiplexingNetwork programmingReactor Pattern
0 likes · 14 min read
Unlocking High‑Performance Linux Network Frameworks: IO Events, Multiplexing & Reactor Patterns
Liangxu Linux
Liangxu Linux
Oct 8, 2020 · Backend Development

Master Blocking vs Non‑Blocking I/O: From select to epoll and Reactor Patterns

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.

I/O MultiplexingNetwork programmingReactor Pattern
0 likes · 28 min read
Master Blocking vs Non‑Blocking I/O: From select to epoll and Reactor Patterns
Architects' Tech Alliance
Architects' Tech Alliance
Jul 16, 2019 · Backend Development

Understanding Thread Models in High‑Performance Network Programming

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 ModelsNetwork programmingReactor Pattern
0 likes · 10 min read
Understanding Thread Models in High‑Performance Network Programming
58 Tech
58 Tech
Jun 14, 2019 · Backend Development

Introduction to Two IO Model Architectures: Thread‑Based and Event‑Driven Designs

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.

Event-drivenIO ModelReactor Pattern
0 likes · 11 min read
Introduction to Two IO Model Architectures: Thread‑Based and Event‑Driven Designs
Architect's Tech Stack
Architect's Tech Stack
Apr 25, 2019 · Backend Development

Redis I/O Multiplexing: Design, Implementation, and Code Walkthrough

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.

I/O MultiplexingReactor Patternbackend-development
0 likes · 11 min read
Redis I/O Multiplexing: Design, Implementation, and Code Walkthrough
JD Tech
JD Tech
Jun 21, 2018 · Backend Development

Understanding High Concurrency: From Network Cards to Multithreading Models

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.

IO MultiplexingNetwork programmingReactor Pattern
0 likes · 19 min read
Understanding High Concurrency: From Network Cards to Multithreading Models
MaGe Linux Operations
MaGe Linux Operations
Jan 5, 2018 · Backend Development

Mastering Server I/O: From Single‑Thread Blocking to Multi‑Threaded Reactor Patterns

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.

Non-blocking I/OReactor PatternThread Model
0 likes · 16 min read
Mastering Server I/O: From Single‑Thread Blocking to Multi‑Threaded Reactor Patterns
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
Qunar Tech Salon
Qunar Tech Salon
Jan 14, 2016 · Databases

Understanding Redis’s Reactor Pattern and I/O Multiplexing

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.

BackendEvent-drivenI/O Multiplexing
0 likes · 12 min read
Understanding Redis’s Reactor Pattern and I/O Multiplexing
Architect
Architect
Jan 11, 2016 · Backend Development

Understanding Redis’s Reactor Pattern and I/O Multiplexing

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.

Backend ArchitectureI/O MultiplexingReactor Pattern
0 likes · 12 min read
Understanding Redis’s Reactor Pattern and I/O Multiplexing