Link: Design and Deployment of TinyURL
Question: Upon successful allocation of a custom short URL, how does the system modify its records?
Please answer these question and try to answer the actual question with detailed explanation
When will the generated base 10 unique ID is moved to unused list ? and by which service / application?
When will the base 10 Unique ID is moved from unused to used list ? and by which service / application?
What if a base 10 unique ID of a custom short URL is yet to be generated by one of the counters ?
On every unique ID generation, should the service check if this is used / unused ? Doesn’t it increase latency ?