// Topics / Databases

Databases

    Red-Teaming Distributed Databases Before the Black Swan Most catastrophic distributed database incidents are compound failures nobody practiced. How to red-team partitions, clock skew, and operator error. distributed-systems databases reliability Caching Strategies: Adding It Is Easy, Invalidation Is Hard Cache-aside, write-through, invalidation strategies, and the failure modes that will wake you up at night. With Go examples. performance databases go PostgreSQL Performance: Measure First, Tune Second Most Postgres performance problems are indexing problems. The rest are vacuum problems. Here's how to find and fix both. databases performance backend Zero-Downtime PostgreSQL Migrations Without the Drama A single ALTER TABLE can ruin your weekend. How to migrate safely with expand-and-contract, batched backfills, and compatible deploys. databases ci-cd Postgres Reliability: Restores, Failover, Safe Migrations Practical database reliability from running Postgres in production: configs, safe migration patterns, and the operational habits that prevent outages. databases reliability infrastructure Serverless Databases vs Postgres: Most Teams Need Postgres Aurora Serverless, DynamoDB, Fauna, and PlanetScale solve problems most teams don't have. Postgres with a connection pooler is still the default. cloud databases architecture PostgreSQL Replication Patterns: Async, Sync, and Quorum A practical breakdown of replication modes, topologies, and the tradeoffs between consistency, availability, and not losing your users' data at 3am. databases distributed-systems architecture PostgreSQL Performance Tuning: The Playbook I Use PostgreSQL tuning in the order I do it: find slow queries with pg_stat_statements, pool connections, size memory, fix indexes, tune autovacuum and WAL. databases performance backend Incremental TypeScript Migration Without Losing Your Mind How to introduce TypeScript to a real JavaScript codebase incrementally, without halting product work or annoying your entire team. engineering databases development API Rate Limiting: Token Buckets, Redis, and Headers Rate limiting APIs at a fintech startup: choosing the limit key, token bucket vs other algorithms, Redis Lua scripts, headers, and fail-open. api backend architecture Database Sharding: You Probably Don't Need It Yet Most teams shard too early. What to exhaust first on a single PostgreSQL primary, when sharding is justified, how to pick a shard key, and what it costs. databases architecture PostgreSQL Performance Tuning: Stop Guessing, Measure First How I diagnose slow PostgreSQL queries: slow query log, EXPLAIN ANALYZE, stale statistics, targeted indexes, connection pooling, one change at a time. databases performance Scaling PostgreSQL: Why Scaling Up Beats Sharding How we scaled PostgreSQL for a high-volume ingestion pipeline with PgBouncer, streaming replicas, and partitioning, and why sharding comes last. databases architecture engineering Log Aggregation at Scale: ELK vs Alternatives ELK is powerful and a second full-time job. What running it at a mobility startup taught me, and the hosted or simpler options I'd pick instead. observability databases devops Zero-Downtime PostgreSQL Migrations: Expand and Contract How to change PostgreSQL schemas without maintenance windows: expand and contract, batched backfills, NOT VALID constraints, and concurrent indexes. databases devops engineering Postgres vs MySQL in 2016: A Practical Comparison A grounded look at PostgreSQL and MySQL as of April 2016, focusing on integrity, query power, and operational tradeoffs rather than benchmark hype. databases architecture engineering