~/talk

Async vs Sync Programming

Talkat JavaDay Ukraine 2017 · 2017-11-04..11-05· [concurrency, software-architecture]
links:none on file
slides:none on file

Compares blocking vs nonblocking servers with concrete costs and tradeoffs: a CPU time slice ~100 ms, context switches cost roughly 3–30 µs, Java thread stack defaults to 1 MB stack so 200 threads ≈ 200 MB, and Jetty defaults to 200 threads. Shows async uses epoll/event-loop, futures or actors to keep fewer threads but pushes complexity into tracing, per-request context, queue sizing, and monitoring (New Relic has limited async support). Claims async improves concurrency and fault tolerance for I/O-bound services but often adds engineering and observability costs.

AI-written summary · about

  1. 0:00Introduction
  2. 4:54Sync system problems
  3. 15:19Async approach benefits
  4. 26:18Async real benefits
  5. 33:46When to use sync code
  6. 41:52Async programming models
  7. 42:13Conclusion
~/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.