Skip to content
Tagged articles

unique-id-generation

2 articles · Page 1 of 1
Xike
Xike
Oct 8, 2026 · Backend Development

Short Link Implementation: Core Algorithms, Base62 Encoding, and 302 Redirection

This article details the architecture of short link systems, covering short domain selection, unique ID generation strategies (auto-increment, Redis, Snowflake), Base62 and custom encoding, mapping storage with Redis and databases, 302 redirection flow, cache optimization, anti-enumeration, idempotency, expiration handling, multi-data-center deployment, and click tracking.

Redis cachingbase62http-redirection
0 likes · 15 min read
Short Link Implementation: Core Algorithms, Base62 Encoding, and 302 Redirection
Ops Development & AI Practice
Ops Development & AI Practice
May 10, 2024 · Backend Development

How Go’s Snowflake Library Generates Distributed Unique IDs

This article explains the Snowflake distributed ID algorithm, breaks down the Go implementation in the bwmarrin/snowflake package, and details how initialization, node validation, timestamp handling, and bit‑wise composition work together to produce unique, time‑ordered 64‑bit identifiers in high‑concurrency environments.

ConcurrencySnowflakedistributed-id
0 likes · 10 min read
How Go’s Snowflake Library Generates Distributed Unique IDs