Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save LexVocoder/1f05701e051bb1686cfc03541d80010b to your computer and use it in GitHub Desktop.

Select an option

Save LexVocoder/1f05701e051bb1686cfc03541d80010b to your computer and use it in GitHub Desktop.

Pessimistic latency anchors

  • RAM 100 ns
  • SSD 150 mcs
  • HDD 10 ms
  • Same DC 1 ms
  • Global network 100 ms
  • TLS handshake 20 ms
  • Warm read 10 ms

Maxima

  • Any DB writes: 1k/sec(/shard)
  • PostgreSQL reads: 50k/sec

Interview steps

  1. Constraints and guarantees?
  2. Latency anchor math
  3. HLA
  4. POS Design of bottlenecked system
  5. Scale up
  6. 3 metrics to monitor, and their thresholds for redesign
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment