Skip to content

#PostgreSQL

31 articles

Vector Databases: What They Are, How They Work, and When You Need One
AI/ML Engineering

Vector Databases: What They Are, How They Work, and When You Need One

A practical guide to vector databases -- how embeddings and ANN algorithms work, and an honest comparison of Pinecone, Weaviate, Qdrant, and pgvector.

9 min read·
CQRS and Event Sourcing: A Practical Introduction
Architecture

CQRS and Event Sourcing: A Practical Introduction

CQRS separates read and write models for independent optimization. Event Sourcing stores every state change as an immutable event. Learn when each pattern solves real problems, with TypeScript implementations, projection examples, and event store comparisons.

12 min read·
The CAP Theorem: What It Actually Means for Your Database Choices
Architecture

The CAP Theorem: What It Actually Means for Your Database Choices

The CAP theorem forces a trade-off between consistency and availability during network partitions. Learn how PostgreSQL, Cassandra, DynamoDB, and other databases handle this trade-off, plus the PACELC extension that captures what CAP misses.

11 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·
SQL Injection in 2026: Still a Problem, Here's How to Stop It
Security

SQL Injection in 2026: Still a Problem, Here's How to Stop It

SQL injection remains a top vulnerability. Learn how SQLi works, why ORMs are not enough, and how to prevent it with parameterized queries and defense in depth.

11 min read·
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.

11 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.

11 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.

11 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·

Stay in the loop

New articles delivered to your inbox. No spam.