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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly