Topic Tag Archive

#postgresql

← All Articles

Showing 8 articles

Databases26 Aug 2026

Optimistic vs Pessimistic Locking in NestJS: Pick One, Not Both

A practical breakdown of optimistic versioning and SELECT FOR UPDATE in NestJS and PostgreSQL, with real code and a clear recommendation for wallets, inventory, and reservations.

6 min readRead ↗
Databases26 Aug 2026

Zero-Downtime PostgreSQL Migrations in NestJS

Safely execute PostgreSQL schema migrations in NestJS without locking production tables. Master concurrent index builds and expand-and-contract renames.

6 min readRead ↗
Payments22 Aug 2026

Stripe Dunning in NestJS: Stop Losing Subscribers to Failed Card Charges

A production dunning architecture for NestJS SaaS apps — grace periods, 3D Secure recovery emails, and webhook-driven state sync that recovers most failed subscription payments.

6 min readRead ↗
Payments22 Aug 2026

Building a Stripe Dunning System in NestJS That Actually Recovers Revenue

A NestJS architecture for Stripe subscription dunning that syncs Postgres state, handles 3D Secure retries, and recovers failed payments instead of just canceling users.

6 min readRead ↗
AI Engineering20 Aug 2026

Give Your NestJS AI Agent a Real Memory (Without Blowing Up Your Token Bill)

A two-tier memory pattern for NestJS AI agents — Redis for the last few turns, pgvector for permanent facts — with the code, the tradeoffs, and where it breaks.

7 min readRead ↗
Databases19 Aug 2026

Why Your Next.js App Keeps Hitting "Too Many Connections" in Production

A practical breakdown of why serverless Next.js apps exhaust PostgreSQL connections, and the three fixes that actually work — singleton clients, transaction-mode pooling, and HTTP drivers.

6 min readRead ↗
Databases14 Aug 2026

Running pgvector in Production Without It Falling Over

How to configure HNSW indexes, tune maintenance_work_mem and shared_buffers, and add hybrid search so pgvector holds up under real RAG traffic.

6 min readRead ↗
Backend13 Aug 2026

Stripe Webhooks in NestJS Are Fine Until Production Hits: Fixing Race Conditions and Duplicate Events

How to stop Stripe webhooks from double-charging users, showing stale subscription status, or racing the frontend redirect in a NestJS and PostgreSQL app.

5 min readRead ↗