Tag

Single Thread

0 views collected around this technical thread.

Full-Stack Internet Architecture
Full-Stack Internet Architecture
Jun 27, 2024 · Databases

Why Redis Is So Fast: Key Architectural Reasons

This article explains why Redis achieves extremely high performance, reaching up to 100,000 QPS, by leveraging its in‑memory design, I/O multiplexing, optimized data structures such as SDS, ziplist and skiplist, and a single‑threaded event loop, each detailed with examples and code.

Data StructuresIO MultiplexingIn-Memory
0 likes · 6 min read
Why Redis Is So Fast: Key Architectural Reasons
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 multiplexingRedisSingle Thread
0 likes · 17 min read
Why Redis Is So Fast: Single‑Threaded Core, Multi‑Threaded I/O and Performance Mechanics
IT Architects Alliance
IT Architects Alliance
Oct 11, 2022 · Databases

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

Redis achieves high performance by storing all data in memory, using compact data structures like SDS, linked lists, hash tables, skip lists and integer sets, running a single‑threaded event loop, and handling thousands of client connections with efficient I/O multiplexing.

Data StructuresI/O multiplexingIn-Memory Database
0 likes · 18 min read
Why Redis Is Fast: In‑Memory Storage, Efficient Data Structures, Single‑Threaded Model, 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 multiplexingIn-Memory Database
0 likes · 18 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
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
May 17, 2022 · Databases

Why Is Redis So Fast? Inside Its Data Structures and Single‑Threaded Design

This article explains how Redis achieves high‑performance queries by leveraging in‑memory storage, specialized data structures such as SDS, hash tables, skip‑lists and zip‑lists, a single‑threaded event loop with I/O multiplexing, and progressive rehashing techniques.

Data StructuresI/O multiplexingIn-Memory Database
0 likes · 18 min read
Why Is Redis So Fast? Inside Its Data Structures and Single‑Threaded Design
Top Architect
Top Architect
Mar 4, 2022 · Databases

Why Redis Is So Fast: Architecture, Single‑Thread Model, and Multithreading in Redis 6.0

This article explains why Redis achieves high throughput—up to 100,000 QPS—by leveraging in‑memory storage, simple data structures, a single‑threaded event loop with I/O multiplexing, and the optional multithreaded I/O model introduced in Redis 6.0, including configuration details and safety considerations.

IO MultiplexingRedisSingle Thread
0 likes · 8 min read
Why Redis Is So Fast: Architecture, Single‑Thread Model, and Multithreading in Redis 6.0
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.

Event LoopReactor PatternRedis
0 likes · 8 min read
How Redis Starts: Inside the Server’s Event Loop and Reactor Model
Sohu Tech Products
Sohu Tech Products
Mar 31, 2021 · Databases

Why Redis Is Fast: Core Principles, Data Structures, and Architecture

This article explains why Redis achieves exceptionally high performance by combining pure in‑memory operations, a global hash table with O(1) lookups, 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 Database
0 likes · 20 min read
Why Redis Is Fast: Core Principles, Data Structures, and Architecture
Java Captain
Java Captain
Aug 22, 2018 · Databases

Understanding Redis: Why It Is So Fast and How Its Single‑Threaded Architecture Works

This article explains Redis’s core concepts, data structures, persistence options, and the reasons behind its exceptional speed—including in‑memory operations, simple data models, single‑threaded design, and efficient I/O multiplexing—while also covering common interview questions about caching and Redis’s threading model.

In-Memory DatabaseInterviewRedis
0 likes · 10 min read
Understanding Redis: Why It Is So Fast and How Its Single‑Threaded Architecture Works