Kubai Kevin

30 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

Core Web Vitals: what actually moves the needle

A decision framework for Core Web Vitals: read field distributions, find fixed costs that hit the slow tail, and verify changes with segmented RUM.

16 min read · 7 October 2026

SLOs for agentic features: beyond latency

Define agent SLOs on task success, tool-call validity and clean termination, instrument them with OpenTelemetry, and alert on error-budget burn.

15 min read · 6 October 2026

Multi-agent handoffs: the latency tax nobody measures

Multi-agent pipelines pay a latency tax at every handoff. Here is how to measure serialisation, transport and re-prompting cost, and what to fix first.

11 min read · 29 September 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

Zero-trust AI: skip the latency tax

How to keep per-request identity and least privilege in inference services while moving handshakes and policy evaluation off the hot path.

14 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

AI errors hide in plain latency

Why token counts and GPU utilization miss user-visible AI degradation, and how to instrument end-to-end p95/p99 latency and error rate instead.

10 min read · 21 August 2026

WebSockets vs Server-Sent Events: latency over 3G

Compare WebSocket and Server-Sent Events for real-time features on 3G/4G: reconnect behaviour, proxy timeouts, framing overhead, and how to measure each.

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

Latency trade-offs: Nairobi teams beat global AI providers

Why AI teams serving East African users weigh total cost of interaction, not raw p99, and how to measure the trade-offs yourself.

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

AI in slow networks: why models flop where data costs rise

How to cut payload size, round-trips and cost for AI features on 2G/3G networks, with a worked ASR example, failure modes and a measurement checklist.

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

5 ways to find hidden latency before production

Five practical ways to surface hidden latency before production: traffic replay, synthetic probes, profiling diffs, query plan diffs, and dependency latency budgets.

12 min read · 30 June 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