Перейти к содержимому

Redis Internals | How Is Single-Threaded Redis So Fast? | System Design in Hindi

Decode with Vipin

0:00 / 0:00

Redis Internals | How Is Single-Threaded Redis So Fast? | System Design in Hindi

3 просмотра · 7 часов назад
Decode with Vipin
11 подписчиков
3 просмотра · 7 часов назад
Is video mein hum usi online shop ke andar ek GET command ko network se lekar memory tak follow karenge, aur dekhenge ki Redis andar se kaise kaam karta hai aur apna data disk par kaise bachata hai. Is video mein aap seekhoge: RESP protocol: ek Redis command network par kaise jaati hai Redis event loop andar se: epoll, ready list, query buffer, output buffer, timers, aur aadha pahuncha command Single thread itna fast kyun hai: RAM, no locks, no context switch, epoll, aur Redis 6 ke I/O threads KEYS vs SCAN, DEL vs UNLINK, slowlog, output buffer limit aur pipelining Redis ki hash table, chaining aur incremental rehashing Ziplist ka cascade update problem, listpack fix, aur hash ka hash table mein convert hona Sorted set ke andar skip list kaise kaam karti hai, aur keys ki lazy aur active expiry RDB snapshot: fork, page table, copy on write, temp file rename, aur memory spike ka fix AOF: fsync settings (always, everysec, no), truncated AOF, AOF rewrite aur manifest Replication, Sentinel failover aur Redis Cluster ke 16384 slots Har approach ke trade-offs: single thread, RDB, AOF aur replication Full Decode System Design Series [   • Decode System Design  ] #SystemDesign #SystemDesignInHindi #Redis #Caching #BackendEngineering