Tag

single-threaded

0 views collected around this technical thread.

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
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.

DatabaseI/O multiplexingMultithreading
0 likes · 16 min read
Why Redis Is So Fast: Single‑Threaded Design, Multi‑Threaded I/O, and Performance Characteristics
Selected Java Interview Questions
Selected Java Interview Questions
Aug 10, 2023 · Backend Development

Why Single‑Threaded Redis Is So Fast: Four Key Design Choices

The article explains that Redis achieves exceptional performance through four main factors—its in‑memory storage, optimized data structures, a single‑threaded architecture, and non‑blocking I/O—detailing how each contributes to speed and efficiency.

In-MemoryNon-blocking I/OPerformance
0 likes · 6 min read
Why Single‑Threaded Redis Is So Fast: Four Key Design Choices
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
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 DatabaseRedis
0 likes · 17 min read
Why Redis Is Fast: In‑Memory Storage, Specialized Data Structures, Single‑Threaded Model, and I/O Multiplexing
Refining Core Development Skills
Refining Core Development Skills
Mar 11, 2022 · Databases

Redis Server Startup and Event‑Loop Mechanics: A Detailed Walkthrough

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.

C++Event LoopIO Multiplexing
0 likes · 8 min read
Redis Server Startup and Event‑Loop Mechanics: A Detailed Walkthrough
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.

I/O multiplexingRedisdatabases
0 likes · 9 min read
Understanding Redis’s Single‑Threaded Model and File Event Handler (FEH)
Top Architect
Top Architect
Feb 27, 2022 · Backend Development

Analyzing Redis' Single‑Threaded Model and Event Loop from Source Code

This article examines Redis's single‑threaded architecture by walking through its source code, detailing the main function initialization steps, the event‑loop implementation, and how file and time events are processed, while also noting the promotional messages interspersed throughout.

Backend DevelopmentC languageEvent Loop
0 likes · 12 min read
Analyzing Redis' Single‑Threaded Model and Event Loop from Source Code
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Apr 27, 2021 · Databases

Why Redis Is Fast: Core Principles and Internal Data Structures

This article explains why Redis achieves extremely high performance by leveraging pure in‑memory operations, a global O(1) hash table, efficient data structures such as SDS, ziplist, quicklist and skiplist, a single‑threaded event loop with non‑blocking I/O multiplexing, and adaptive encoding strategies.

Data StructuresIO MultiplexingIn-Memory
0 likes · 20 min read
Why Redis Is Fast: Core Principles and Internal Data Structures
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.

Data StructuresI/O multiplexingIn-Memory Database
0 likes · 19 min read
The Secrets Behind Redis’s Speed: Architecture, Data Structures, and Single‑Threaded Model
Architecture Digest
Architecture Digest
Oct 24, 2020 · Databases

Why Redis Is So Fast: Single‑Threaded Architecture and Performance Optimizations

Redis achieves exceptionally high performance despite its single‑threaded request handling by leveraging pure in‑memory operations, I/O multiplexing, non‑CPU‑intensive tasks, and specific single‑threaded advantages, while also incorporating multithreaded optimizations such as lazy‑free mechanisms and protocol parsing in newer versions.

IO MultiplexingIn-MemoryPerformance
0 likes · 8 min read
Why Redis Is So Fast: Single‑Threaded Architecture and Performance Optimizations