~/talk

ExecutionContext Demystified

TalkinGermanat Scala Days Berlin 2018 · 2018-05-14..05-17· [concurrency]
slides:none on file

Describes how Scala's default ExecutionContext.global, which uses a ForkJoinPool, behaves under blocking work and why unguarded blocking drastically reduces throughput. Presents microbenchmarks comparing ForkJoinPool to Executors.newFixedThreadPool and ExecutionContext.fromExecutor, and shows that using scala.concurrent.blocking or a separate executor (plus specific configuration knobs) restores latency, fairness, and expected throughput.

AI-written summary · about

  1. 0:00ExecutionContext intro
  2. 6:41Executors and interfaces
  3. 12:35ExecutionContext future
  4. 19:53Complete stack implementation
  5. 23:22Passing functions and params
  6. 27:15Global ExecutionContext
  7. 30:03Blocking operations config
  8. 35:07Automotive center context
  9. 37:19Blocking operations
  10. 40:22Summary & 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.