Short URL And Pastebin Flashcards
1
Q
Why using monotonic increasing number is a bad idea for shorten URL
A
You have to maintain a counter and lock it for each single request to avoid race conditions.
Why using monotonic increasing number is a bad idea for shorten URL
You have to maintain a counter and lock it for each single request to avoid race conditions.