Tagged articles
82 articles
Page 1 of 1
IT Services Circle
IT Services Circle
May 20, 2026 · Databases

Why Can Redis Sustain Over 100k QPS? A Deep Technical Dive

The article explains how Redis achieves more than 100,000 queries per second by leveraging in‑memory storage, highly optimized data structures, a single‑threaded core with epoll‑based I/O multiplexing, optional I/O multithreading, and performance tricks such as pipelining and careful key sizing.

Data StructuresI/O MultiplexingIn-Memory Database
0 likes · 9 min read
Why Can Redis Sustain Over 100k QPS? A Deep Technical Dive
Architect Chen
Architect Chen
Apr 23, 2026 · Databases

How Redis Handles 1 Million Concurrent Connections: 4 Key Techniques

Redis achieves million‑level concurrency by keeping all data in RAM, using epoll/kqueue for non‑blocking I/O, employing highly optimized data structures with O(1) or O(log N) operations, and evolving from a single‑threaded core to optional multi‑threaded I/O, boosting throughput up to 12×.

Data StructuresI/O MultiplexingIn-Memory
0 likes · 4 min read
How Redis Handles 1 Million Concurrent Connections: 4 Key Techniques
Mike Chen's Internet Architecture
Mike Chen's Internet Architecture
Dec 11, 2025 · Backend Development

Why Redis Delivers Microsecond Latency: Memory‑First, Single‑Threaded, and I/O Multiplexing

Redis achieves sub‑millisecond response times by storing all data in RAM, using a single‑threaded event loop with I/O multiplexing (epoll/select/poll), and employing highly optimized data structures such as skip lists and hash tables that provide O(1) or O(log N) operations.

Data StructuresI/O MultiplexingIn‑memory
0 likes · 4 min read
Why Redis Delivers Microsecond Latency: Memory‑First, Single‑Threaded, and I/O Multiplexing
Open Source Tech Hub
Open Source Tech Hub
Nov 4, 2025 · Fundamentals

Why epoll Beats select/poll: Inside Linux’s High‑Performance I/O Engine

This article explains how Linux’s epoll mechanism, built on libevent and using red‑black trees and ready‑list queues, provides scalable I/O multiplexing for sockets, eventfd and timerfd while traditional file systems like ext4 cannot be managed directly, and outlines the key efficiency tricks behind its design.

I/O MultiplexingLinuxSocket
0 likes · 8 min read
Why epoll Beats select/poll: Inside Linux’s High‑Performance I/O Engine
Mike Chen's Internet Architecture
Mike Chen's Internet Architecture
Sep 8, 2025 · Databases

Redis Million‑Level Concurrency: Memory, Data Structures & Replication

Redis achieves million‑level concurrency by storing all data in memory, leveraging ultra‑fast read/write speeds, employing optimized data structures such as strings, hashes, lists, sets and sorted sets, using I/O multiplexing to handle many connections in a single thread, and scaling through master‑slave replication for high availability.

Data StructuresI/O MultiplexingIn-Memory Database
0 likes · 4 min read
Redis Million‑Level Concurrency: Memory, Data Structures & Replication
Cognitive Technology Team
Cognitive Technology Team
Aug 25, 2025 · Backend Development

Why epoll Uses Red-Black Trees for High-Performance Linux Networking

epoll, Linux’s high-performance I/O multiplexing mechanism, outperforms select and poll by leveraging a red-black tree to manage file descriptors, offering O(log n) registration, O(1) event retrieval, and scalable handling of millions of connections, with detailed explanations of its architecture, workflow, and performance advantages.

I/O MultiplexingLinuxRed-Black Tree
0 likes · 10 min read
Why epoll Uses Red-Black Trees for High-Performance Linux Networking
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
Open Source Tech Hub
Open Source Tech Hub
Jul 16, 2025 · Backend Development

Why epoll Beats select and poll: A Deep Dive into Linux’s High‑Performance I/O Multiplexing

This article explains the limitations of traditional I/O models such as blocking I/O, non‑blocking I/O, select and poll, introduces epoll’s design, core data structures, operation modes, system‑call interface, and provides practical code examples and optimisation tips for high‑concurrency network servers.

Event-drivenI/O MultiplexingLinux
0 likes · 45 min read
Why epoll Beats select and poll: A Deep Dive into Linux’s High‑Performance I/O Multiplexing
Deepin Linux
Deepin Linux
Jul 14, 2025 · Backend Development

Unlocking Epoll: A Deep Dive into Linux’s High‑Performance I/O Mechanism

This article explores Linux’s epoll interface in depth, covering its core architecture, LT and ET trigger modes, underlying red‑black tree and linked‑list data structures, callback workflow, practical code examples, and best‑practice guidelines for high‑concurrency network applications.

ETI/O MultiplexingLT
0 likes · 33 min read
Unlocking Epoll: A Deep Dive into Linux’s High‑Performance I/O Mechanism
Deepin Linux
Deepin Linux
Jul 5, 2025 · Backend Development

Mastering High-Concurrency C++ Servers: Multithreaded Network Programming Explained

This comprehensive guide explores C++ multithreaded network programming for high‑concurrency servers, covering threads, processes, socket basics, TCP/UDP protocols, thread pools, synchronization primitives, lock‑free structures, I/O multiplexing techniques, and a practical high‑performance chat server implementation.

C++I/O MultiplexingNetwork programming
0 likes · 54 min read
Mastering High-Concurrency C++ Servers: Multithreaded Network Programming Explained
Mike Chen's Internet Architecture
Mike Chen's Internet Architecture
Jun 5, 2025 · Backend Development

Mastering the C10K Challenge: How Nginx Handles 10,000 Concurrent Connections

This article explains the C10K problem—how a single server can manage ten thousand simultaneous connections—and outlines four essential techniques (I/O multiplexing, asynchronous non‑blocking I/O, lightweight threading models, and network stack optimization) that enable Nginx and similar servers to achieve high concurrency efficiently.

Backend PerformanceC10KI/O Multiplexing
0 likes · 4 min read
Mastering the C10K Challenge: How Nginx Handles 10,000 Concurrent Connections
Deepin Linux
Deepin Linux
Apr 25, 2025 · Backend Development

Understanding epoll: Linux I/O Multiplexing, Design, and Practical Usage

This article explains the limitations of traditional I/O models, introduces epoll as a high‑performance Linux I/O multiplexing mechanism, details its design principles, API usage, kernel data structures, and provides practical coding examples and optimization tips for building scalable backend services.

Event-drivenI/O MultiplexingNetwork programming
0 likes · 41 min read
Understanding epoll: Linux I/O Multiplexing, Design, and Practical Usage
Programmer Xu Shu
Programmer Xu Shu
Apr 21, 2025 · Databases

Why Is Redis So Fast? Inside the Secrets of Its High‑Performance Design

In this interview-style article, the interviewer probes a candidate on why Redis is exceptionally fast, covering its in‑memory storage, single‑threaded design, I/O multiplexing, optimized data structures, memory management tricks, and practical performance‑tuning strategies.

Data StructuresI/O MultiplexingIn-Memory Database
0 likes · 7 min read
Why Is Redis So Fast? Inside the Secrets of Its High‑Performance Design
Tencent Technical Engineering
Tencent Technical Engineering
Apr 18, 2025 · Fundamentals

I/O Multiplexing in Linux: Detailed Explanation of select, poll, and epoll

Linux treats all I/O devices as files, enabling a single thread to monitor many descriptors via I/O multiplexing; while select and poll use linear scans and suffer size limits, epoll employs an event‑driven red‑black tree with edge‑triggered mode, offering scalable, high‑performance handling for thousands of concurrent connections.

I/O MultiplexingLinuxSystem Programming
0 likes · 30 min read
I/O Multiplexing in Linux: Detailed Explanation of select, poll, and epoll
Deepin Linux
Deepin Linux
Apr 18, 2025 · Backend Development

Deep Dive into Linux epoll: Design, Implementation, and Performance

epoll is a high‑performance Linux I/O multiplexing mechanism that replaces select/poll by using an event‑driven design with a red‑black tree and ready list, supporting edge‑ and level‑triggered modes, efficient data transfer via mmap, and providing superior scalability for high‑concurrency network applications.

Event-drivenI/O MultiplexingNetwork programming
0 likes · 85 min read
Deep Dive into Linux epoll: Design, Implementation, and Performance
Lobster Programming
Lobster Programming
Apr 3, 2025 · Databases

Why Is Redis So Fast? Deep Dive into Its Architecture and Data Structures

Redis achieves remarkable speed through in‑memory storage, I/O multiplexing, optimized data structures such as SDS strings, linked lists, ziplists, skip‑lists, and hash tables, a single‑threaded event loop, and intelligent data encoding, all of which eliminate disk I/O and reduce overhead.

I/O MultiplexingIn-Memory Databaseredis
0 likes · 8 min read
Why Is Redis So Fast? Deep Dive into Its Architecture and Data Structures
Deepin Linux
Deepin Linux
Feb 6, 2025 · Backend Development

A Comprehensive Guide to epoll in Linux: Principles, Design, and Practical Usage

This article explains how epoll improves Linux I/O multiplexing by using red‑black trees and ready lists, compares level‑triggered and edge‑triggered modes, details the epoll_create/epoll_ctl/epoll_wait system calls, discusses common pitfalls, and provides a complete TCP server example for handling many concurrent connections.

I/O MultiplexingLinuxedge-triggered
0 likes · 72 min read
A Comprehensive Guide to epoll in Linux: Principles, Design, and Practical Usage
Java Tech Enthusiast
Java Tech Enthusiast
Jan 24, 2025 · Databases

Why Redis Is Fast: Deep Dive into Performance Principles

Redis achieves remarkable speed by storing data entirely in memory, employing a single‑threaded event loop with I/O multiplexing, and using highly optimized in‑memory data structures while balancing durability through efficient persistence mechanisms, all of which combine to minimize latency and maximize throughput.

Data StructuresI/O MultiplexingIn-Memory
0 likes · 6 min read
Why Redis Is Fast: Deep Dive into Performance Principles
Liangxu Linux
Liangxu Linux
Dec 29, 2024 · Backend Development

Master epoll: Boost Linux Server Performance with Event‑Driven I/O

This article explains how epoll works as Linux's high‑performance I/O multiplexer, compares it with select and poll, details its three‑step workflow, data structures, code examples, and the trade‑offs between level‑triggered and edge‑triggered modes for building scalable network servers.

ETEvent-drivenI/O Multiplexing
0 likes · 22 min read
Master epoll: Boost Linux Server Performance with Event‑Driven I/O
Deepin Linux
Deepin Linux
Dec 29, 2024 · Backend Development

Understanding epoll: High‑Performance I/O Multiplexing in Linux

This article explains the principles, advantages, and implementation details of Linux's epoll I/O multiplexing mechanism, compares it with select and poll, describes its level‑ and edge‑triggered modes, and provides practical C and Python examples for building high‑concurrency network servers.

I/O MultiplexingLinuxedge-triggered
0 likes · 61 min read
Understanding epoll: High‑Performance I/O Multiplexing in Linux
Mike Chen's Internet Architecture
Mike Chen's Internet Architecture
Nov 11, 2024 · Databases

Is Redis Single‑Threaded? Uncover Its Core Architecture and Multi‑Threading Features

Redis primarily operates with a single thread using I/O multiplexing (select, poll, epoll) to handle massive concurrent connections, while newer versions introduce optional multi‑threaded networking and use child processes for persistence, maintaining its core single‑threaded design for data processing.

Database ArchitectureI/O MultiplexingSingle‑threaded
0 likes · 5 min read
Is Redis Single‑Threaded? Uncover Its Core Architecture and Multi‑Threading Features
Deepin Linux
Deepin Linux
Sep 9, 2024 · Backend Development

Understanding epoll: Level‑Triggered vs Edge‑Triggered Modes and Kernel Implementation

This article explains the concepts of level‑triggered (LT) and edge‑triggered (ET) event notification in Linux epoll, describes epoll's core data structures such as the red‑black tree and ready‑list, details the three main APIs (epoll_create, epoll_ctl, epoll_wait), and examines the locking and internal kernel mechanisms that enable efficient I/O multiplexing.

Event-drivenI/O MultiplexingLinux kernel
0 likes · 69 min read
Understanding epoll: Level‑Triggered vs Edge‑Triggered Modes and Kernel Implementation
IT Architects Alliance
IT Architects Alliance
Jul 11, 2024 · Databases

Why Redis Is So Fast: Single‑Threaded Design, Multi‑Threaded I/O, and Performance Characteristics

This article explains how Redis achieves extremely high throughput—over 800 k QPS for simple commands and up to 1 M QPS with pipelining—through its C implementation, in‑memory data store, single‑threaded event loop, I/O multiplexing, and optional multithreaded I/O introduced in later versions.

I/O MultiplexingSingle‑threadedmultithreading
0 likes · 16 min read
Why Redis Is So Fast: Single‑Threaded Design, Multi‑Threaded I/O, and Performance Characteristics
MaGe Linux Operations
MaGe Linux Operations
Jul 9, 2024 · Databases

Why Redis Uses a Single Thread and How Multithreading Boosts Performance

Redis’s core operations run on a single thread to avoid concurrency overhead, while auxiliary tasks use extra threads; the article explains the single‑threaded model, Linux I/O multiplexing (select/epoll), Redis 6.0’s I/O thread feature, and practical configuration steps to improve throughput.

ConfigurationI/O Multiplexingredis
0 likes · 8 min read
Why Redis Uses a Single Thread and How Multithreading Boosts Performance
IT Services Circle
IT Services Circle
Jun 22, 2024 · Backend Development

Comprehensive Guide to Java Backend Interview Topics: Object Creation, Reflection, Serialization, GC, I/O Multiplexing, and Network Troubleshooting

This article provides an in-depth review of common Java backend interview questions, covering alternative object creation methods, practical reflection scenarios, serialization techniques, garbage‑collection algorithms, I/O multiplexing mechanisms, network port listening, and troubleshooting tips for server‑client communication issues.

Garbage CollectionI/O MultiplexingReflection
0 likes · 24 min read
Comprehensive Guide to Java Backend Interview Topics: Object Creation, Reflection, Serialization, GC, I/O Multiplexing, and Network Troubleshooting
Selected Java Interview Questions
Selected Java Interview Questions
Jun 18, 2024 · Databases

Why Redis Is So Fast: Single‑Threaded Core, Multi‑Threaded I/O and Performance Mechanics

The article explains how Redis achieves high QPS by using an in‑memory, single‑threaded event loop for simple commands, leverages I/O multiplexing (epoll/select/kqueue) and optional multi‑threaded I/O for heavy operations, and outlines its evolution from a pure reactor model to a hybrid multi‑threaded architecture.

I/O MultiplexingSingle Threaddatabases
0 likes · 17 min read
Why Redis Is So Fast: Single‑Threaded Core, Multi‑Threaded I/O and Performance Mechanics
Deepin Linux
Deepin Linux
May 17, 2024 · Fundamentals

Comprehensive Overview of epoll Data Structures and Implementation in Linux

This article systematically explains epoll's core data structures—including a red‑black tree and a doubly linked ready list—its three main APIs, the kernel implementation details, thread‑safety mechanisms, ET vs. LT behavior, and how it improves over select/poll for high‑concurrency network programming.

Event-drivenI/O MultiplexingLinux kernel
0 likes · 68 min read
Comprehensive Overview of epoll Data Structures and Implementation in Linux
Su San Talks Tech
Su San Talks Tech
May 6, 2024 · Databases

Why Redis Is Lightning Fast: Deep Dive into Its Core Architecture

This article explores why Redis delivers ultra‑high performance by examining its in‑memory design, single‑threaded event loop, efficient data structures such as hash tables, SDS strings, ziplist, quicklist, and skiplist, as well as its encoding strategies and I/O multiplexing model.

Data StructuresI/O MultiplexingIn-Memory Database
0 likes · 21 min read
Why Redis Is Lightning Fast: Deep Dive into Its Core Architecture
MaGe Linux Operations
MaGe Linux Operations
May 3, 2024 · Fundamentals

Understanding User vs Kernel Space and Modern I/O Models in Linux

This article explains the separation of user and kernel space, compares blocking, non‑blocking, multiplexed, signal‑driven, and asynchronous I/O models, and details the select, poll, and epoll mechanisms used to efficiently handle multiple file descriptors in Linux.

I/O MultiplexingKernel SpaceLinux
0 likes · 12 min read
Understanding User vs Kernel Space and Modern I/O Models in Linux
Liangxu Linux
Liangxu Linux
Dec 6, 2023 · Fundamentals

Mastering Files, File Descriptors, and I/O Multiplexing in Linux

This article explains Linux file concepts, how file descriptors work, why simple blocking I/O fails at scale, and introduces I/O multiplexing techniques—including select, poll, and epoll—detailing their mechanisms, limitations, and practical code examples for high‑concurrency servers.

I/O Multiplexingepollfile-descriptors
0 likes · 13 min read
Mastering Files, File Descriptors, and I/O Multiplexing in Linux
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
ITPUB
ITPUB
Oct 28, 2023 · Databases

Why Is Single‑Threaded Redis So Fast? Uncover the Secrets

This article explains why Redis, despite being described as single‑threaded, achieves extremely high performance by using a single thread for network I/O and command execution, avoiding multithreading overhead, and leveraging efficient in‑memory data structures together with an event‑driven multiplexing I/O model.

Event-drivenI/O MultiplexingSingle Thread
0 likes · 12 min read
Why Is Single‑Threaded Redis So Fast? Uncover the Secrets
Sanyou's Java Diary
Sanyou's Java Diary
Oct 9, 2023 · Backend Development

Unlocking Java NIO: How Select, Poll, and Epoll Revolutionize I/O Multiplexing

This article explains the evolution of I/O multiplexing in Java, covering the birth of multiplexing, the introduction of NIO with Selector, and detailed comparisons of select, poll, and epoll mechanisms, including their APIs, internal workings, and performance considerations for high‑concurrency network programming.

I/O Multiplexingepollnio
0 likes · 44 min read
Unlocking Java NIO: How Select, Poll, and Epoll Revolutionize I/O Multiplexing
Tencent Cloud Developer
Tencent Cloud Developer
Nov 16, 2022 · Fundamentals

Virtual Memory, Address Translation, and I/O Models in Operating Systems

Virtual memory extends limited physical RAM by giving each process a large address space translated via page tables and a TLB, while multi‑level tables manage size, and the OS separates kernel and user space, offering blocking/non‑blocking, synchronous/asynchronous, multiplexed I/O, reactor patterns, and zero‑copy techniques to optimize data transfer.

I/O MultiplexingOperating SystemTLB
0 likes · 28 min read
Virtual Memory, Address Translation, and I/O Models in Operating Systems
Java High-Performance Architecture
Java High-Performance Architecture
Oct 21, 2022 · Databases

What Makes Redis So Fast? Inside Its Data Structures and Single‑Threaded Design

Redis achieves remarkable speed by operating as an in‑memory database, leveraging specialized data structures like SDS, linked lists, hash tables, skip lists, and ziplists, while using a single‑threaded event loop with I/O multiplexing, incremental rehashing, and optimized memory management to minimize latency.

I/O MultiplexingIn-Memory DatabaseSingle‑threaded
0 likes · 19 min read
What Makes Redis So Fast? Inside Its Data Structures and Single‑Threaded Design
Architect
Architect
Oct 10, 2022 · Databases

Why Redis Is Fast: In‑Memory Storage, Specialized Data Structures, Single‑Threaded Design, and I/O Multiplexing

This article explains why Redis delivers high query speed by leveraging its in‑memory architecture, custom data structures such as SDS, linked lists, hash tables, skip‑lists, and intsets, a single‑threaded execution model combined with efficient I/O multiplexing, and recent multithreaded I/O enhancements.

Data StructuresI/O MultiplexingIn-Memory Database
0 likes · 18 min read
Why Redis Is Fast: In‑Memory Storage, Specialized Data Structures, Single‑Threaded Design, and I/O Multiplexing
Java Architect Essentials
Java Architect Essentials
Sep 15, 2022 · Databases

Why Redis Is Fast: In‑Memory Storage, Specialized Data Structures, Single‑Threaded Model, and I/O Multiplexing

Redis achieves exceptional speed by operating as an in‑memory database, leveraging compact data structures like SDS, linked lists, hash tables, skip lists and ziplists, running a single‑threaded event loop with I/O multiplexing, and employing optimizations such as lazy‑free, progressive rehashing, and multithreaded network I/O.

Data StructuresI/O MultiplexingSingle Thread
0 likes · 18 min read
Why Redis Is Fast: In‑Memory Storage, Specialized Data Structures, Single‑Threaded Model, and I/O Multiplexing
Su San Talks Tech
Su San Talks Tech
Aug 29, 2022 · Databases

Why Redis Added Multithreading in 6.0: Design Rationale and Trade‑offs

This article explains why Redis, originally designed as a single‑threaded in‑memory database, introduced a multithreaded network layer in version 6.0, covering the historical design, the limits of CPU vs I/O utilization, the role of I/O multiplexing, and the benefits and drawbacks of the new model.

I/O Multiplexingconcurrencydatabases
0 likes · 11 min read
Why Redis Added Multithreading in 6.0: Design Rationale and Trade‑offs
IT Architects Alliance
IT Architects Alliance
Aug 10, 2022 · Databases

Why Redis Is Fast: In‑Memory Storage, Specialized Data Structures, Single‑Threaded Model, and I/O Multiplexing

Redis achieves high performance by storing all data in memory, using compact data structures such as SDS, ziplist and skiplist, running a single‑threaded event loop with lock‑free execution, and employing efficient I/O multiplexing and incremental rehash techniques to minimize latency and maximize throughput.

I/O MultiplexingIn-Memory DatabaseSingle‑threaded
0 likes · 17 min read
Why Redis Is Fast: In‑Memory Storage, Specialized Data Structures, Single‑Threaded Model, and I/O Multiplexing
Top Architect
Top Architect
Aug 9, 2022 · Databases

Why Redis Is Fast: In‑Memory Design, Specialized Data Structures, Single‑Threaded Execution and I/O Multiplexing

Redis achieves high performance by storing all data in memory, using compact data structures such as SDS, hash tables, skip‑lists and zip‑lists, running a single‑threaded event loop with I/O multiplexing, and applying optimisations like lazy‑free, progressive rehashing and optional multi‑threaded I/O for network traffic.

Data StructuresI/O MultiplexingIn-Memory Database
0 likes · 18 min read
Why Redis Is Fast: In‑Memory Design, Specialized Data Structures, Single‑Threaded Execution and I/O Multiplexing
MaGe Linux Operations
MaGe Linux Operations
Jul 6, 2022 · Backend Development

Mastering epoll: Boost Linux Server Performance with Edge-Triggered I/O

This article explains the epoll interface, its underlying data structures, the three-step usage pattern, the differences between level‑triggered and edge‑triggered modes, the reactor model, and provides a complete C demo, helping developers efficiently handle millions of concurrent TCP connections on Linux.

C ProgrammingI/O MultiplexingLinux
0 likes · 17 min read
Mastering epoll: Boost Linux Server Performance with Edge-Triggered I/O
Liangxu Linux
Liangxu Linux
Jun 10, 2022 · Operations

How Linux epoll Boosts I/O Performance: Inside the Kernel’s Eventpoll Mechanism

This article explains why traditional select and poll struggle with many file descriptors, how epoll redesigns the workflow by registering descriptors once via epoll_ctl, the kernel data structures (eventpoll, epitem) that manage events, and walks through the core functions epoll_create, epoll_ctl, epoll_wait, and their callbacks.

I/O Multiplexingc++epoll
0 likes · 22 min read
How Linux epoll Boosts I/O Performance: Inside the Kernel’s Eventpoll Mechanism
Refining Core Development Skills
Refining Core Development Skills
May 24, 2022 · Backend Development

An In-Depth Analysis of Redis Multi-Threaded Architecture and I/O Event Processing

This article provides a comprehensive source-level analysis of Redis 6.0 and later multi-threaded architecture, detailing how the main event loop coordinates with dedicated I/O threads to efficiently distribute, parse, and process concurrent read and write requests while maintaining high throughput and low latency.

C ProgrammingI/O Multiplexingepoll
0 likes · 21 min read
An In-Depth Analysis of Redis Multi-Threaded Architecture and I/O Event Processing
Efficient Ops
Efficient Ops
May 11, 2022 · Backend Development

How epoll Handles Millions of Connections Efficiently: A Deep Dive into Linux I/O Multiplexing

This article explains why traditional select/poll struggle with massive connections, how epoll's event-driven design using a red‑black tree and ready‑list dramatically improves scalability, details its two trigger modes, and provides a complete C demo illustrating a high‑performance reactor model.

BackendEvent-drivenI/O Multiplexing
0 likes · 18 min read
How epoll Handles Millions of Connections Efficiently: A Deep Dive into Linux I/O Multiplexing
Top Architect
Top Architect
Mar 5, 2022 · Databases

Understanding Redis’s Single‑Threaded Model and File Event Handler (FEH)

The article explains how Redis implements a high‑performance single‑threaded architecture by using a Reactor‑style file‑event handler (FEH) built on I/O multiplexing, detailing socket events, the I/O multiplexing program, dispatcher, handler mapping, and the overall client‑server communication flow.

Event-drivenI/O MultiplexingSingle‑threaded
0 likes · 9 min read
Understanding Redis’s Single‑Threaded Model and File Event Handler (FEH)
IT Architects Alliance
IT Architects Alliance
Jan 28, 2022 · Databases

Why Is Redis So Fast? A Deep Dive into Its Data Structures and Architecture

This article explains why Redis achieves high query performance by leveraging in‑memory storage, specialized data structures such as SDS, linked lists, dictionaries, ziplists and skiplists, a single‑threaded event loop with I/O multiplexing, and various optimization techniques that avoid common bottlenecks.

Data StructuresI/O MultiplexingIn-Memory Database
0 likes · 18 min read
Why Is Redis So Fast? A Deep Dive into Its Data Structures and Architecture
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
Liangxu Linux
Liangxu Linux
Aug 31, 2021 · Fundamentals

Understanding the Four Core I/O Models: Blocking, Non‑Blocking, Multiplexing, and Asynchronous

Explore the four fundamental I/O models—Blocking, Non‑Blocking, I/O Multiplexing (Reactor), and Asynchronous (Proactor)—with clear explanations and illustrative diagrams, helping readers grasp how each model works, their typical use cases, and why technologies like epoll or Redis benefit from multiplexing.

Blocking IOI/O MultiplexingIO models
0 likes · 3 min read
Understanding the Four Core I/O Models: Blocking, Non‑Blocking, Multiplexing, and Asynchronous
Open Source Tech Hub
Open Source Tech Hub
Apr 14, 2021 · Backend Development

How Redis Implements Efficient I/O Multiplexing with select, epoll, and kqueue

This article explains Redis's clean and elegant I/O multiplexing implementation, covering blocking I/O limitations, the reactor pattern, abstraction of select/epoll/kqueue into a unified API, key source functions, and platform‑specific module selection to achieve high‑performance single‑threaded networking.

I/O Multiplexingepollevent loop
0 likes · 14 min read
How Redis Implements Efficient I/O Multiplexing with select, epoll, and kqueue
dbaplus Community
dbaplus Community
Apr 11, 2021 · Databases

Why Redis Added Multithreading in 6.0: Myths, Benefits, and Design Choices

Redis, traditionally single‑threaded for network I/O and key‑value operations, introduced multithreading in version 6.0 to improve network I/O handling; this article explains the original single‑thread design, when multithreading is appropriate, its drawbacks, the role of I/O multiplexing, and why Redis still keeps most work single‑threaded.

Database PerformanceI/O MultiplexingVersion 6.0
0 likes · 12 min read
Why Redis Added Multithreading in 6.0: Myths, Benefits, and Design Choices
dbaplus Community
dbaplus Community
Mar 28, 2021 · Databases

Why Redis Is So Fast: Inside Its Core Architecture

This article explains why Redis achieves exceptional speed by examining its memory‑only architecture, single‑threaded event loop, and the specialized data structures—global hash tables, SDS strings, ziplist, quicklist, skiplist, and intset—that provide O(1) or O(log N) operations, along with non‑blocking I/O multiplexing.

Data StructuresI/O MultiplexingIn-Memory Database
0 likes · 20 min read
Why Redis Is So Fast: Inside Its Core Architecture
Wukong Talks Architecture
Wukong Talks Architecture
Mar 22, 2021 · Databases

The Secrets Behind Redis’s Speed: Architecture, Data Structures, and Single‑Threaded Model

This article explains why Redis is exceptionally fast by detailing its in‑memory design, global hash table with O(1) lookups, incremental rehashing, specialized data structures such as SDS, ziplist, quicklist, skiplist and intset, as well as its single‑threaded event loop and epoll‑based I/O multiplexing.

I/O MultiplexingIn-Memory DatabaseSingle‑threaded
0 likes · 19 min read
The Secrets Behind Redis’s Speed: Architecture, Data Structures, and Single‑Threaded Model
Qunar Tech Salon
Qunar Tech Salon
Mar 10, 2021 · Backend Development

Deep Dive into epoll: Principles, Blocking, and I/O Multiplexing

This article provides an in‑depth exploration of Linux’s epoll mechanism, covering its blocking behavior, kernel‑level processing, NAPI optimization, comparisons with select/poll, and practical insights into I/O multiplexing, helping backend engineers understand performance characteristics and design efficient network services.

I/O MultiplexingLinux kernelNAPI
0 likes · 15 min read
Deep Dive into epoll: Principles, Blocking, and I/O Multiplexing
Code Ape Tech Column
Code Ape Tech Column
Mar 3, 2021 · Fundamentals

What Are the Different I/O Models and When Should You Use Them?

This article explains the four main I/O models—blocking, non‑blocking, multiplexing (reactor), and asynchronous (proactor)—detailing their characteristics, typical implementations in Java and Linux, and when each model is appropriate for building efficient network applications.

I/O MultiplexingIO modelsNon-blocking I/O
0 likes · 3 min read
What Are the Different I/O Models and When Should You Use Them?
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
JavaEdge
JavaEdge
Nov 3, 2020 · Backend Development

Why select and poll Fall Behind epoll: A Deep Dive into Linux I/O Multiplexing

This article compares Linux's select, poll, and epoll mechanisms, explaining their internal workings, limitations such as FD_SETSIZE and linear scanning, and why epoll's event‑driven design offers superior scalability and performance for high‑concurrency network servers.

I/O MultiplexingLinuxNetwork programming
0 likes · 7 min read
Why select and poll Fall Behind epoll: A Deep Dive into Linux I/O Multiplexing
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
JavaEdge
JavaEdge
Sep 1, 2020 · Backend Development

Why Redis Uses a Single Thread Model: File Event Handlers & I/O Multiplexing

This article explains how Redis implements a single‑threaded architecture by using a file event handler built on non‑blocking I/O multiplexing (select, epoll, evport, kqueue), detailing socket event abstraction, the I/O multiplexing program, event dispatcher, and the mapping of various socket operations to specific handlers.

I/O MultiplexingSingle Threadevent-handling
0 likes · 7 min read
Why Redis Uses a Single Thread Model: File Event Handlers & I/O Multiplexing
Java Captain
Java Captain
Aug 18, 2020 · Backend Development

Understanding the Five I/O Models: Blocking, Non‑Blocking, I/O Multiplexing, Signal‑Driven, and Asynchronous I/O

This article explains the five I/O models—blocking, non‑blocking, I/O multiplexing, signal‑driven, and asynchronous—detailing their operation, typical applications, advantages, and drawbacks within the Linux/UNIX networking environment, and compares synchronous versus asynchronous I/O concepts.

I/O ModelsI/O MultiplexingLinux
0 likes · 11 min read
Understanding the Five I/O Models: Blocking, Non‑Blocking, I/O Multiplexing, Signal‑Driven, and Asynchronous I/O
Xiaokun's Architecture Exploration Notes
Xiaokun's Architecture Exploration Notes
Mar 18, 2020 · Backend Development

Mastering epoll: Deep Dive into Linux I/O Multiplexing

This article thoroughly examines Linux's epoll mechanism, detailing its SLAB memory management, middle‑layer design, edge and level triggering, comparison with select/poll, and related advanced polling technologies such as /dev/poll and kqueue, while also discussing C10K/C10M challenges and practical solutions.

C10KI/O MultiplexingLinux kernel
0 likes · 19 min read
Mastering epoll: Deep Dive into Linux I/O Multiplexing
360 Tech Engineering
360 Tech Engineering
Dec 20, 2019 · Fundamentals

Deep Dive into Linux epoll: Data Structures, Core Functions, and Implementation Details

This article provides a comprehensive analysis of Linux's epoll mechanism, covering its fundamental data structures, key kernel functions, wait‑queue handling, event insertion, wake‑up logic, and the differences between edge‑triggered and level‑triggered modes, while including full source code excerpts for reference.

Event-drivenI/O MultiplexingLinux
0 likes · 21 min read
Deep Dive into Linux epoll: Data Structures, Core Functions, and Implementation Details
Ziru Technology
Ziru Technology
Aug 29, 2019 · Backend Development

Inside Redis: How Initialization and Event Loop Power the Server

This article explains Redis's startup sequence, detailing server initialization, configuration loading, event‑loop creation, supported I/O multiplexing mechanisms, timer and I/O callbacks, and the complete request‑response flow from client command to server reply.

I/O MultiplexingServer Initializationbackend-development
0 likes · 13 min read
Inside Redis: How Initialization and Event Loop Power the Server
Programmer DD
Programmer DD
Aug 15, 2019 · Databases

Why Is Redis So Fast? Uncover the Secrets Behind Its Performance

Redis achieves exceptional speed by combining a C‑based implementation, pure in‑memory data storage, a single‑threaded event loop, and non‑blocking epoll I/O multiplexing, while supporting rich data structures and advanced features such as transactions, Lua scripting, and clustering.

I/O MultiplexingIn-MemorySingle‑threaded
0 likes · 6 min read
Why Is Redis So Fast? Uncover the Secrets Behind Its Performance
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
dbaplus Community
dbaplus Community
Mar 27, 2018 · Backend Development

How Tomcat Implements NIO: A Deep Dive into I/O Multiplexing and NioEndpoint

This article explains Tomcat's NIO architecture, covering the I/O multiplexing model, Tomcat's support for various I/O models, NioEndpoint component relationships, step‑by‑step source‑code analysis, performance considerations, and practical configuration tips for optimizing high‑concurrency Java servers.

I/O MultiplexingTomcatjava
0 likes · 11 min read
How Tomcat Implements NIO: A Deep Dive into I/O Multiplexing and NioEndpoint
360 Zhihui Cloud Developer
360 Zhihui Cloud Developer
Aug 8, 2017 · Fundamentals

Understanding Network I/O: Blocking, Non‑Blocking, Async & Multiplexing Explained

This article revisits fundamental network I/O concepts, clarifying the differences between blocking, non‑blocking, synchronous, asynchronous, and multiplexed models through clear explanations and illustrative diagrams, helping developers build a solid mental model of how data moves between processes and the kernel.

AsynchronousBlockingI/O Multiplexing
0 likes · 8 min read
Understanding Network I/O: Blocking, Non‑Blocking, Async & Multiplexing Explained
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
MaGe Linux Operations
MaGe Linux Operations
Oct 24, 2016 · Backend Development

Mastering epoll: High-Performance I/O Multiplexing in Linux

This article introduces Linux’s epoll mechanism, explains how to create and control epoll instances with epoll_create, epoll_ctl, and epoll_wait, describes the associated data structures and event flags, compares epoll to select, and highlights its O(1) scalability advantages for high‑connection backend applications.

BackendI/O MultiplexingLinux
0 likes · 7 min read
Mastering epoll: High-Performance I/O Multiplexing in Linux
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