Kubai Kevin

53 articles tagged Aws

Multi-region active-active: the hidden costs

Active-active across AWS, Azure and Google Cloud is a distributed-systems build, not a product. Here are its real costs and failure modes.

17 min read · 15 November 2026

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 · 15 November 2026

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 · 13 November 2026

WAF and bot management: what they miss

WAFs and bot managers filter known-bad requests, not business logic. Map blind spots, tune rules safely, and add application-layer controls.

16 min read · 9 November 2026

Envelope encryption with cloud KMS: key rotation traps

How envelope encryption with cloud KMS breaks during key rotation, why wrapped data keys and key IDs must travel with ciphertext, and how to test it.

12 min read · 6 November 2026

Drift detection: the plan that lies

Terraform plan only reports drift a provider reads back. Build observe-classify-remediate pipelines that catch out-of-band changes safely.

16 min read · 26 October 2026

PCI DSS architecture: 12 requirements that matter

Map PCI DSS requirements to concrete architecture decisions: CDE boundary, envelope encryption and key separation, immutable logging, CI/CD controls, and scope reduction.

14 min read · 19 October 2026

DuckDB in production: when it replaces a warehouse

When an embedded columnar database beats a cloud warehouse for analytics, how to size it, and the failure modes that decide the boundary.

14 min read · 30 September 2026

Chaos engineering without an SRE team

How to run controlled fault injection in CI without a dedicated SRE team: scoping, kill switches, instrumentation, and failure modes to avoid.

14 min read · 30 September 2026

Agent versioning: the contract you forgot

Agents expose tool schemas and output shapes as a public interface. Learn how to version that interface, migrate state, and avoid silent caller breakage.

13 min read · 28 September 2026

Tech debt: when half your stack is unfamiliar

A repeatable process for debugging, verifying and governing tools you didn't write, with baselines, contracts, environment measurement and tool cards.

14 min read · 26 September 2026

Agentic AI cost control: 7 tools, one backfire

How to control agentic AI spend: ground-truth billing data first, attribution second, and why LLM optimizers over billing data backfire.

15 min read · 19 September 2026

Scope agent permissions per task

Most agent permission models fail because credentials are scoped to the agent, not the task. Here is how to issue short-lived, task-scoped tokens and what to measure.

20 min read · 19 September 2026

Mobile money agents: when M-Pesa API fails

Mobile money APIs return pending, then settle asynchronously. Learn to poll, deduplicate callbacks, and reconcile orphaned transactions.

14 min read · 18 September 2026

Spot instances vs on-demand for AI experiments

How spot and on-demand GPU instances differ on interruption handling, effective throughput, and the spend threshold where spot engineering pays off.

13 min read · 18 September 2026

AI Experimentation: Guardrails, Not Gates

How to replace a centralized AI provisioning bottleneck with a self-service sandbox: least-privilege proxy, token budgets, tagging, and what to measure.

12 min read · 7 September 2026

Hybrid Cloud Routing: Cost-Speed Balance for SEA

How SEA teams route latency-sensitive traffic locally and bursty workloads to the cloud, with Nginx fallback config, failure modes, and cost checks.

13 min read · 4 September 2026

Durable Execution for Multi-Step Agent Workflows

Why cron and ad-hoc retries break multi-step agent workflows, and how durable execution runtimes model retries, idempotency, and compensation.

16 min read · 3 September 2026

IDP for AI: 2026 stack evolution

How to wire embedding model changes into an internal developer platform so dimension drift fails loudly instead of silently shipping broken indexes.

14 min read · 2 September 2026

Agent drift: why prod breaks without human checkpoints

Why agents pass staging and drift in production, and how to add confidence thresholds, escalation queues and compliance guards that make drift visible.

15 min read · 1 September 2026

Mobile-first AI fails you didn’t plan…

Mobile-first AI features fail on payload size, latency and device RAM, not model quality. A practical guide to measuring and fixing the network and device bottlenecks.

13 min read · 26 August 2026

Self-service is broken without AI ops

Self-service platforms fail on cognitive load, not RBAC. How to add pre-flight, mid-flight and post-flight guardrails with measurable results.

12 min read · 24 August 2026

Spot evictions: the retry logic that holds up

Spot evictions break naive retry logic. Learn how to decouple retries from instance lifecycle, add jitter, and avoid coordinated retry storms.

13 min read · 12 August 2026

African fintech agents: the compliance cliff most miss

How to design region-resident, queryable audit trails for autonomous fintech agents facing per-country latency, residency and retention rules.

10 min read · 12 August 2026

AWS CloudWatch Synthetics for AI pipelines

Build CloudWatch Synthetics canaries that exercise a full AI pipeline journey, not just an endpoint ping, and alarm on whole-flow failure.

13 min read · 10 August 2026

Offline-first money apps with DynamoDB Streams

Design an offline-first mobile-money sync pipeline on DynamoDB Streams: idempotency keys, conditional balance writes, DLQ handling, and how to measure it.

15 min read · 8 August 2026

Stopping a runaway polling agent from flooding your API

Diagnose and fix runaway agent API calls: bounded retries, capped backoff, idempotency keys, and volume alerts that catch spikes before the bill does.

15 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

Built a multi-agent system without LangGraph

Build a multi-agent research pipeline with Redis Streams, Step Functions retries and FastAPI, plus the failure modes that matter and how to measure them.

13 min read · 27 July 2026

Poolers won’t save your serverless DB

Why poolers add latency and cost to bursty serverless workloads, and how multiplexing, the Aurora Data API, and direct connections compare.

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

Stabilize multi-model agent routers: six production rules

Six rules for multi-model agent routers: bounded concurrency, idempotency keys, timeouts, observability, and how to measure each one yourself.

15 min read · 15 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

Agent Governance: OPA vs Kyverno in Kubernetes

Compare OPA and Kyverno for agent governance in Kubernetes: policy language, latency, audit trails, and a decision checklist.

11 min read · 3 July 2026

Prompt injection’s hidden AWS tax

How unsanitized prompt templates leak instructions, trigger retry storms, and inflate token bills — plus concrete hardening steps and code.

12 min read · 3 July 2026

AI-proof your mid-level salary

Tracking commits and story points keeps engineers in the layer AI automates best. Here is how to measure p99 latency, cost per request and error rate instead.

15 min read · 1 July 2026

9 Vibe coding traps that break production code

Nine patterns that make AI-assisted prototypes fail under load, with the instrumentation to catch each one before it reaches production.

11 min read · 1 July 2026

Choosing an AI Pair Programming Setup: A Practical Guide

How to evaluate AI pair programming tools by latency, signal-to-noise, cost, and privacy, with configs, failure modes, and a decision checklist.

15 min read · 29 June 2026

AWS costs for Nairobi SaaS: 2026 bill split

How to split an AWS bill by service for a Nairobi-facing SaaS: cost drivers, measurement commands, and a decision checklist for region choice and DR.

13 min read · 28 June 2026

AWS Local Zones vs LocalStack: AI microservices in

Compare AWS Local Zones and LocalStack for AI microservices: latency, cost, compliance, and a decision framework, plus how to measure p99 at the edge.

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

AWS Cost Levers: Savings Plans vs. Compute Optimizer

A practical comparison of AWS Savings Plans, Compute Optimizer and Cost Anomaly Detection, with a decision framework and a 30-minute first step.

12 min read · 25 June 2026

Choosing AI Coding Assistants for Cloud-Heavy Stacks

A practical framework for evaluating AI coding assistants on cloud-heavy stacks: what to measure, how to test, and which failure modes matter.

11 min read · 23 June 2026

Defending APIs Against Amplification, Stuffing and Smuggling

How cache-stampede amplification, credential stuffing and HTTP/2 request smuggling work, plus edge admission, idempotency keys and circuit breakers that blunt them.

13 min read · 20 June 2026

Serverless Cold Starts: Cost Levers and How to Measure Them

Cold starts are a cost and consistency problem, not just latency. Learn how to measure latency-per-dollar and tune concurrency, memory, and architecture.

12 min read · 20 June 2026

Tiered API abuse defense: match cost to attacker economics

Five API abuse patterns that inflate cloud bills, why edge-only blocking fails, and how to build tiered defenses with measurable cost-per-request targets.

11 min read · 20 June 2026

Regulations forced better APIs: the 2026 fintech

Why payment APIs need durable state machines, explicit retry policies, and status endpoints that survive restarts — and when the old synchronous playbook still works.

13 min read · 20 June 2026

Webhook Delivery: Retries, Idempotency, and Durability

Design reliable webhook ingestion with durable buffering, idempotency keys, bounded retries, and circuit breakers, plus how to measure each guarantee.

11 min read · 19 June 2026

Replace .env with these in 2026

Why .env files fail in production and how managed secret stores, vault agents and encrypted-file workflows replace them, with rotation and caching tradeoffs.

15 min read · 18 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

Pricing SaaS tools by real cost, not seat count

A practical method for pricing usage-based SaaS: instrument cost per request, model support burden, guard free tiers, and replay traffic before publishing.

13 min read · 15 June 2026

AI rollouts live or die by flags

How to gate model versions, prompts, and safety filters behind feature flags, with a Lambda evaluator, SDK, timeout handling, canaries, and tests.

14 min read · 12 June 2026

Designing USSD fintech flows that survive live networks

A practical guide to building reliable USSD fintech flows on AWS: state machines, 160-character screens, carrier SLAs, idempotency, and latency instrumentation.

17 min read · 11 June 2026