[09]Blog & Notes

ENGINEERINGNOTES.

Deep dives on Full-Stack Systems, NestJS, Next.js App Router, AI RAG Pipelines, and Cloud Infrastructure.

AI Engineering Careers26 Aug 20268 min read

AI Reliability Engineer (AIRE) Explained — Salaries, Skills, and How to Break In

What an AI Reliability Engineer actually does, why postings from Anthropic and OpenAI pay $250K-$485K, and the real skill gap between an AIRE and a classic SRE.

Abhishek Pandey
Abhishek
Read Article ↗
AI Reliability Engineer (AIRE) Explained — Salaries, Skills, and How to Break In
AI Agents & Context Engineering26 Aug 2026

Why Your Coding Agent Chokes on Big Repos (And How AST Compression Fixes It)

Raw file dumps blow up token costs and wreck reasoning in agentic coding tools. Here's how AST signature stripping and dependency-aware context loading cut repo context by 90% or more.

#claude-code#context-engineering#typescript
6 min read
Frontend & Web Architecture26 Aug 2026

Module Federation Between Vite and Next.js Without Breaking SSR

How to wire React Vite microfrontends into a Next.js host with Module Federation — avoiding duplicate React crashes, hydration mismatches, and shared dependency conflicts.

#module federation#nextjs#vite
5 min read
Backend & Database26 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.

#nestjs#postgresql#concurrency
6 min read
Frontend & Web Architecture26 Aug 2026

Your Next.js Proxy Is Probably Adding 300ms to Every Request

How to build a fast, edge-compatible proxy.ts in Next.js App Router — stateless JWT auth with jose, HTTP-based Redis rate limiting, and a matcher config that stops running on every image request.

#Next.js#Edge Runtime#JWT
6 min read
Frontend & Performance26 Aug 2026

Why Your Next.js Images Are Still Slow (Even With next/image)

The three next/image mistakes that quietly wreck your LCP score: missing priority on hero banners, lazy sizes attributes, and no cache directory on self-hosted deploys.

#Next.js#Performance#Core Web Vitals
4 min read
Frontend & Next.js26 Aug 2026

Stop Overusing revalidatePath — Fix Stale Next.js Caches with Tags Instead

revalidatePath() purges entire route trees and wastes database calls. Here's how hierarchical revalidateTag() fixes stale ISR reads without the origin load.

#Next.js#App Router#ISR
5 min read
Backend & Payments26 Aug 2026

Stripe Webhook Signature Verification Keeps Failing in NestJS? Here's the Fix

Stripe webhook signatures fail in NestJS because the global body parser rewrites your JSON before verification runs. Here's how raw body capture fixes it, for Express and Fastify.

#nestjs#stripe#webhooks
5 min read
Backend & Database26 Aug 2026

Zero-Downtime PostgreSQL Migrations in NestJS: The Expand-and-Contract Playbook

How to run PostgreSQL schema changes in a NestJS app without locking production — concurrent index builds, the 4-phase column rename pattern, and lock_timeout guardrails.

#PostgreSQL#NestJS#TypeORM
6 min read
Backend & 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.

#NestJS#Stripe#SaaS
6 min read
Frontend & Fullstack Development22 Aug 2026

Next.js Server Components + TanStack Query: Fixing Double-Fetches and Cache Drift

How to pair Next.js App Router Server Components with TanStack Query v5 without double-fetching, leaking data across requests, or serving stale caches after mutations.

#nextjs#tanstack-query#react-query
6 min read
Backend & 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.

#nestjs#stripe#payments
6 min read
Frontend & Fullstack Development22 Aug 2026

Stop Double-Fetching in Next.js App Router with TanStack Query

How to prefetch on the server, hydrate on the client, and keep your cache in sync after Server Actions — without the double-fetch penalty or leaking data across requests.

#nextjs#tanstack-query#react-query
6 min read
Backend & Database21 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.

#MongoDB#NestJS#Node.js
5 min read
AI Agents & Architecture20 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.

#nestjs#redis#pgvector
7 min read
Frontend Development20 Aug 2026

Fixing React 19 Hydration Mismatches in Next.js App Router

The three most common causes of hydration mismatch errors in React 19 and Next.js App Router — localStorage reads, timezone-dependent dates, and browser extensions — with working fixes for each.

#React 19#Next.js#App Router
6 min read
Backend & 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.

#NestJS#Stripe#Redis
6 min read
AI & LLM Architecture19 Aug 2026

Stop Feeding Raw PDFs to Gemini: A Production Architecture for Document Extraction

How to parse complex PDFs, nested tables, and multi-column layouts with Gemini's Files API, structured JSON schemas, and DPI tuning — without burning your token budget.

#gemini#pdf parsing#document ai
6 min read
Fullstack & Database19 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.

#Next.js#PostgreSQL#Prisma
6 min read
AI Agents & Developer Tools18 Aug 2026

Custom Slash Commands and Subagents for Multi-File Refactors in Claude Code

A single prompt can't safely refactor a multi-file codebase. Here's how repo-scoped slash commands and staged subagents in Claude Code fix that, with git safety gates included.

#Claude Code#subagents#refactoring
5 min read
Backend & Performance18 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.

#nodejs#nestjs#performance
5 min read
Web Development & 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.

#react#stripe#payments
6 min read
AI Image Generation & Web Architecture17 Aug 2026

Self-Hosted ComfyUI vs Replicate: What Actually Breaks in Production

A cost and latency comparison of self-hosted headless ComfyUI against managed APIs like Replicate for Flux and SDXL image generation in web apps.

#comfyui#flux#sdxl
4 min read
Frontend & Fullstack Development17 Aug 2026

Next.js Partial Prerendering in Production: The Suspense and Cache Traps Nobody Warns You About

A practical look at Next.js Partial Prerendering — how to structure Suspense boundaries correctly, why cookies() can silently kill your static shell, and how to stop CDNs from leaking one user's data to another.

#nextjs#partial-prerendering#react-suspense
6 min read
Frontend Development17 Aug 2026

Your Vite Bundle Is Probably 1.5MB for No Good Reason

Fix slow LCP and INP in React + Vite apps with route-level code splitting, manual Rollup chunks, and smarter icon imports. Real config included.

#vite#react#performance
5 min read
AI Skills & Agentic Tools17 Aug 2026

Your AI Coding Agent Doesn't Need All 30 Skills Loaded at Once

Two-tier progressive discovery keeps coding agents like Claude Code fast by loading skill instructions only when a task actually needs them.

#AI agents#Claude Code#agentic tools
6 min read
AI & LLM Engineering15 Aug 2026

Why Your LLM's JSON Keeps Breaking in Production (And the Fix Isn't a Better Prompt)

A production playbook for eliminating JSON truncation, schema drift, and markdown pollution in LLM structured outputs — with real code for constrained decoding, chunking, and repair layers.

#structured-outputs#prompt-engineering#llm
6 min read
Backend & Database15 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.

#MongoDB#NestJS#Change Streams
6 min read
Linux15 Aug 2026

Backing Up Any Android Phone on Linux with ADB

A step-by-step ADB backup workflow for Linux that works on any Android phone, not just one brand — includes the exact commands, common failure points, and how to verify the copy actually worked.

#adb#android#linux
5 min read
Agentic AI14 Aug 2026

Loop Engineering: Stopping AI Agents From Looping Forever

A practical breakdown of hash fingerprinting, budget caps, and temperature perturbation for stopping autonomous LLM agents from getting stuck in tool-call loops.

#Agentic AI#LLM Agents#AI Architecture
6 min read
Database & AI14 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.

#pgvector#PostgreSQL#RAG
6 min read
Web Design14 Aug 2026

Why Some Websites Feel Premium and Others Just Feel Cheap

The three psychological principles (halo effect, cognitive load, and micro-interactions) that separate premium-feeling websites from cheap ones, with a practical fix order.

#ux#web-design#psychology
5 min read
SEO & AEO13 Aug 2026

Your Blog Isn't Getting Cited by AI Search — Here's the Structure That Fixes It

A practical breakdown of Answer Engine Optimization (AEO): how to format headings, code blocks, and tables so ChatGPT Search, Perplexity, and Google AI Overviews actually cite your content.

#AEO#SEO#JSON-LD
5 min read
AI & Content Systems13 Aug 2026

One Prompt Template, Infinite Consistent Carousels: A System for AI-Generated Instagram Visuals

How a single locked master prompt with four variable fields keeps an entire brand's AI-generated carousel visuals consistent — and why the AI should never touch your text.

#ai-image-generation#prompt-engineering#content-systems
9 min read
Next.js13 Aug 2026

revalidateTag() Works Locally and Fails in Production: Fixing Next.js Cache Sync Across Multiple Nodes

Why revalidateTag() and revalidatePath() silently stop working once your Next.js App Router app runs on more than one server instance, and how to fix it.

#Next.js#App Router#Server Actions
5 min read
Software Engineering13 Aug 2026

Your AI Assistant Isn't Getting Dumber Mid-Session — It's Running Out of Context

Why long AI coding sessions quietly degrade, and four concrete practices — repo rule files, short sessions, symbol ingestion, ADRs — that fix it.

#ai-coding#claude-code#cursor
4 min read
Frontend Engineering13 Aug 2026

Building a Google Maps Business Location Picker in React (With Nearby Business Search)

A practical React + TypeScript guide to a Google Maps location picker: reverse geocoding, nearby business discovery via Places API (New), custom markers, and the errors that trip everyone up.

#react#typescript#google-maps
12 min read
Backend Development13 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.

#NestJS#Stripe#PostgreSQL
5 min read
Software Engineering12 Aug 2026

The AI Wrote Code That Compiles, Runs, and Is Wrong: A Debugging Workflow

A practical three-tier workflow for catching the subtle bugs, boundary omissions, and security gaps AI coding assistants keep shipping.

#ai-coding#code-review#typescript
5 min read
Developer Tools12 Aug 2026

Your MCP Server Works Locally But Breaks in Production — Here's Why

Local MCP servers usually fail in production for one of four reasons: transport, payload size, tool naming, or auth handshakes. Here's how to fix each.

#MCP#AI Agents#Claude Code
6 min read
SEO05 Aug 2026

Writing Posts That Actually Rank

A short checklist for writing blog posts that target real search intent instead of guessing.

1 min read
Guides01 Aug 2026

How To Start: A No-Fluff First Post

The template's first sample post — replace this with real content in your niche. This shows headings, lists, and a pull quote.

1 min read
Technical SEO18 Mar 2024

Technical SEO & AEO Optimization for Modern Next.js Applications

Learn how to optimize Next.js App Router applications for Google search rankings and AI answer engine citations including Perplexity and ChatGPT Search.

#Next.js#SEO#AEO
2 min read
API Architecture15 Mar 2024

How to Modernize Legacy REST APIs: Architecture, Migration & Best Practices

A comprehensive guide on modernizing legacy REST APIs without breaking changes, covering strangler fig pattern, OpenAPI specs, and performance optimization.

#REST API#API Modernization#Microservices
2 min read