~/talk

Adventures with Concurrent Programming in Java: A Quest for Predictable Latency

Talkat Code Mesh 2015 · 2015-11-03..11-04· [microservices]
slides:none on file

Claims concrete latency and scalability tradeoffs, measured not promised: 167 ns baseline for a lockfree one-to-one ring buffer, blocking condition-variable handoffs that spike to 5 ms outlier and tens of microseconds, and 100-message bursts that push blocking queues to ~180 µs. Implements lockfree rings, a process-shared ring file for IPC, and Aeron-style rotating buffers using xadd-style atomics and background zeroing; results show ring buffers and Aeron reduce tail contention to ~34 µs under load. Code and benchmarks (Disruptor Aeron SBE) are on GitHub and actually run.

AI-written summary · about

  1. 0:00Introduction
  2. 0:46A Quest for Predictable Latency
  3. 1:20Being Responsive
  4. 1:42Agenda
  5. 2:44Blocking
  6. 3:10Exclusion
  7. 3:29Systemic Pauses
  8. 4:33Concurrent Algorithms
  9. 5:54Service Time
  10. 7:12Queue Theory
  11. 8:48Message Passes
  12. 9:51Condition variables
  13. 10:22Measuring condition variables
  14. 11:07Microseconds
  15. 12:54Measuring Microseconds
  16. 13:38Scientific Method
  17. 17:34Concurrent Link
  18. 18:44InterThread FIFO
  19. 19:04Disruptor
  20. 20:48Cursor
  21. 22:45Demo
  22. 24:06The Head Independent
  23. 25:15The Numbers
  24. 26:38The Disruptors
  25. 26:52How do I work across processes
  26. 27:22How do I consume
  27. 28:05The header
  28. 28:48Cleanup operation
  29. 29:12Concurrent messaging
  30. 30:28One big file that goes on forever
  31. 31:15Rotating the buffers
  32. 31:25Moving forward
  33. 34:03Readers
  34. 34:25Zeroing
  35. 34:47Predictable Latency
  36. 36:33False Sharing
  37. 37:43LockAx Art
  38. 38:25Logging
  39. 39:30Learnings
  40. 41:12Memory copying
  41. 43:17AXE
  42. 43:57GitHub
  43. 44:10Questions
  44. 44:37Atomic Operations
~/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.