Blog
Thoughts on software development, architecture, and technology
Patch Week: Git Clones, 52 Postgres CVEs, Node 27 Certificates and Smarter Coding Agents
Git, PostgreSQL and Node.js all shipped releases web developers should care about this week, and Chrome wants to teach your coding agent the modern web.
How I Found a Slow Next.js Route With OpenTelemetry Tracing and Custom Spans
How I wired OpenTelemetry into Next.js with instrumentation.ts, added custom spans, and used the trace waterfall to find a hidden bottleneck.
How I Hardened Session Cookies in Next.js With __Host-, HttpOnly and SameSite
What each cookie attribute really protects against, why the __Host- prefix matters, and the session cookie setup I now ship in Next.js.
How I Made Cron Jobs Run Exactly Once Across Instances With Postgres Advisory Locks
Two instances, two copies of every scheduled job. Here's how I used Postgres advisory locks from Prisma to fix it, and the pooling trap to avoid.
How I Rate Limited My Next.js API With a Sliding Window in Redis
Fixed-window counters let bursts slip through. Here's how I built an accurate, atomic sliding window rate limiter with Redis sorted sets and Lua.
How I Replaced Offset Pagination With Cursor Pagination in Prisma and Postgres
Why OFFSET slows down and duplicates rows on big tables, and how I built fast, stable keyset pagination with Prisma, Postgres and a composite index.
How I Added a Strict Content Security Policy With Nonces in Next.js
A practical walkthrough of nonce-based CSP in the Next.js App Router: the proxy setup, third-party scripts, the dynamic rendering cost, and a safe rollout.
How I Stopped Dropping Requests on Deploy With Graceful Shutdown in Node.js
Handling SIGTERM, draining keep-alive connections and closing Prisma in the right order so Docker and Kubernetes deploys stop causing 502s.
How I Validate Environment Variables at Startup With Zod in Next.js
A missing env var broke my checkout in production. Here's how I validate every variable with Zod 4 so bad config fails the build, not the user.
How I Fixed Race Conditions in React Data Fetching With AbortController
Stale responses were overwriting fresh search results. Here is how AbortController fixed it in React, and why I now use it on the server too.
How I Made My API Safe to Retry With Idempotency Keys
A dropped connection created duplicate orders in my app. Here is how idempotency keys, Prisma and a Postgres unique constraint made retries safe.
How I Cut My Next.js CI Build Time With GitHub Actions Caching
Cache the npm download cache and .next/cache in GitHub Actions with the right keys, so every push stops running a cold Next.js build.
Why Comparing API Keys With === Is a Security Bug (and How to Fix It in Node.js)
How timing attacks leak secrets through string comparison, and how to use crypto.timingSafeEqual for API keys, tokens and webhook signatures.
How a Composite Index Fixed My Slow Prisma Query in Postgres
Why column order matters in Postgres composite indexes, and how I used EXPLAIN ANALYZE and Prisma's @@index to fix a slow paginated query.
What is TOON?
What is TOON? How Token-Oriented Object Notation works under the hood ?
Microservices vs Monolithic Architecture
Microservices vs Monolithic Architecture: A Comprehensive Guide to Choosing the Right Approach
What is REST API vs GraphQL?
REST API vs GraphQL: Choosing the Right API Architecture for Your Project

Modern web development in 2025
Modern web development in 2025