~/talk

A Frontend Server, Front to Back

Talkat Strange Loop 2016 · 2016-09-16..09-17· [devops-and-delivery]
slides:none on file

Fitbit builds a 3k‑line async frontend server on Netty that uses a granular passport state machine to stamp and emit timings, a router and channel pool for connections, and an EWMA‑aware least‑inflight load balancer. Moving from round‑robin to least‑inflight cuts deploy spikes — p99.9 latency drops from 9s to 1.5s — and p999 overhead sits around 4ms. The implementation is pragmatic, observable (few key alerts: overhead, volume, error rate), and demonstrably reduces tail latency in production.

AI-written summary · about

  1. 0:00FITBIT HAS A MONOLITH
  2. 0:51BREAKING IT APART
  3. 1:12ABSOLUTE FRONTEND
  4. 1:43OUR SERVER'S ROLE
  5. 2:39TRANSPARENT
  6. 3:04STABLE
  7. 4:03EXTENSIBLE
  8. 5:29ASYNC, VIA NETTY
  9. 12:00PASSPORT
  10. 12:44ROUTER
  11. 13:09CHANNEL POOL
  12. 13:28HTTP SOCKET
  13. 14:27REQUEST STATE MACHINE
  14. 18:56CALLBACK HELL
  15. 19:36PROMISE COMPOSITION
  16. 24:42SINGLE QUEUE
  17. 27:24FACTORIES MAXIMIZE THROUGHPUT
  18. 27:54CARNIVALS BALANCE THROUGHPUT AND LATENCY
  19. 29:02WHAT ABOUT THE GIANT PUMPKINS?
  20. 29:41LOAD BALANCING
  21. 30:18ROUND ROBIN
  22. 31:16LEAST IN-FLIGHT
  23. 33:53DEPLOY-TIME BLUES
  24. 37:09OUR KEY METRICS
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.