Loading...
Endpoints:
Request
payload -
{
"url": "string:
"userid": "int:
}
Response:
payload:
{
"alias": "string:
}
Status: 200
Response:
Status: 301/302/307/308
Location: "
1 URL - 223 B ~= 256 B
Writes per day - 100K * 256 B ~= 25.6 MB
Writes per timeline - 25.6 MB * 5 * 365 ~= 40 GB
Indexing + Repication + Sharding ~= 2-3x ~= 120 GB
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.