Requirements
Functional Requirements:
first function req is that user should be able to paste the url
then we will give short result back
when they will click on short url they will be redirected to same webpage
Non-Functional Requirements:
- low latency
- multi tenant
- scalabele for large number of request
API Design
we will store the actual url in server data base and generate a shortend url which will give a token mapping to actual url
when user will rewuest for his actual url based on token matching we will find it out.
High-Level Design
Describe the overall system architecture. Identify the main components needed to solve the problem end-to-end. Use the diagramming tool to create a block diagram.
Detailed Component Design
Deep dive into 2-3 key components. Explain how they work, how they scale, discuss tradeoffs, capacity, and any relevant algorithms or data structures.