- Another PR to OSS merged ๐ฅน - CockroachDB
๐ 10 min read
My second contribution to open source - a fix for a bug in CockroachDB's PL/pgSQL UDF support.
Read more โ - MVCC in MongoDB with WiredTiger
๐ 14 min read
How WiredTiger implements MVCC under MongoDB - timestamps, snapshot isolation, the history store, write conflicts, and how it compares to PostgreSQL.
Read more โ - Adding Native Retry Logic to gofalcon
๐ 9 min read
How I added built-in exponential backoff retry support to the CrowdStrike Falcon Go SDK, so callers no longer have to roll their own.
Read more โ - How MVCC Works and Why Databases Use It
๐ 12 min read
Multi-version concurrency control lets readers and writers proceed without blocking each other. A breakdown of the core mechanics, and how PostgreSQL, CockroachDB, and MySQL InnoDB implement them.
Read more โ - Write-Ahead Logging and Database Durability
๐ 10 min read
Write-ahead logging is the mechanism behind crash safety in almost every serious storage system. This post explains how it works from first principles, and how PostgreSQL, SQLite, RocksDB, and etcd each implement the same core idea.
Read more โ - Pagination: cursor or offset?
๐ 6 min read
When to use cursor-based vs offset-based pagination.
Read more โ - The "One-Way Street" Problem: Why We Clone Request Bodies in Go
๐ 7 min read
If you're coming from languages like Python or Java, Go's handling of HTTP request bodies might feel like a trap. We try to read a request body twice (e.g. once for logging and once for processing) and the second time, it's mysteriously empty.
Read more โ - Adding Full-Stack Observability to a Go Worker Pool
๐ 20 min read
How to add metrics, logs, and traces to a Go worker pool using Prometheus, Loki, Tempo, and Grafana, with every import and config line explained.
Read more โ