Bitpath

Lesson 2 · Unit 02

What to watch

Latency, traffic, errors and saturation, and a dashboard that says whether it is broken, and where.

13 exercisesabout 3 min

What you practise

  • Latency, traffic, errors and saturation
  • Rate, errors, duration for a service
  • A dashboard that answers "is it broken, and where"

Try a question from this lesson

Pick one

A wall screen has room for four numbers about a web service. Someone will glance at it for five seconds to decide "are users fine?". Which four?

Hint

Which set would change the moment users start having a bad time?

The ideas

Concept cards are short on purpose. In the app they appear between questions, after you have met the idea.

Concept

The four golden signals

Google's SRE book names four signals to watch on any user-facing system.

Latency: how long requests take. Traffic: how much is being asked. Errors: the share of requests that fail. Saturation: how full the service is, measured on its tightest resource.

The first three show pain now. Saturation shows pain coming.

latency     p50 40 ms    p99 310 ms
traffic     820 requests/s
errors      0.2% of requests
saturation  db connections 61% in use

Concept

Rate, errors, duration for every service

For one request-driven service, three of the signals come straight from its requests: the Rate of requests, the share that are Errors, and their Duration. Give every service the same three panels and you can compare them at a glance.

Saturation is measured one layer down, on the resources the service runs on.

service    req/s   err %   p99 ms
gateway      900    0.2      210
checkout     310    0.3      190
catalog      540    0.1       80

10 more exercises in the app

  • 1× match the pairs
  • 5× multiple choice
  • 2× true or false
  • 1× fill the blanks
  • 1× type the answer

Bitpath is an iOS app in development. Join the waitlist and you get one email when it is ready to try.

One email when Bitpath is ready to try. Nothing else. Privacy