---
title: "Waseem Anjum (@fabwaseem) | Hashnode"
description: "Full Stack & AI Automation Engineer. Read the latest articles by Waseem Anjum on Hashnode."
url: "https://hashnode.com/@fabwaseem"
---

@fabwaseem

# Waseem Anjum

@fabwaseem · Lahore, Pakistan · Joined October 2026

Full Stack & AI Automation Engineer

[Website](https://www.fabwaseem.com/)

## Comments

[Agreed, and the argument point is the one I'd underline: everything you pass in becomes part of the key, so passing a whole user or session object instead of just the id you need fragments the cache fast. On stampedes, cacheLife already behaves that way inside its window: after the revalidate time the old entry keeps being served while it refreshes in the background, and only once it's past expire does a request wait for fresh data. revalidateTag with the 'max' profile gives you the same stale-while-revalidate behavior on a tag purge. And yes on multiple instances: the default handler is an in-memory LRU per process, so without a shared cacheHandlers entry like Redis each replica refreshes on its own schedule.](https://hashnode.com/posts/nextjs-use-cache/6ade7d53f2f04a792f554f65/comment/6ae44c7751143117518905d7#reply-6ae47b76c51e580a8c247c32)

Reply · Article · Oct 30 · [Next.js use cache Explained: Cache Components, cacheLife and cacheTag in Next.js 16.4](https://hashnode.com/posts/nextjs-use-cache/6ade7d53f2f04a792f554f65)

[Thanks, Adam. Both came before the skill existed. I hit them while writing my Next.js security update guide, and the skill just packages what I learned there. npm audit didn't flag the October advisories for me, which is why the skill compares installed versions against the advisory table instead of trusting it. The sharp one showed up when I patched a 15.x app to 15.5.28: the lockfile kept sharp on 0.34.x, so the image optimizer was still exposed until I ran npm update sharp. That's the whole case for a Gotchas section. If the agent can't guess it and you only learn it by getting it wrong, it belongs in the skill.](https://hashnode.com/posts/agent-skills/6ade00675819f19be2dd9cd8/comment/6ae11b34dfe4cdf6f890cde1#reply-6ae12dd12ff9a9b78492e254)

Reply · Article · Oct 27 · [Agent Skills Explained: How to Write a SKILL.md for Claude Code, Cursor, Codex and Copilot](https://hashnode.com/posts/agent-skills/6ade00675819f19be2dd9cd8)

[Exactly. In my test the app files inside the standalone runner came to 59 MB, so most of the 287 MB is the Node base image itself. And non-root is only a couple of lines once the node user owns .next, so there's little reason to skip it.](https://hashnode.com/posts/nextjs-dockerfile/6adf7d1d26319dd161d10aa0/comment/6adf82a197e881f41f9fa012#reply-6adfa5e8ba2907af020b0d97)

Reply · Article · Oct 26 · [Production Next.js Dockerfile: Multi-Stage, Standalone and Non-Root](https://hashnode.com/posts/nextjs-dockerfile/6adf7d1d26319dd161d10aa0)

[Good call on keeping it a liveness check. The /api/health route in the post only returns a status and the process uptime, with no database call, and that's on purpose: if a DB blip fails the probe, Docker marks the container unhealthy and Coolify or Swarm can pull containers that are actually fine. If you want DB status, put it on a separate endpoint that your monitoring watches. On base images, I measured slim and Alpine in the same test: 287 MB on node:24-slim vs 229 MB on node:24-alpine. I didn't build a distroless variant or run a CVE scan, so I don't have numbers there. Sharp ships prebuilt musl binaries, so Alpine works for it, but I keep slim as the default because glibc is the safer bet for other native modules. A distroless runner with a Trivy or Docker Scout comparison would make a good follow-up.](https://hashnode.com/posts/nextjs-dockerfile/6adf7d1d26319dd161d10aa0/comment/6adf89082263bbe898e1283a#reply-6adfa5cfba2907af020b0c4e)

Reply · Article · Oct 26 · [Production Next.js Dockerfile: Multi-Stage, Standalone and Non-Root](https://hashnode.com/posts/nextjs-dockerfile/6adf7d1d26319dd161d10aa0)

[Good point, thanks. In my test the page made one getSession() call and the proxy made another, so cache() wouldn't have changed the 4, but it matters as soon as a layout and a page (or a few server components) each check the session in the same render, since each call would otherwise cost 2 queries on Prisma 7. And yes, the proxy can't share that cache, which is one more reason to keep it as an optimistic redirect and do the real check in the page.](https://hashnode.com/posts/better-auth-nextjs-16/6adb85f3c414037f96346e1c/comment/6adda9a669bcac3dade7a361#reply-6adde41e31fdbe9f7258cd75)

Reply · Article · Oct 25 · [Better Auth with Next.js 16: proxy.ts, Prisma 7 and Server Actions (Tested Setup)](https://hashnode.com/posts/better-auth-nextjs-16/6adb85f3c414037f96346e1c)
