Total sorage needed is 36.5TB
For Url shorteining service we primarly need two API
For the high level design, mapping of
Dig deeper into 2-3 components and explain in detail how they work. For example, how well does each component scale? Any relevant algorithm or data structure you like to use for a component? Also you could draw a diagram using the diagramming tool to enhance your design...
While URl redirecting we can have 2 Status codes. response cde 301 and 302. with response code 301 the browser will permanently store the response in the cache so any subsequent request for the same URL will niot be sent to the shortening service. For 302 response code the browser "temporarily stores the result" hemce each reque4st is redirected to long URL increasing the latency.
Try to discuss as many failure scenarios/bottlenecks as possible.