Topic Tag Archive

#nestjs

← All Articles

Showing 12 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 ↗
Payments26 Aug 2026

Fix Stripe Webhook Signature Verification in NestJS

Fix "no signatures found matching the expected signature for payload" in NestJS. Configure raw body capture for Express and Fastify to verify Stripe webhooks.

5 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 ↗
Databases21 Aug 2026

Why Your NestJS Aggregation Pipeline Is Slow (It's Not Your Indexes)

Most MongoDB aggregation slowdowns in NestJS come from stage order, not missing indexes. Here's how to fix $lookup memory spikes and force IXSCAN.

5 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 ↗
Payments20 Aug 2026

Stripe Metered Billing in NestJS — Idempotent Usage Records at Scale

How to buffer usage events with Redis Streams and report them to Stripe without hitting 429s or double-charging customers, using a NestJS batch worker and deterministic idempotency keys.

6 min readRead ↗
Backend18 Aug 2026

Why Your NestJS API Slows Down Under Load (And It's Probably Not the Database)

A field guide to diagnosing V8 memory leaks and event loop lag in high-throughput NestJS APIs — measuring lag with perf_hooks, killing RxJS subscription leaks, and offloading CPU work to worker threads.

5 min readRead ↗
Payments18 Aug 2026

Stripe Payments in React: 3D Secure, Apple Pay, and Surviving Network Drops

How to wire Stripe's Payment Element into a React app so 3D Secure, Apple Pay, and Google Pay don't leave you with orphaned orders or duplicate charges.

6 min readRead ↗
Databases15 Aug 2026

MongoDB Change Streams in NestJS Keep Dropping Events. Here's the Fix

Change Streams look production-ready in a demo and fall apart on deploy day. Here's how to persist resume tokens, batch under load, and survive replica set elections in NestJS.

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 ↗