<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"><channel><title>Aryan Hamedani | Writing</title><description>Technical essays and field notes on backend architecture, databases, reliability, and engineering management.</description><link>https://aryanhamedani.dev/</link><language>en</language><item><title>Why Stacking Shared and Per-Actor DRF Throttles Causes Self-Inflicted DoS</title><link>https://aryanhamedani.dev/writing/drf-stacked-throttles-self-inflicted-dos/</link><guid isPermaLink="true">https://aryanhamedani.dev/writing/drf-stacked-throttles-self-inflicted-dos/</guid><description>How Django REST Framework&apos;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.</description><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate><category>django</category><category>drf</category><category>security</category><category>rate-limiting</category></item><item><title>Uniform Random Sampling Over a 110M-Row PostgreSQL Table</title><link>https://aryanhamedani.dev/writing/uniform-random-sampling-110m-row-postgres/</link><guid isPermaLink="true">https://aryanhamedani.dev/writing/uniform-random-sampling-110m-row-postgres/</guid><description>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.</description><pubDate>Tue, 24 Nov 2026 00:00:00 GMT</pubDate><category>postgresql</category><category>sql</category><category>performance</category><category>algorithms</category></item><item><title>Dual-Write Migrations Without Stopping Production</title><link>https://aryanhamedani.dev/writing/dual-write-migrations-without-downtime/</link><guid isPermaLink="true">https://aryanhamedani.dev/writing/dual-write-migrations-without-downtime/</guid><description>Practical lessons from moving live Django domains off MongoDB onto PostgreSQL using feature flags, mixed-ID resolvers, and continuous reconciliation.</description><pubDate>Wed, 18 Nov 2026 00:00:00 GMT</pubDate><category>django</category><category>postgresql</category><category>migrations</category><category>architecture</category></item></channel></rss>