Design a URL Shortener
Redirects must be instant and codes must never collide. Where does each requirement live in your architecture?
لم يُترجم هذا التحدي إلى العربية بعد. أنت تقرأ النسخة الإنجليزية.
المهمة:Assemble an architecture that satisfies every requirement: entry through a load balancer, durable storage, cached hot reads, collision-free key generation, asynchronous analytics, no public database — within budget.
Snip.example, a fictional link service, expects about 100 redirects for every new link. Marketing wants click analytics, but analytics must never slow down a redirect. The infrastructure budget is 20 units.
المهمة: Assemble an architecture that satisfies every requirement: entry through a load balancer, durable storage, cached hot reads, collision-free key generation, asynchronous analytics, no public database — within budget.
أهداف التعلّم
- Translate requirements into components and connections.
- Separate the read path from the write path.
- Move non-critical work off the request path with a queue.
المحاكاةمحاكاة