Loading…
While this loads — quick one
Every subscriber must get each event. A queue, or pub/sub?
Loading…
While this loads — quick one
Every subscriber must get each event. A queue, or pub/sub?
Loading the challenge…
While this loads — quick one
Every subscriber must get each event. A queue, or pub/sub?
A team is building a link shortener. A user pastes a long URL and gets back a short link; anyone who opens the short link is redirected to the original address. Every short link must carry a code that is unique across the whole system, and the service will hand out billions of them over time. The mappings from code to URL are tiny, never change once written, and are looked up far more often than they are created — a popular link can be opened thousands of times a second. Redirects have to feel instant even under that read load, while creating a link can be a little slower.
Every system design question opens with an account. Your design is scored the same way every time, with the reason behind each requirement, and your attempts are kept so you can see what you found hard.