Загрузка...

Single-Threaded Performance: How Redis Bypasses Context Switching

Why does a single-threaded architecture outperform multi-threaded databases in sub-millisecond latency? This deep dive analyzes the engineering decisions behind Redis, from its origin as a solution to disk I/O bottlenecks to its evolution into a high-performance data structure server. We dissect the mechanics of the single-threaded event loop, the memory efficiency of Simple Dynamic Strings (SDS) and Skip Lists, and the performance impact of Redis 6.0's Threaded I/O. Learn how to optimize memory footprint through polymorphic data structures and implement advanced persistence with Multi-part AOF. Essential viewing for senior engineers scaling high-throughput distributed systems.

Our Courses on Udemy

Ultimate C++: Basic Modern C++20 to Advanced Multithreading: https://www.udemy.com/course/practical-modern-cpp-masterclass/?referralCode=042C0D382643FFDF8124

Fundamentals of Software Engineering - Product Mindset 101: https://www.udemy.com/course/essential-programming-fundamentals-for-all-beginners/?referralCode=129E3D73623F75D00105

Technical Leadership for AI Era Staff Engineer & Tech Lead: https://www.udemy.com/course/software-career-bootcamp-tech-lead-project-lead-team-lead/?referralCode=19D0DA16317C26F9FE19

00:00 The In-Memory Paradigm vs. Disk I/O Bottlenecks
02:25 Redis as a Data Structure Server
02:41 Solving the C10K Problem: Event-Driven Architecture
04:11 4 Reasons Why Single-Threading Wins
05:48 Vertical vs. Horizontal Scaling Strategies
06:33 Internal Data Structures: Simple Dynamic Strings (SDS)
08:00 Memory Optimization: ZipLists and QuickLists
09:19 Sorted Sets: Why Redis Uses SkipLists over Trees
11:10 Redis 6.0+ Threaded I/O Mechanics
11:48 The Industry Fracture: Redis vs. Valkey
13:02 Persistence Models: RDB Snapshots vs. AOF
15:51 Redis Cluster: Sharding and Gossip Protocols
16:56 Programmability: Lua Scripts vs. Redis Functions
17:50 Client-Side Caching and Invalidation
18:25 3 Concrete Action Items for This Week

Видео Single-Threaded Performance: How Redis Bypasses Context Switching канала Last Mile Developer
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять