Database Sharting Explained

preview_player
Показать описание
How do large apps grow their databases to millions of users? In this quick video we explain the difference between horizontal and vertical database scaling techniques.

#programming #database #shorts
Рекомендации по теме
Комментарии
Автор

Boss man: what's that leaking out of the server?
dbAdmin: the database sharted

PaulHosler
Автор

I hate when my databases start sharting.

PitersChannel
Автор

"Sharting"
I see you're trying to increase engagement. Well, it's working.

fatbirb
Автор

Ok, you tricked me into watching this in a loop without realizing it.

botcontador
Автор

SQL databases can be scaled horizontally as well, not just noSQL.

elco
Автор

"I'M SHHHAARRTTIINNGG HERE"
"In the server?"
"NO, IN REAL LIFE!"

ammptoskatharos
Автор

Two things to keep in mind for the new guys:

First, hardware has come so fast over the last twenty years, that a normal 2000USD server gets you a very long way with a reasonable database like Postgres. Forget about Twitter and the like, they have a load most web applications will never see.

Second, NoSQL databases generally take a number of short cuts. They often don't provide ACID, so don't trust them with valuable data. They often require you as the programmer to do the heavy lifting of aggregating data from different sources, or worse. The whole map/reduce mantra for example is often a cheap man's query optimizer.

Sharding can be done with traditional databases as well. You lose some of the functionality, of course, but not all of them. Let's take the Discord example: nothing stops you from distributing the set of Discord "servers" across different databases on different database servers, so that within one Discord "server" you can still operate with a normal relational database. This works well and nice as long as your largest "shards" fit unto a single machine and see point one again.

joergsonnenberger
Автор

Aah, like distributing the stain over multiple briefs

deldarel
Автор

Thank you for explaining Database Sharting!

boooooooky
Автор

SQL databases can also scale horizontally (Google Cloud Spanner)

sawanstor
Автор

They also use Sharding with SQL databases. NoSQL only works well with flat no relational data.

NathanHedglin
Автор

I havent gone to the comments section this fast since jan 6th

gravestoner
Автор

Nobody:
Replica DB: Who just shart my pants?

EvanBoldt
Автор

Finally someone who spells it the right way

Muzzino
Автор

Hahahahaha despite the title the punch line still got me. 😂😂😂

BrandonAaskov
Автор

How does a db search for an index on multiple machines?
split the indexes for each machine, like:
machine 1: a to l
machine 2: l to z

Or instead search by index on each machine?
machine 1: a to z
machine 2: a to z

chefaku
Автор

The production on this was fun to watch. Awesome. 🎉 how you do it??

apolloapostolos
Автор

Discord doesn't use cassandra anymore because it didn't fit the needs, they switched to Scylla Enterprise Database

ciach_
Автор

nosql doesnt inherently scale horizontally, they are for key/value pairs with no referential integrity. You can scale an sql db horizontally with mircoservices or logical division.

Zaph_Kiel
Автор

😂😂😂❤❤❤ the most wonderful accident in the English language is that both "sharding" and "sharting" are absolutely PERFECT at describing the underlying meaning ❤❤❤😂😂😂

lashlarue