Aryan Hamedani
I design, refactor, and operate production distributed systems: 80-app Django monoliths, live PostgreSQL cutovers, Go/Kafka messaging pipelines, and multi-tenant Kubernetes clusters, built with verification-first, agent-accelerated workflows. This site is my engineering log: postmortems, architecture notes, and small Linux and backend tools.
## 01 /SELECTED SYSTEMS
all systems (4) →Three Silent Failure Modes of Celery -P gevent + Django + PostgreSQL
Why prefork instincts break under greenlets: boot-time DB registry races, hard time_limit poisoning libpq wire state, and DB-backed result stores wedging acks_late workers on primary restarts.
How Monotonic State Guards + ORDER BY updated_at Starved 84,000 Messages
A production failure analysis in Go, Kafka, and ClickHouse ReplacingMergeTree: why write-gated timestamps break round-robin polling, and how an upstream TTL purge turned monotonic state weights into a permanent corruption ratchet.
Eliminating Write Amplification & Row-Lock Convoys on a 49 GB PostgreSQL Table
How Django's bulk_update() CASE WHEN explosion, unleased 'idempotent' webhook retries, and a hidden 2.6 GB varchar_pattern_ops index generated 48% of primary WAL, and how we fixed all three.
Adopting 54 Drifted Production Kubernetes Workloads into GitOps Without Downtime
Closing the kubectl diff and Argo CD blind spot for hand-edited live fields, solving the Kubernetes $(POD_IP) Secret-expansion trap, and enforcing a trigger-only CI-to-GitOps security boundary across 54 live workloads.
## 02 /WRITING
Why Stacking Shared and Per-Actor DRF Throttles Causes Self-Inflicted DoS
How Django REST Framework's APIView.check_throttles() drains shared rate-limit buckets even when a stricter per-IP or per-phone throttle rejects the request, and the two-phase post-send fix.
Uniform Random Sampling Over a 110M-Row PostgreSQL Table
Why ORDER BY random() strands jobs at 77% selectivity, why TABLESAMPLE SYSTEM introduced 0.53 total-variation distance bias on a clustered heap, and how generate_series random-PK probing with adaptive overdraw fixed it in ~17s.
Dual-Write Migrations Without Stopping Production
Practical lessons from moving live Django domains off MongoDB onto PostgreSQL using feature flags, mixed-ID resolvers, and continuous reconciliation.
## 03 /OPEN SOURCE
full catalog (10) →Polymorphic, secure-by-default JWT authentication for Django REST Framework.
Interactive TUI and scriptable CLI to excavate, search, and mass-extract structured content and media from WordPress REST APIs.
Run a second OpenVPN tunnel inside a container as a local HTTP CONNECT and SOCKS5 proxy with a kill switch.
36 Precision Night Cockpit themes inspired by the Porsche 911 (992.2), OKLCH-calibrated and WCAG AA verified.
Native, theme-following system monitor plugin for the Omarchy Linux bar covering CPU, memory, temps, GPU, network, disk, power, and processes.
Copy any code block, reply, prompt, command, or turn range from a Claude Code conversation in two keystrokes.