Kubai Kevin

Backend engineering, AI tooling and developer careers

Explainers on backend engineering, AI tooling and developer careers: mechanisms, failure modes and decision checklists. Drafted with an LLM pipeline; figures are illustrative.

Articles are drafted by an automated LLM pipeline under the editorial direction of Kubai Kevin, a software developer based in Nairobi, Kenya. Topics are drawn from a curated list of recurring backend, AI and career themes; the pipeline is gated by hard quality controls (minimum length, duplicate detection, boilerplate rejection). Individual line-by-line human review is not performed on every post before publication — the author maintains the quality gates and corrects articles when readers report issues. Full AI content policy → · Editorial process →

Latest Posts

Dependency confusion: npm vs PyPI defenses

How npm scopes and PyPI's flat namespace change dependency confusion risk, with config examples and a lockfile audit script.

12 min read

Python Security Containers

Normalize vs Denormalize: The Read/Write Split

Denormalize a relational schema only when reads vastly outnumber writes and you can name the sync mechanism.

12 min read

Payments Databases

Internal tools: why devs ignore them

Internal tools fail on latency, auth friction, and missing CLI paths. A step-by-step guide to API-first design, conflict handling, and adoption checks.

13 min read

Python API Design Reliability

endpoint you forgot to threat model

Threat model a new API endpoint before it ships: signature checks, body limits, idempotency, and the trust boundary table that surfaces design changes…

12 min read

Security Messaging API Design

Frontend to backend: stop learning frameworks

Frontend to backend transition: why learning a framework first fails, and the partial-failure, idempotency, and concurrency instincts you actually need.

12 min read

Python Payments Distributed Systems

Background jobs: why restarts lose work

Background jobs lose work on restart because delivery is not execution. Learn the at-least-once model, idempotency keys, and the ack-after-commit mistake.

13 min read

Messaging Distributed Systems

Your health check is lying…

Your readiness probe returns 200 but users see 500s.

14 min read

Testing Kubernetes Reliability

Codebase due diligence: read the tests first

How to read tests, CI config, dependency manifests and git history to judge a codebase's health before accepting a job offer.

13 min read

Testing Payments Engineering Careers

Hallucination detection: metrics that mislead

Why detector accuracy hides failures under class imbalance, annotation noise and drift, and how to rebuild evaluation around precision, recall and cost.

12 min read

LLMs

Encryption at rest vs in transit: the gap

Encryption at rest vs in transit: where the guarantees break. Learn the tradeoffs, failure modes, and a 30-minute audit to enforce TLS in PostgreSQL.

11 min read

AWS Security PostgreSQL

Structured outputs: schema vs. reality

Here is a minimal, runnable validator using Pydantic v2, which is the de facto schema library in the Python ecosystem and supports JSON Schema generation.

11 min read

LLMs Python

Secure file uploads: where pipelines break

Secure file upload pipelines fail at the same six points. Spot the Content-Type trust mistake, path traversal, and origin misconfig before a review does.

13 min read

AWS Python Security

Backpressure in Streaming Pipelines: Design and Failure Modes

How bounded queues, pause/resume, and honest lag metrics prevent streaming consumers from buffering themselves to death.

16 min read

Java Messaging Reliability

Graceful shutdown: SIGKILL is not the enemy

Why SIGKILL isn't the real problem: design workers around a shutdown deadline, atomic checkpoints and idempotent side effects.

14 min read

Kubernetes Distributed Systems

CSRF and SameSite cookies: what breaks

How SameSite=Lax, Strict and None change CSRF exposure, which attacks survive the default, and how to verify cookie behavior in a real browser.

13 min read

Security Payments

On-call without derailing projects

On-call rotations erode project delivery when alerts are noisy and capacity isn't planned.

13 min read

Reliability

Object storage lifecycle policies explained

How lifecycle rules transition, expire and delete objects on S3, GCS and Azure, with minimum durations, versioning traps and verification steps.

13 min read

AWS Azure Google Cloud

RBAC vs ABAC: pick by blast radius

RBAC and ABAC fail in opposite directions. Decide which model carries each check by measuring what a wrong allow costs, not by maturity.

14 min read

AI Agents Identity & Access

Human-in-the-loop: when agents need a human veto

Where to place a human veto for AI agents, how to enforce it in code with signed approval tokens, and how to detect rubber-stamping.

14 min read

LLMs Payments AI Agents

Designing multi-region active-active systems: costs and trade-offs

A technical guide to the real costs of multi-region active-active: data conflicts, replication lag, failover measurement, and a decision checklist.

17 min read

AWS Azure Google Cloud

Python deps: uv vs Poetry vs pip-tools

Compare uv, Poetry and pip-tools by resolver, lockfile and environment model, with a worked example, failure modes and a decision checklist.

12 min read

AWS Python Containers

Your platform team is too big

Small engineering orgs often staff a platform team before scoping the platform as a product. Here is a staffing test, a written boundary, and paved roads.

18 min read

Terraform Reliability Engineering Careers

Distributed locks: safe only with fencing

A lease can expire while its holder is still running. Fencing tokens, enforced by the protected resource, are what make a distributed lock safe.

17 min read

AWS Redis PostgreSQL

Virtual threads: what changes and what doesn't

Virtual threads make thread-per-request cheap but do not raise downstream capacity. How to check pools, pinning, thread-locals, and measure the effect.

14 min read

Java Redis Messaging

Browse older posts →