Skip to the content.

URL Shortening Service

Summary

overview summary

Requirements

Capacity Estimation and Constraints

System APIs

createUrl

deleteUrl

Database design

Basic System Design and Algorithm

Encoding actual URL

Generating keys offline

UUID

Replace KGS with UUID.

Data Partitioning and Replication

Cache

Load Balancer (LB)

DB Sweeping

A separate Cleanup service can run periodically to remove expired links from our storage and cache.

Telemetry

Statistics about the system: how many times a short URL has been used

Security and Permissions