Articles for people who
ship the stack
Rewrites on React, Node.js, TypeScript and AI. A translated body is shown when it exists. If it does not, you see the English text and a note that says so.
Tagged: Caching
TanStack Query Basics: Queries, Caching, Mutations and Invalidation
Learn how useQuery, queryKey, staleTime, gcTime, useMutation and invalidation fit together to manage server state in React without hand-written fetch effects.
7 min readCutting LLM Costs: Caching, Model Routing and Prompt Trimming
Production LLM bills grow fast. Use semantic caching, model routing, leaner prompts, RAG reranking, output caps and batching to spend less without losing quality.
8 min readTanStack Query detailed guide: queries, cache, mutations, and optimistic UI
TanStack Query manages server state like a restaurant manager: shared cache keys, freshness dials, coordinated mutations, invalidation, and optimistic updates on top of your HTTP client.
22 min readSemantic caching with Redis for vector search
Cut embedding API spend with semantic caching in Redis: a two-level cache that reuses vector search results when queries mean the same thing, in Node.js.
4 min readRedis Beyond Caching: Sessions, Rate Limits, Queues, and Pub/Sub in Node.js
Seven Redis patterns for Node.js backends — caching with TTLs, OTP keys, rate limits, BullMQ jobs, sessions, Pub/Sub limits, and when not to use Redis.
6 min readThe HTTP QUERY Method for Frontend Teams: Safe Reads With a Body
Learn when the HTTP QUERY method beats GET and POST for complex filters, how to call it with fetch, and what CORS, caching and infrastructure support require.
7 min readMeasure First: Why Early Optimization Makes Next.js Apps Harder to Run
See how premature memoization, broad client boundaries and stacked caches add complexity to Next.js apps, and how a measurement-first workflow keeps them fast.
10 min readKeeping Redis Caches Honest in Node.js: Invalidation Without Stale Reads
Compare TTL, delete-on-write, pub/sub and versioned-key invalidation for Redis in Node.js, see the race each leaves open, and build a fail-open cacheAside wrapper.
16 min readCache Stampedes in Node.js: Why a Redis Cache Can Overload Your Database
Learn why a naive cache-aside Redis setup synchronizes load onto your database when a hot key expires, and how locks and background refresh prevent it.
7 min read
About these articles
Request a 24h estimate
Need the same stack in a production operator layer? Send the brief — estimate within 24 hours.