Skip to main content

Blog

I'm Santosh Kumar, a full stack developer in Patna, India. I write about the things I build with — Next.js, Node.js, AWS and the parts of shipping web apps that tutorials skip.

· 8 min read

Node.js Clustering Explained: Use Every CPU Core in Production

Node.js runs your JavaScript on one thread, so one process uses one core. A practical guide to the cluster module — forking workers, crash recovery, zero-downtime restarts and the shared-state traps.

  • Node.js
  • Performance
  • Scaling
  • Backend

· 5 min read

Rate Limiting Next.js API Routes on Vercel Without Redis

In-memory rate limiters don't work on serverless. Here's a 30-line rate limiter built on MongoDB's atomic upserts and TTL indexes, the trade-offs, and when to switch to Redis.

  • Next.js
  • MongoDB
  • Vercel
  • Security

· 6 min read

Secure File Uploads in Node.js with AWS S3 Presigned URLs

Stop streaming uploads through your server. A practical guide to S3 presigned PUT and POST uploads with the AWS SDK v3 — validation, size limits, CORS and the security details that matter.

  • Node.js
  • AWS S3
  • Security
  • Express