Databases

Choose and operate the right database. PostgreSQL vs MySQL, Redis caching patterns, MongoDB data modeling, replication, sharding, and backup strategies explained.

8 articles

NoSQL vs SQL: An Honest Decision Framework
Databases

NoSQL vs SQL: An Honest Decision Framework

A practical comparison of SQL and NoSQL databases. Covers MongoDB, Redis, DynamoDB, Cassandra, and Neo4j vs PostgreSQL with real trade-offs, code examples, and a decision framework for choosing the right database.

10 min read·
Time-Series Databases: When PostgreSQL Isn't Enough
Databases

Time-Series Databases: When PostgreSQL Isn't Enough

A practical guide to time-series databases. Compare TimescaleDB, InfluxDB, Prometheus, and ClickHouse. Learn TSDB architecture, compression, downsampling, and when to upgrade from plain PostgreSQL.

9 min read·
Connection Pooling: Why PgBouncer Exists and How It Works
Databases

Connection Pooling: Why PgBouncer Exists and How It Works

A complete guide to PostgreSQL connection pooling with PgBouncer. Covers the process-per-connection model, pooling modes (session, transaction, statement), configuration, Kubernetes deployment patterns, and alternatives.

10 min read·
Database Sharding vs Partitioning: Scaling Out Your Data Layer
Databases

Database Sharding vs Partitioning: Scaling Out Your Data Layer

A practical guide to database sharding and partitioning in PostgreSQL. Covers range, list, and hash partitioning, consistent hashing, cross-shard queries, resharding, and when to choose each strategy.

10 min read·
ACID Properties Explained: What Database Transactions Actually Guarantee
Databases

ACID Properties Explained: What Database Transactions Actually Guarantee

A practical guide to ACID properties in PostgreSQL. Covers atomicity, consistency, isolation levels (Read Committed through Serializable), durability, and the anomalies each isolation level prevents.

11 min read·
Redis Data Structures: When to Use Sets, Sorted Sets, Hashes, and Streams
Databases

Redis Data Structures: When to Use Sets, Sorted Sets, Hashes, and Streams

A practical guide to every Redis data structure. Learn when to use strings, lists, sets, sorted sets, hashes, and streams -- with real commands, memory trade-offs, and a decision framework.

10 min read·
Database Replication Explained: Primary-Replica, Sync vs Async
Databases

Database Replication Explained: Primary-Replica, Sync vs Async

A complete guide to PostgreSQL streaming replication. Covers WAL shipping, synchronous vs asynchronous modes, replica lag monitoring, failover with Patroni, and physical vs logical replication trade-offs.

10 min read·
PostgreSQL Indexes Explained: B-Tree, GIN, GiST, Hash, and BRIN
Databases

PostgreSQL Indexes Explained: B-Tree, GIN, GiST, Hash, and BRIN

A complete guide to PostgreSQL index types. Learn when to use B-Tree, Hash, GIN, GiST, BRIN, and partial indexes with real SQL examples, EXPLAIN ANALYZE verification, and index maintenance strategies.

14 min read·

Stay in the loop

New articles delivered to your inbox. No spam.