Okiemute Egokiphovwen

blog

(01)

Technical essays on engineering, the mathematics behind everyday code, and building software with care.

#distributed-systems#mathematics#typescript
image unavailable — set NEXT_PUBLIC_CLOUDINARY_CLOUD_NAME

The Pigeonhole Principle Is Why Your ID Generator Breaks

A short random ID looks unique until traffic catches up with the math. Here is the birthday-bound calculation that tells you when, and how to size an ID space so it never happens.

August 20, 2026 · 6 minRead now