// notes
Notes
Write-ups of real systems I have built or worked on with my team. Names and internal details are left out; the engineering is not.
-
// Integrations · Python
Vendor integrations as data
Running vendors' own Postman collections in production with a trimmed postpy2 runner, normalizing responses into outcomes, caching "not found", and ordered vendor failover.
-
// Security · Redis
Rate limiting what is asked, not who asks
An enumeration scrape walked past per-IP limits by rotating addresses. Counting distinct identifiers per series in Redis sets stopped it, plus a spend cap and the fixed-window bug.
-
// Security · Privacy
Encrypting PII columns without losing search
Randomized encryption for storage, a keyed-hash blind index for exact-match lookups, key rotation, and what you give up, in a multi-tenant Django app.
-
// PostgreSQL · Performance
Clearing 48 slow Postgres queries in two weeks
How a team of five ranked and fixed every slow query in a Django monolith: backward index scans, the LIMIT 21 trap, EXISTS over joins, and moving dashboards to a read replica.
-
// Distributed systems
Sending every message once with Postgres leases and fencing tokens
How retries, broker redeliveries and a recovery sweeper share one send claim without sending the same SMS or email twice.