How Distributed Lock works | ft Redis | System Design

  Рет қаралды 3,445

ByteMonk

ByteMonk

Күн бұрын

Distributed locking is a key concept in ensuring data integrity and consistency in distributed systems. In this video we explore distributed locking mechanisms including centralized locking, token-based locking, and quorum-based locking, explaining their principles, advantages, and limitations.
We then look into Redis based Redlock, a widely adopted quorum-based locking algorithm that provides high availability and fault tolerance. We break down the Redlock algorithm step by step, highlighting how it leverages multiple Redis instances to achieve consensus on lock acquisition.
Throughout the video, I emphasize the importance of distributed locking in maintaining data integrity and preventing conflicts in concurrent systems.
We also discuss real-world applications of distributed locking, such as managing inventory in e-commerce systems and coordinating access to shared resources in cloud environments.
FOLLOW ME ON:
▶️ Main Channel: /bytemonk
Timestamps -
00:00 - Introduction
01:11 - Distributed Lock
01:55 - Optimistic vs. Distributed Locking
03:14 - Ideal Distributed Locking
03:41 - Distributed Locking Algorithms
06:59 - Distributed Locking with Redis
LinkedIn: / bytemonk
System Design Interview Basics Playlist:
► • System Design Intervie...
AWS Certification:
►AWS Certified Cloud Practioner: • How to Pass AWS Certif...
►AWS Certified Solution Architect Associate: • How to Pass AWS Certif...
►AWS Certified Solution Architect Professional: • How to Pass AWS Certif...
#locking #redis #ai #optimistic

Пікірлер: 5
@AchintBhat
@AchintBhat Ай бұрын
Great content! Very informative!
@Zmey5656
@Zmey5656 Ай бұрын
Thanks for locking and unlocking
@ASSASSINakaInTRO
@ASSASSINakaInTRO Ай бұрын
Thx for the video and channel
@openheart.....6175
@openheart.....6175 9 күн бұрын
Sir please upload complete distributed systems videos
@tarunstv796
@tarunstv796 Ай бұрын
what if someone else use a different lock_key to perform the same ciritical section operation? I mean somehow lock_key should be same for all the operations+service combination
Concurrency made easy | System Design
11:09
ByteMonk
Рет қаралды 2 М.
2. What Makes Redis Special? | Redis Internals
22:04
Arpit Bhayani
Рет қаралды 37 М.
Secret Experiment Toothpaste Pt.4 😱 #shorts
00:35
Mr DegrEE
Рет қаралды 41 МЛН
Saga Pattern | Distributed Transactions | Microservices
17:18
ByteMonk
Рет қаралды 2,4 М.
Kafka vs. RabbitMQ vs. Messaging Middleware vs. Pulsar
4:31
ByteByteGo
Рет қаралды 94 М.
Concurrency Vs Parallelism!
4:13
ByteByteGo
Рет қаралды 71 М.
How Web Sockets work | Deep Dive
10:22
ByteMonk
Рет қаралды 10 М.
This is why understanding database concurrency control is important
9:05
JetStream KV: A fascinating alternative to Redis...
35:13
Synadia
Рет қаралды 11 М.
Instagram System Design | Meta | Facebook
16:38
ByteMonk
Рет қаралды 34 М.
System Design Interview - Distributed Cache
34:34
System Design Interview
Рет қаралды 356 М.
Understanding B-Trees: The Data Structure Behind Modern Databases
12:39