Loading...
We will need 2 API endpoints
The first endpoint will be the GET endpoint for fetching the URL shortener.
The second endpoint will be the POST endpoint to actually have the logic for the shortening the URL.
We can name the 2 endpoint as:
GET /get-short-url/:
POST /build-URL shortner
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.
Deep dive into 2-3 key components. Explain how they work, how they scale, discuss tradeoffs, capacity, and any relevant algorithms or data structures.