A URL shortener has 1000 redirects for every 1 new short URL creation. What is the most important design implication?

6 year of experience System Design URL Shortener Bitly URL Shortener Bitly Medium Single Correct Pyq Inspired

Question

A URL shortener has 1000 redirects for every 1 new short URL creation. What is the most important design implication?

A
Optimize the read path and add caching
B
Optimize the write path 1000 times more than the read path
C
Use the database only as an append-only log
D
Avoid caching because URLs rarely change

Explanation

The system is read-heavy, so redirect path optimization and caching become critical.

URL shorteners are usually heavily skewed toward reads because users click existing short links far more often than they create new ones. This means the redirect path must be extremely fast and scalable. Caching popular short_code to long_url mappings, indexing the short_code column, and scaling read services are more important than over-optimizing writes early.

Related Questions

Where should a URL shortener cache frequently accessed short_code to long_url mappings for...

URL Shortener Bitly

View Question

Why should a URL shortener maintain an index or primary key on the short_code column?

URL Shortener Bitly

View Question

A short URL has expired. What should the redirect service ideally return when the short co...

URL Shortener Bitly

View Question

Why is Base62 commonly used for short URL codes instead of Base64?

URL Shortener Bitly

View Question

Which short-code generation strategy best guarantees uniqueness without collision checks f...

URL Shortener Bitly

View Question

Why is using the first few characters of the long URL as the short code a bad approach?

URL Shortener Bitly

View Question

Related Resources

Related learning resources will appear as content grows.