LOAD-BEARINGfree
High-level designTier 8 · unit 5 of 5 · 14 min read

Observing a client you cannot reach

Tier 9 built you observability for systems you operate. This lesson is the same problem with the two assumptions removed: you cannot log into the machine, and the machine only tells you things when it feels well enough to do so.

Your p99 is not the user's experience

Server-side latency measures the interval between your load balancer accepting a request and your service answering it. The user's interval starts when their thumb lands and ends when the screen is right, and it contains: radio wake-up, DNS, TLS, the actual round trip, deserialisation, layout, and render. On a cold mobile connection the radio alone can cost hundreds of milliseconds before your server hears anything.

So an 80 ms server p99 and a three-second user experience coexist comfortably, and the team optimising the former will make no difference to the latter. The gap between those two numbers is where the client tier lives, and the only way to see it is to measure from the device.

Real user monitoring, and its bootstrap problem

The client has to report its own timings and errors, which means telemetry is itself a network operation — one that fails precisely when the thing you most want to know about is happening. Reporting is therefore subject to everything in 8.02: buffer locally, persist across restarts, drain with backoff when connectivity returns. Your telemetry pipeline needs an outbox, for the same reason your writes did.

And keep it cheap. Telemetry that costs battery or data gets your app uninstalled in markets where both are metered, which is a spectacularly self-defeating way to learn about your users.

Survivor bias, which is the important part of this lesson

Here is the property that quietly corrupts client metrics everywhere:

Reports arrive only from devices healthy enough to send them.

A crash report requires the process to recover enough to write and later upload it. A performance sample requires the session to complete. A device on a network so bad the app is unusable sends nothing at all — the user gives up, closes it, and appears in your data as a slightly shorter session, or as nothing.

Your telemetry is therefore systematically biased toward the users having the best experience, which is the exact inverse of what you need. The corrections are partial but worth doing: track session starts from the server so you can see the denominator, watch abandonment rather than only completion, segment by device class and network type rather than reading the aggregate, and treat a low-end-device cohort with suspiciously good numbers as evidence of missing data rather than good performance.

Client SLIs that mean something

Lesson 9.02's framing transfers, with different indicators:

  • Crash-free session rate — the client's headline availability number, and the one to put an objective on.
  • Time to interactive, from the device, segmented by device class and network — not averaged across a fleet whose top and bottom differ by a factor of ten.
  • Sync lag and pending-queue depth — the local equivalent of consumer lag from Lesson 6.04, and the earliest signal that sync is broken for a cohort.
  • Battery and data consumed per session. Users feel both intensely and you will otherwise never measure either.

You cannot roll back a client

Lesson 9.05 made rollback the foundation of safe shipping: a bad release becomes a config toggle measured in seconds. On the client that lever does not exist. A store release cannot be recalled — you can halt a phased rollout, which stops it reaching new users and does nothing for the ones who already have it.

So the rollback mechanism has to be built into the app before you need it:

  • A kill switch per risky feature, evaluated server-side. This is the client's rollback, and it only exists if you added it in the release that shipped the feature — which means adding it is a habit, not a decision.
  • Remote configuration for anything you might need to tune: timeouts, retry counts, sync intervals, page sizes. Every one of those hardcoded is a value you cannot change for two weeks.
  • Phased rollout, watching crash-free rate per cohort before widening. Slower than a server canary and the same idea.
  • Server-side forward fix — often the only lever you have left. Change the API's behaviour so the buggy client does the right thing, however inelegant that makes the server. Lesson 5.04's anti-corruption reasoning, pointed at your own past self.

Which reframes 8.01's point one last time: the client is the part of your system with the slowest possible fix cycle, so the investment goes into levers you can pull without shipping. Every hardcoded constant in a mobile app is a decision you have delegated to whoever is on call in two weeks' time.

The trap

Measuring the system at the server boundary and calling it the user experience. It is the most comfortable dashboard in the building — green, fast, entirely under your control, and describing a fraction of what your users actually endure. The users on the worst devices and the worst networks are simultaneously the ones having the worst time and the ones least represented in your data, so the dashboard gets greener as their experience gets worse. If you have never looked at your numbers segmented by device class and connection type, you do not yet know what your product feels like.