Build Your Own Database
nan.fyi · 3,275 words · saved by 6 readers
A step-by-step guide to building a key-value database from scratch.
If you were to build your own database today, not knowing that databases exist already, how would you do it? In this post, we'll explore how to build a key-value database from the ground up. A key-value database works more or less like objects in JavaScript—you can store values using a key and retrieve them later using that same key: $ db set 'hello' 'world' $ db get 'hello' world Let's find out how they work! Credit where credit is due: This post is largely based off Martin Kleppmann's book Designing Data-Intensive Applications , specifically Chapter 3, "Data Structures that Power Your Databa
saved by
related reading
- Everything I know about good system designseangoedecke.com
- The Beginner's Guide to Databasestechnically.substack.com
- Building data-centric apps with a reactive relational databaseriffle.systems
- Database Fundamentalstontinton.com
- How Does a Database Work?cstack.github.io
- Against Query Based Compilersmatklad.github.io
- A More Human Approach To Databasesccorcos.github.io
- Understanding IndexedDB. The complete guide.blog.xnim.me
- Merklizing the key/value store for fun and profit | Joel Gustafsonjoelgustafson.com
- Cleaned-up transcript of Rich Hickey's talk "Deconstructing the Database" · GitHubgist.github.com
- pthorpe92.devpthorpe92.dev
- B+Trees - Database Systemscs186berkeley.net