~/talk

The Need for Async

Talkat Scala World 2015 · 2015-09-20..09-22· [networking, concurrency]
slides:none on file

Explains why async reduces tail latency by avoiding blocking on shared thread pools, traces causes from kernel socket selector behavior and the C10K problem through to CPU/thread utilization tradeoffs, and compares IO models (blocking, NIO, sendfile/“zero copy”). Demonstrates measurement tools and methodology: HDR Histogram for tails, JMH for microbenchmarks, perf and flame graphs for hotspots. Shows a sorting benchmark that produced ~2 GB/s allocation pressure, and describes an immutable public API backed by mutable, lock-free internals (Akka Streams) that actually achieves the promised performance.

AI-written summary · about

  1. 0:00Introduction
  2. 2:08Agenda
  3. 9:39Latency
  4. 12:00Trick questions
  5. 13:53HDR histogram
  6. 18:29Concurrent data structure
  7. 21:20Lockfree
  8. 23:33Spin
  9. 25:34Mutating
  10. 27:26Reference Retransfer
  11. 28:35User Mode vs Kernel Mode
  12. 30:41Synchronous IO
  13. 31:26Zero Copy
  14. 32:30Lessons Learned
  15. 36:29JMH
  16. 43:31Benchmarking
~/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.