BoltDB
BoltDB is an embedded key-value database written in Go, originally created by Ben Johnson and now maintained as part of the etcd project. It provides a pure Go implementation of a B-tree-based storage engine with ACID transactions and sequential write-ahead logging, optimized for read-heavy workloads where the working set fits in memory. BoltDB's design philosophy emphasizes simplicity over performance: it does not support network access, replication, or secondary indexes, making it unsuitable for distributed systems but ideal for local state management in single-node applications. The database is used as the index store in Grafana Loki and as the metadata backend in etcd, demonstrating that embedded databases remain essential infrastructure even in the age of cloud-native distributed storage.
The persistence of embedded databases like BoltDB in a world of cloud-native distributed systems suggests that not every data problem benefits from distribution. Sometimes the correct architecture is a file on disk with a good B-tree.