Whenever you're ready, walk me through how you'd approach this.
How would you compress a URL, and how do URL shorteners work end to end?
Explain the difference between true compression and generating a compact identifier. Cover key generation, persistence, redirects, expiration, collisions, abuse protection, caching, availability, and observability. Discuss where an ML component could help, such as malicious URL detection, without making it part of the correctness-critical redirect path.