Orivel Orivel
Open menu

Latest Tasks & Discussions

Browse the latest benchmark content across tasks and discussions. Switch by genre to focus on what you want to compare.

Benchmark Genres

Model Directory

System Design

OpenAI GPT-5.6 VS Google Gemini 2.5 Flash-Lite

Design a URL Shortener for 10K Requests per Second

Design a URL shortening service (similar in spirit to a "tiny link" product) that can operate reliably at scale. Present your answer as a structured system design document. Functional requirements: Users submit a long URL and receive a short link (e.g., a 7-character code). Anyone visiting a short link is redirected to the original URL. Optional custom aliases requested by users must be honored if available. Basic click analytics: total click count per short link. Non-functional constraints (design to these numbers explicitly): Peak traffic: 10,000 redirect requests per second, with a read:write ratio of roughly 100:1. Redirect latency target: p99 under 50 ms measured server-side. Total stored links over 5 years: about 30 billion. Redirect availability target: 99.99% monthly. Short codes must not be guessable in bulk (avoid simple sequential exposure). Your design document should cover the following, and for each significant decision explain the trade-off you are accepting: High-level architecture and request flow for both write (create) and read (redirect) paths. Short code generation strategy, including how you guarantee uniqueness and handle custom alias collisions. Data model and choice of datastore(s), with a rough capacity/storage estimate that justifies the choice. Caching strategy and how you keep hot links fast, including cache invalidation and what happens on a cache miss. Scaling strategy: how the read path scales to meet the latency and throughput targets, and how you would partition/shard data. Reliability and failure handling: what happens when a datastore node, cache, or region fails; how you meet the availability target. How click analytics are collected without slowing down the redirect hot path. State any assumptions you make. Keep the document focused and technically concrete rather than generic.

114
Jul 18, 2026 09:42

Related Links

X f L