

Recent writing
- The Agent Was Interrupted. Should Its Work Disappear?
·9 min read
Agent swarm concurrency explained through an interactive lab: wound-wait, page-level commits, prefix-safe updates, and the limits of preserving reasoning.
- WAL, S3, and Postgres Branching: What AI Agents Can Safely Undo
·9 min read
How Lakebase-style Postgres separates WAL durability from page storage, and what branching means for agent isolation, cold reads, and recovery.
- Reliable Scheduled Jobs: Idempotency, Missed Runs, and Time Zones
·5 min read
Design scheduled jobs around durable occurrence identities, explicit catch-up rules, time-zone semantics, and recovery from partial business effects.
- AI Agent SSRF Prevention: Put URL Fetching Behind an Egress Policy
·5 min read
Design safe URL-fetching tools for AI agents using constrained destinations, redirect handling, connection-time enforcement, and bounded responses.
- Kafka Tombstones: Why a Compacted Topic Can Leave Stale Consumer State
·4 min read
Understand Kafka tombstone retention, stale materialized views, rebuild boundaries, and the recovery policy needed after a consumer misses a deletion.
- Prevent Double Booking with PostgreSQL Exclusion Constraints
·4 min read
Model booking conflicts with PostgreSQL ranges and exclusion constraints, then handle cancellation, retries, tenant boundaries, and payment failure explicitly.
- PostgreSQL work_mem: Budget for Concurrent Queries, Not One Fast Sort
·4 min read
Tune PostgreSQL work_mem using query plans, concurrent operators, parallel workers, and spill costs without turning a faster report into a memory incident.
- Sharded Postgres: Query Locality Is the Architecture Contract
·7 min read
How to evaluate sharded PostgreSQL: tenant locality, distributed query costs, connection budgets, snapshot guarantees, and failure policies.
- USB Explained: Enumeration, Endpoints, Transfers, and What Breaks
·7 min read
Understand how USB devices become usable: host control, descriptors, endpoints, transfer types, speed limits, and a practical debugging checklist.
- Database Credential Rotation: How to Replace Secrets Without Breaking Connection Pools
·6min
A rollout protocol for rotating database credentials across cached secrets, connection pools, workers, rollback windows, and emergency revocation.