KatInterview

Triage a Cloud-Hosted Site Stuck on a Spinner for Most Users

System DesignModel answer
MediumModel answerSystem Designdebuggingincident-responsegoogle-cloud

Last updated

Explain how you would systematically investigate a cloud-hosted web app where most visitors see an endless loading indicator while a minority get the full page.

A web product is hosted on Google Cloud. Roughly one in five visitors gets the page rendered normally. The remaining four in five see only a loading indicator, and the real content never shows up.

Describe, step by step, how you would investigate this. Do not jump straight to a single favorite suspect such as "someone changed a config" or "the last deploy broke it". Show how you would locate the failing stage and how you would prove or rule out each explanation.

Things you may not know up front (ask or state assumptions):

  • Which backend services, APIs, data stores, CDN and frontend framework are involved, and which Google Cloud products serve the app (static hosting, App Engine, Cloud Run, GKE, a load balancer, and so on).
  • Whether the problem began at a particular moment, such as a release. Treat the start time as something to discover, not something given.

Questions worth asking the interviewer:

  • Is the failure sticky per user, or does any user fail roughly 80% of the time?
  • Do affected users have anything in common (browser, device, region, network, signed-in state, account type)?
  • What does the page need to fetch or execute before it hides the spinner?
  • What monitoring already exists (client error reporting, real-user monitoring, load balancer and backend logs, traces)?

Expected in your answer: how you scope the problem, what browser and server evidence you gather, a list of candidate causes for the uneven split with a test for each, and how you would mitigate, fix and prevent a repeat.

Hints

Hint 1

A spinner that never disappears means the HTML shell arrived and some later step (a script, a config fetch, an API call, a render) never finished or failed silently. Work out which stage that is before theorizing about causes.

Hint 2

A split of about 80/20 is itself a clue. Ask what in a Google Cloud setup divides traffic by a ratio or by a user attribute: multiple backend versions or instances, cache hit vs miss, a feature flag or experiment, a regional or network path, a browser capability.

Hint 3

Compare a failing load with a succeeding one side by side (network waterfall, console errors, response headers, which backend served it). Whatever differs is your lead, and each hypothesis should have a test that can disprove it.