KodeKloud's banner
KodeKloud's profile picture

KodeKloud

@kodekloud • 117,400 subscribers

Videos

kodekloud's profile picture

🚨 Full Database Sharding Course on Udemy: Database sharding explained from scratch, using one growing app to show exactly when a single database stops scaling and what replaces it. Chirp starts on one server and one database. Then it hits millions of users, the biggest machine the cloud will rent isn’t enough, and writes start failing during busy moments. Replicas rescue the slow reads but can’t touch the write problem. This course follows Chirp through every fix, so shard keys, hashing, hotspots and consistent hashing each show up right when the app needs them. 🧪 Try it yourself in the free lab: 📚 What you’ll learn: 1️⃣ Why read replicas speed up reads but can’t help once writes start failing 2️⃣ The five checks a shard key has to pass, and why user ID beats country, signup year and username 3️⃣ How hashing turns an email into a shard number, and why Python’s built-in hash() breaks sharding 4️⃣ How to stop a celebrity hotspot with a dedicated shard, a cache and salted keys 5️⃣ Why adding one shard can move 80% of your data, and how consistent hashing with virtual nodes prevents it 🧪 Free hands-on lab: ⏰ Timestamps: 00:00 - Intro 00:40 - Chirp: one app, one database 02:30 - Reads, writes and scaling up 04:00 - Read replicas 06:00 - Why writes can’t go to replicas 08:00 - What sharding actually is 09:30 - Splitting users across four shards 11:00 - Lab 1: Shard a 10,000-row users table 11:30 - What a shard key is 13:00 - Five properties of a good shard key 19:30 - Hashing non-numeric shard keys 22:00 - Why Python’s hash() fails for sharding 25:00 - Range, directory and geographic sharding 29:30 - Lab 2: Test different shard keys 30:00 - The routing layer: app, proxy or database 34:00 - Hotspots and the celebrity problem 37:30 - Salting hot keys 41:00 - Why adding one shard moves most of your data 43:30 - Consistent hashing and the hash ring 46:30 - Virtual nodes 🗄️ System Design Playlist: 🔔 Subscribe for more database and system design lessons built around real apps #DatabaseSharding #SystemDesign #KodeKloud #ConsistentHashing #Sharding #DatabaseScaling #HorizontalScaling #ShardKey #DistributedSystems #DatabaseReplication #Hashing #MongoDB #BackendEngineering #SystemDesignInterview #Scalability #DevOps

KodeKloud

31,600 просмотров • 1 месяц назад

Больше нет контента для загрузки