Advanced
System Design
Q82 / 100
In designing a URL shortener (like bit.ly) at scale, what is a key consideration for generating unique short codes across distributed servers?
Correct! Well done.
Incorrect.
The correct answer is A) Using techniques like pre-generated unique ID ranges per server, distributed ID generators (e.g., Snowflake-style IDs), or base62 encoding of a globally unique counter to avoid collisions without a central bottleneck
A
Correct Answer
Using techniques like pre-generated unique ID ranges per server, distributed ID generators (e.g., Snowflake-style IDs), or base62 encoding of a globally unique counter to avoid collisions without a central bottleneck
Explanation
Distributed ID generation schemes (e.g., assigning ID ranges to each server, or time-based IDs like Snowflake) avoid collisions and central bottlenecks that a single shared counter or naive random generation would create at scale.
Progress
82/100