Kubai Kevin

9 articles tagged Typescript

Distroless images: smaller attack surface

How to move runtime containers to distroless bases, measure the reduction in packages and CVEs, and keep scans blocking in CI.

13 min read · 2 November 2026

Dependency pinning: the lockfile lie

A lockfile records a resolution, not a guarantee. Learn where determinism breaks, how to enforce lockfiles in CI, and how pinning interacts with SCA.

16 min read · 31 October 2026

Node.js memory leak: find it in 10 min

Classify rising memory before profiling it: compare heapUsed and rss, take two heap snapshots, read retainer paths, and bound every in-memory structure.

14 min read · 29 October 2026

Agent followed instructions too literally: the cron job trap

Why agents that follow retry instructions literally hang forever, and how to fix it with per-request timeouts, async retries, and DNS limits.

12 min read · 11 August 2026

WASM servers beat containers here

A practical guide to choosing WebAssembly over containers for short-lived, CPU-bound server tasks, with code, failure modes, and a measurement plan.

12 min read · 5 August 2026

Boring AWS Lambda layers that don’t lock…

How to version, publish and reference Lambda layers so runtime upgrades, region moves and architecture changes don't break dependent functions.

12 min read · 31 July 2026

Global state is the wrong tool for AI features

Why a single global store breaks under streaming AI: memory growth, race conditions, undo cost, plus a decision checklist and measurement plan.

12 min read · 28 July 2026

Offline-first agents for field teams

Design an offline-first field agent: local state machine, durable sync queue, conflict resolution, and honest ways to measure latency and battery.

14 min read · 16 July 2026

GraphQL vs REST vs tRPC: 2026’s API fight

Compare GraphQL, REST and tRPC on caching, type safety, debugging and cost, plus a scoring framework and failure modes for each.

13 min read · 9 June 2026