Ask HN: Resources for creating my own database

5 points by tylerpachal ↗ HN
I know a lot about to how use different databases (SQL, Elasticsearch, Mongodb, etc), but I thought it would make an interesting project to create my own database. I have an idea of where I would start, but was hoping looking for some resources to help me out (free or paid). I tried googling around but most of the results are dominated by MS Access or SQL stuff.

Any links to books/pdfs/github repos would be awesome.

4 comments

[ 3.0 ms ] story [ 19.2 ms ] thread
The Red Book [1] (recently updated) is a good overview and has lots of useful references. Some might be too high-level, but this paper (really a short book!) is a good start at what makes up a database: "Architecture of a Database System"[2].

Keep in mind that the scope of a "database" can be huge, so you might want to start really small, e.g., writing a basic key-value store that can support things concurrent reads & write, isolation, etc. It all depends on what interests you.

--

[1] http://www.redbook.io/

[2] http://www.electricmonk.nl/data/freeitebooks/fntdb07-archite...

Thanks! I think I'm mainly interested in writing a graph database because there are less of them available