Out of scope
Short URL generation process
Estimate the scale of the system you are going to design...
short url character limit:
short URL creation
short URL redirection requests
storage
support 62^n chars. n=7 means 3.5T possible hashes. n = 5 means 916 million possible hashes. go with length 5.
Define what APIs are expected from the system...
HTTP 2
Defining the system data model early on will clarify how data will flow among different components of the system. Also you could draw an ER diagram using the diagramming tool to enhance your design...
DB Schema (SQL)
Primary - Secondary replication
Analytics
You should identify enough components that are needed to solve the actual problem from end to end. Also remember to draw a block diagram using the diagramming tool to augment your design. If you are unfamiliar with the tool, you can simply describe your design to the chat bot and ask it to generate a starter diagram for you to modify...
Short URL creation
Short URL redirection
Explain how the request flows from end to end in your high level design. Also you could draw a sequence diagram using the diagramming tool to enhance your explanation...
See Diagram
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...
scalability & fault-tolerance
have a in-memory cache in front of the short URL DB to serve both workflows
employ primary-secondary replica for the DBs for performance and fault tolerance
short URL service is stateless = horizontal scaling and fault-tolerance
Load balancer can goto any of the short URL service instances, say via round robin for simplicity
Explain any trade offs you have made and why you made certain tech choices...
DB - SQL vs NoSQL
Try to discuss as many failure scenarios/bottlenecks as possible.
Failure scenarios have backup:
short URL service = stateless, horizontally scalable (= backups)
short URL DB Cache = configure for replication
short URL DB = replicated
Analytics DB = replicated
What are some future improvements you would make? How would you mitigate the failure scenario(s) you described above?