LeetDezine Redis INCR is one of those solutions that looks perfect the first time you see it. Atomic counter increments. Every call returns a unique integer.

Base62-encode it and you have a short code — zero collision checks, zero retries, no background service. It's cleaner than anything else on the board. So why does every serious URL shortener reject it? The answer has nothing to do with code