~/talk

Fast on paper, slow in reality: what we got wrong about performance

slides:none on file

Built a strongly-consistent distributed key‑value store in Go on Badger LSM with hash partitioning and persistent TCP connections, then discover real bottlenecks: a single mutex-protected waiting list causes lock contention (fix: sharded waiting lists and cache‑line aligned lock‑free buckets), Two‑Phase Commit creates excessive socket writes so a single-leader fast path collapses begin/add/commit into one IO, scatter‑gather range queries cause OOM so pagination + client-side merge prevents merge pressure, outbound connector saturation is solved by parallel serializers and multiple TCPs — net result 115ms → 10ms latency and 10,000 TPS at 32 partitions RF=3.

AI-written summary · about

  1. 0:00Introduction and motivation
  2. 1:21Architecture overview
  3. 8:06Benchmarking methodology
  4. 10:18Optimizing the waiting list
  5. 15:21Refining two-phase commit
  6. 20:03Range query handling
  7. 26:22Parallelizing serialization
  8. 30:25Conclusion and Q&A
~/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.