building a sample distributed postgres

May 17, 2022

https://notes.eatonphil.com/distributed-postgres.html

uses golang libraries to demonstrate how you could build a very simplified version of a distributed postgres

What is CockroachDB under the hood? Take a look at its go.mod and notice a number of dependencies that do a lot of work: a PostgreSQL wire protocol implementation, a storage layer, a Raft implementation for distributed consensus. And not part of go.mod but still building on 3rd party code, PostgreSQL's grammar definition.

To be absurdly reductionist, CockroachDB is just the glue around these libraries. With that reductionist mindset, let's try building a distributed Postgres proof of concept ourselves!

↑ up