System Design · ByteDance · Easy
Design a URL shortening service (similar to TinyURL) that takes a long URL and produces a compact short link. When someone opens the short link, the service should resolve it and redirect the browser to the stored long URL. Your design should include: Public APIs for creating and resolving shortened links. A short identifier format that is reasonably compact, for example 6 to 10 characters, and unique. A strategy for handling collisions when keys are generated by hashing or…
Checking your access…