Tagged “Id-Generation”
2 articles with this tag.
- URL ShortenerA complete URL shortener design using the 18-step framework: requirements, capacity calculations, API, base62 short codes from a unique ID versus hashing, 301 versus 302 redirects, a read-heavy architecture with caching, key-value storage, analytics through a queue, abuse prevention and trade-offs.
- Unique ID generationGenerating unique identifiers at scale: requirements (unique, sortable, 64-bit, fast), database auto-increment and multi-master step, UUID v4 and v7, ticket servers and range allocation, and Twitter's Snowflake layout with timestamp, machine and sequence bits — clock rollback handling and a Java implementation.