Loading...
Write Path: User sends a long URL
-> Load Balancer -> App Server -> Gets unique ID from Counter Service ->Stores in DB -> Returns short link.
Read Path: User clicks short link -> Load Balancer -> App Server -> Checks Cache (Redis) -> If not found, checks DB ->Returns 301 (Permanent Redirect).
Deep dive into 2-3 key components. Explain how they work, how they scale, discuss tradeoffs, capacity, and any relevant algorithms or data structures.