Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Topics Distributed systems

Replication

Replicating data or state, leader/follower, geo-replication.

Search within Replication, or combine it with other topics →

November 2026

Neon

Postgres 19 is out: try it on Neon

Release 12 min +120 XP

Postgres 19 is an operations-focused release that adds REPACK (CONCURRENTLY) for online table rebuilding and clustering via logical decoding, pg_plan_advice/pg_stash_advice for stabilizing bad plans by query ID, parallel autovacuum with priority scoring, WAIT FOR LSN for read-your-writes on replicas, and logical replication sequence sync.

PlanetScale

How we migrate TBs from Heroku without logical replication

Case study 12 min +120 XP

PlanetScale's open-source Heroku Migrator moves multi-terabyte Postgres databases off Heroku standard plans, which lack WAL access and logical replication, by using Bucardo trigger-based replication: triggers record changes in delta tables, a one-time COPY loads existing data, and a worker replays the backlog before a controlled switchover with verification.

ClickHouse

Fencing a Postgres primary that might still be alive

Case study 10 min +100 XP

Before promoting a standby, a managed Postgres control plane must fence the old primary, because promotion and DNS changes alone don't stop writes: async standbys, per-session synchronous_commit overrides, quorum commit with a remaining standby, and canceled commits already in WAL can all let a still-alive primary accept writes.

October 2026

Railway

Production Postgres on Railway: From First Deploy to High Availability

How-to 13 min +130 XP

Railway Postgres can grow from a single private-networked database to a production setup with volume backups, point-in-time recovery, PgBouncer connection pooling and Patroni-based high availability, demonstrated with an orders API that uses idempotency keys so retries stay safe.

September 2026

August 2026

ClickHouse

New system views in PostgreSQL 19

Deep dive 12 min +120 XP

PostgreSQL 19 (in beta) adds four system views, and three of them get hands-on demos. pg_stat_lock gives cumulative per-locktype wait counts, wait time and fastpath_exceeded counters, though waits only count once they pass deadlock_timeout. pg_stat_recovery returns standby replay state as one atomic, consistent snapshot. pg_stat_autovacuum_scores shows the new score-based autovacuum prioritization, tunable through five weight parameters.

20× the CI traffic without getting slower: How we rebuilt Git serving at Datadog

Case study 13 min +130 XP

Datadog replaced CI fetches from a replicated Gitaly/Praefect cluster with gitretriever, a fleet of independent Git mirrors that poll GitHub per changed ref and fan packfiles out to autoscaled relays over a gRPC signaling stream plus HTTP.

July 2026

Neon

Debug your Postgres from the terminal: a tour of `neon inspect db`

Announcement 10 min +100 XP

`neon inspect db` adds fourteen read-only Postgres diagnostic subcommands to the Neon CLI, each running one curated query against Postgres statistics and catalog views (table/index sizes, bloat, unused indexes, seq scans, long-running queries, locks, pg_stat_statements outliers and calls, vacuum stats, replication slots, subscriptions).

ClickHouse

PostgresBench: Measuring the impact of High Availability on Managed Postgres performance

Research 7 min +70 XP

PostgresBench now measures the performance cost of high-availability configurations across managed Postgres services, comparing shared-nothing designs (ClickHouse Managed Postgres, RDS, Crunchy Bridge) that use streaming standbys with shared-storage forks (Aurora, Neon) that replicate WAL to a storage layer.

June 2026

When failover isn’t safe: Building high-availability PostgreSQL on Kubernetes

Case study 22 min +220 XP

A staging gameday simulating zonal network latency left Datadog's Kubernetes-hosted PostgreSQL clusters stuck: with asynchronous replication, every standby exceeded Patroni's maximum_lag_on_failover, so no failover candidate could be promoted safely.

May 2026

April 2026

March 2026

February 2026

January 2026

ClickHouse

PostgreSQL + ClickHouse as the Open Source unified data stack

Announcement 5 min +50 XP

An open source stack pairs PostgreSQL as the transactional system of record with ClickHouse for analytics, connected by PeerDB for change data capture and the pg_clickhouse extension, which transparently offloads analytical queries from Postgres to ClickHouse.

December 2025

November 2025

Building an Enterprise Data Warehouse on Heroku: From Complex ETL to Seamless Salesforce Integration

Case study 7 min +70 XP

Heroku unified Salesforce and 20+ internal app databases into a warehouse processing over 10 TB monthly, using Heroku Connect to replicate Salesforce data without API limits and Postgres follower databases to read app data without loading production.

October 2025

September 2025

July 2025

June 2025

Breaking up a monolith: How we’re unwinding a shared database at scale

Case study 20 min +200 XP

Datadog is splitting its large shared Postgres database into independently owned instances through a three-phase plan: logical separation into per-domain private schemas with explicit ACLs, access reduction so only owning teams query their tables directly, and physical separation onto managed OrgStore instances.

May 2025

April 2025

March 2025

Scaling Nextdoor’s Datastores: Part 2

Case study 4 min +40 XP

Letting product engineers manually choose replica vs. primary routing in Django broke down as abstractions hid read-after-write dependencies, and the common workaround of wrapping logic in transactions sent everything to the primary, slowly eroding the capacity gained from read replicas.

February 2025

October 2024

September 2024

August 2024

May 2024

The quest for software engineering knowledge.

Look:
Layout: