Loading…
While this loads — worth knowing
Redis has data structures — sorted sets, counters, pub/sub. Memcached has plain keys and nothing else.
Loading…
While this loads — worth knowing
Redis has data structures — sorted sets, counters, pub/sub. Memcached has plain keys and nothing else.
Loading the challenge…
While this loads — worth knowing
Redis has data structures — sorted sets, counters, pub/sub. Memcached has plain keys and nothing else.
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.
Signing in is what lets the tool remember what you built and what you found hard. One challenge is free to try without an account.