Kubai Kevin

23 articles tagged Performance

When velocity is hard to measure: evaluating engineering…

Velocity measures capacity, not output. Build a three-layer evidence portfolio—delivery, stability, outcome—and compute it from data you already have.

14 min read · 25 October 2026

Audit logs: compliance vs performance

How to design audit logging that survives crashes and preserves per-entity order without wrecking p99 latency, plus how to measure the overhead.

13 min read · 20 September 2026

Memory Systems for Production Agents

How in-memory stores, caches, and stateful services leak context in production agents, plus code, failure modes, and instrumentation to measure it yourself.

11 min read · 15 September 2026

Why ML Models Drift After Deployment

Offline validation rarely matches production traffic. Learn the evaluation gap, how to measure drift, and concrete checks to add before your next deploy.

16 min read · 11 September 2026

Why platform metrics lie

Aggregate p99 and request counts hide regional variance, cost attribution gaps, and failure modes. Here is how to build a composite platform metric.

12 min read · 8 September 2026

Audit logs that scale: skip the 3AM fire drills

How to design audit log pipelines that satisfy auditors and engineers: immutable event streams, hash chains, tiered retention, and a decision checklist.

16 min read · 17 August 2026

Why your multi-agent system degraded slowly

Multi-agent systems can lose p99 responsiveness while every agent stays healthy. Here is how payload creep, queueing and retries compound, and how to measure it.

14 min read · 9 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

Audit logs: ship them fast, keep them forever

Design an audit log pipeline that separates durability from searchability, with tiered retention, integrity hashing, and a cost model you can verify.

14 min read · 6 July 2026

Audit trails: ImmutableDB vs DynamoDB Streams

Compare append-only hash-chained logs with DynamoDB Streams for audit trails: replay, tamper evidence, cost model, and a decision checklist.

15 min read · 4 July 2026

Starlink 4G fallback: serve pages under 800ms

How to build a streaming HTML shell, small client bundle and edge cache that keeps TTFB under 800ms on 4G, satellite and low-end Android devices.

13 min read · 26 June 2026

Postgres 17 buried Redis, S3, cron

How to evaluate Postgres 17 as a cache, scheduler and blob store, with measurement steps, failure modes and a decision checklist.

11 min read · 26 June 2026

Log audit costs without breaking compliance

Compare PostgreSQL and ClickHouse for audit logging: write amplification, query latency, retention, cost modelling, and a decision checklist.

13 min read · 22 June 2026

Resize Images at the Edge: A CloudFront and Lambda Guide

Build an on-the-fly image resizing pipeline with CloudFront, Lambda@Edge, S3 and Terraform, including streaming, format negotiation and observability.

13 min read · 18 June 2026

Next.js 15 vs Remix vs SvelteKit: 2026 choices

A practical comparison of Next.js, Remix and SvelteKit: routing and data contracts, bundle measurement, caching pitfalls, and a decision checklist.

13 min read · 16 June 2026

Build in public without burning out

A practical framework for controlled transparency: what to publish, what to withhold, how to measure the cost, and when the standard build-in-public advice fails.

11 min read · 16 June 2026

React 19 Compiler: What It Rewrites and Where It Breaks

How the React 19 compiler rewrites components, where it silently changes behavior, how to verify its output, and when manual memoization is the safer choice.

11 min read · 15 June 2026

Container Build Caching: What Actually Speeds Up CI

How container build caching works, why cache keys invalidate, and how to measure hit rate and cost before choosing a cache backend.

13 min read · 14 June 2026

Cutting Client Bundle Size with React Server Components

How React Server Components move dependency weight off the client, with a worked migration, a measurement method, and the failure modes that bite in production.

13 min read · 13 June 2026

Tool calls under load: async batch vs fire-and-forget

Compare async batch and fire-and-forget tool-calling patterns: when each fits, how to instrument latency and queue depth, and how to pick a batch size.

16 min read · 13 June 2026

Build a search system in 2026: semantic, keyword

How to build a hybrid search service with PostgreSQL, pgvector, and Redis: schema, keyword and semantic queries, reranking, caching, and how to measure recall.

13 min read · 10 June 2026

Soft deletes fail: what breaks first

Soft deletes leak into every query and bloat indexes. Here is how to measure the damage and move to a tiered live/archive/cold lifecycle.

13 min read · 9 June 2026

RAG pipelines: 4 silent prod killers

A practical guide to the silent failure modes that break RAG pipelines at scale: tokenizer drift, GPU fragmentation, index skew, and cache stampedes.

13 min read · 8 June 2026