r/programming • u/tanayvk • Sep 10 '26
The Physics of Database Speed: from 300 to 1M transactions per second
https://www.youtube.com/watch?v=vOEL_pHFYK0A 19 minute animated explainer video on database speed. I explain low-level database concepts, identify bottlenecks, run benchmarks and optimize write throughput to hit 1 million TPS.
130
Upvotes
60
u/rThoro Sep 10 '26
except, that's not doing a million transactions, it's doing a million batched transactions, which are actually just 25...
23
u/NoLegJoe Sep 10 '26
Doesn't batching like this completely undermine the Durability part of ACID? Your frontend application is now sat with all of the transactions until batch is full. What happens if the frontend goes down? You lose everything in a batch.
All you've done is handed off Durability from the database, and given it to your app, then not bothered to implement it at all!
2
u/dharmesh1608 Sep 23 '26
Hey Tanay, could you please get back to us. We have an interesting problem to solve.
-6
u/coderemover Sep 11 '26
Or just use Cassandra and you get 1M req/sec without any special magic (just a powerful enough server).
-9
u/[deleted] Sep 10 '26
[removed] — view removed comment
0
u/[deleted] Sep 11 '26
[deleted] — view deleted comment