//0x01—writing
Writing
Notes from production — payments, PostgreSQL, Redis, and the distributed-systems patterns that keep showing up.
Designing Idempotent Payment Systems
How to make M-Pesa Daraja callbacks safe to retry, reorder, and duplicate — without double-charging anyone.
#payments#go#postgresql
2 min read
Multi-Tenant SaaS in Go
Schema-per-tenant isolation, JWT scoped claims, and RBAC that doesn't need a database round trip to answer 'can this user do this?'
#go#multi-tenant#postgresql
2 min read
PostgreSQL Lessons From Production
EXPLAIN ANALYZE habits, partial indexes that actually get used, and running Alembic migrations without locking your tables.
#postgresql#performance
2 min read
Event-Driven Architecture With Pub/Sub
Decoupling order ingestion from analytics processing on GCP — and the partitioning decisions that keep BigQuery queries cheap.
#gcp#pub/sub#bigquery#event-driven
2 min read
Redis Beyond Caching
Pub/Sub for real-time kitchen displays, sliding-window rate limiting with INCR and EXPIRE, and session patterns that don't fight your auth model.
#redis#websockets#rate-limiting
3 min read