Define the APIs expected from the system. This is your chance to analyze and define the read and write paths so that you can come up with the high-level design...
it returns 302 redirect request
Read Flow:
When a client makes a request to access a shortened URL, the request is first resolved via DNS to reach the appropriate service endpoint.
The request is routed through an API Gateway, which is responsible for:
The API Gateway forwards the request to the application server.
The application server performs:
Write Flow
The client sends a request to create a short URL via the API Gateway.
The API Gateway performs:
The request is forwarded to the application server.
The application server:
A success response containing the shortened URL is returned to the client.
Deep dive into 2-3 key components. Explain how they work, how they scale, discuss tradeoffs, capacity, and any relevant algorithms or data structures.