---
title: "Usman Khan (@usmankhan-io) | Hashnode"
description: "Fractional CTO & Founder at Zentiq Labs | B2B SaaS Architecture, Distributed Systems & AI Integration | ctousman.com"
url: "https://hashnode.com/@usmankhan-io"
---

@usmankhan-io

# Usman Khan

@usmankhan-io · Karachi, Pakistan · Joined September 2026

Fractional CTO & Founder at Zentiq Labs | B2B SaaS Architecture, Distributed Systems & AI Integration | ctousman.com

### [Foreign Key Cascade Deletes: Un-Indexed FKs, Slow Cascades, and Lock Contention in PostgreSQL](https://ctousman.hashnode.dev/postgresql-foreign-key-cascade-locks-intent-lock-contention?utm_source=hashnode&utm_medium=feed)

Why an un-indexed foreign key turns one cascade delete into a long lock-holding transaction, and how to purge safely instead

8 min read · [ctousman.hashnode.dev](https://ctousman.hashnode.dev/postgresql-foreign-key-cascade-locks-intent-lock-contention?utm_source=hashnode&utm_medium=feed)

[2](https://hashnode.com/posts/postgresql-foreign-key-cascade-locks-intent-lock-contention/6ae38ae7f776a9cc0ea73394) [Oct 29](https://hashnode.com/posts/postgresql-foreign-key-cascade-locks-intent-lock-contention/6ae38ae7f776a9cc0ea73394)

### [The Anatomy of CVE-2024-4577: Why You Shouldn’t Abandon PHP Over a CGI Best-Fit Code Page Exploit](https://ctousman.hashnode.dev/cve-2024-4577-php-cgi-argument-injection-exploit-fix?utm_source=hashnode&utm_medium=feed)

How a Windows best-fit code page quirk bypassed PHP’s CGI argument escaping, and why it isn’t a reason to leave PHP

6 min read · [ctousman.hashnode.dev](https://ctousman.hashnode.dev/cve-2024-4577-php-cgi-argument-injection-exploit-fix?utm_source=hashnode&utm_medium=feed)

[Oct 24](https://hashnode.com/posts/cve-2024-4577-php-cgi-argument-injection-exploit-fix/6adceb1d9eb76ebdae53b465)

### [Kubernetes Pod Churn & Node Thrashing: Ephemeral Storage Exhaustion and Eviction Cascades](https://ctousman.hashnode.dev/kubernetes-pod-churn-ephemeral-storage-node-thrashing?utm_source=hashnode&utm_medium=feed)

How uncapped scratch files trigger DiskPressure evictions and autoscaler thrashing, and the limits and kubelet settings that stop it

7 min read · [ctousman.hashnode.dev](https://ctousman.hashnode.dev/kubernetes-pod-churn-ephemeral-storage-node-thrashing?utm_source=hashnode&utm_medium=feed)

[Oct 15](https://hashnode.com/posts/kubernetes-pod-churn-ephemeral-storage-node-thrashing/6ad13d8dc382487e950c7978)

### [Distributed Idempotency Key Collisions: Clock Skew Mutex Leaks, Race Conditions, and Double-Execution Vulnerabilities](https://ctousman.hashnode.dev/distributed-idempotency-key-collisions-clock-skew-race-conditions?utm_source=hashnode&utm_medium=feed)

Why SET NX EX locks still double-charge customers, and how ownership-checked Lua scripts and database constraints stop it

8 min read · [ctousman.hashnode.dev](https://ctousman.hashnode.dev/distributed-idempotency-key-collisions-clock-skew-race-conditions?utm_source=hashnode&utm_medium=feed)

[Oct 15](https://hashnode.com/posts/distributed-idempotency-key-collisions-clock-skew-race-conditions/6ad13ac2342b56051071ed91)

### [PostgreSQL JSONB Write Amplification: TOAST Chunk Fragmentation and Unseen I/O Thrashing](https://ctousman.hashnode.dev/postgresql-jsonb-write-amplification-toast-fragmentation?utm_source=hashnode&utm_medium=feed)

Why a one-key jsonb\_set() rewrites the whole document, and how to stop JSONB from flooding your WAL

6 min read · [ctousman.hashnode.dev](https://ctousman.hashnode.dev/postgresql-jsonb-write-amplification-toast-fragmentation?utm_source=hashnode&utm_medium=feed)

[Oct 13](https://hashnode.com/posts/postgresql-jsonb-write-amplification-toast-fragmentation/6ace56ba75b77f8151648cd5)
