Preparing your design workspace

Loading the problem and your latest saved attempt…

Design a Browser-to-Backend Request Lifecycle

Design the path that turns an entered HTTPS URL into a fast, secure, and resilient rendered page.

Problem statement

For this exercise, assume a user opens a modern HTTPS web application by typing its URL. The first useful page combines a versioned HTML shell and static assets with authenticated API data.

Design the browser-facing contracts and backend path—from name resolution and edge delivery through application services and storage—so healthy users render quickly, personalized data never leaks across users, releases remain coherent while caches are warm, and partial failures degrade safely.

You do not need to design browser-engine internals, ISP routing protocols, or certificate-authority infrastructure.

What to build

  1. Resolve the application URL and deliver the correct versioned HTML, JavaScript, CSS, and media needed for the initial page.
  2. Authenticate the session when present and fetch the page's personalized API data without leaking one user's response to another.
  3. Roll out and roll back releases while keeping HTML, asset references, and API contracts mutually compatible across caches and regions.
  4. Return a useful shell or explicit retryable error when an API, cache, region, or dependency fails, without presenting unavailable or stale data as current.

At scale

  • Assume a peak of 10,000 new page loads per second and 50,000 API requests per second across two active regions.
  • Assume roughly 90% of static bytes are immutable and edge-cacheable, while personalized API responses are private and normally not shared-cacheable.
  • Target a healthy-region p95 time to first byte below 300 ms and a p95 first useful render below 2 seconds on a warm network.
  • Target 99.95% monthly availability for the page shell and core API, with no cross-user data exposure and a rollback that completes within 10 minutes.