~/talk

Solve Your Concurrency Problems With ZIO STM

Talkat Scala Love 2022 · on Friday, 2022-02-18· [scala, concurrency]
slides:none on file

ZIO’s STM provides composable atomic transactions over TRefs so multiple mutable variables update as one atomically/commit step, avoiding the Ref+Promise juggling shown in the memoize example. It guarantees no transaction based on inconsistent reads can commit, uses retry (non‑busy, non‑blocking) to suspend until relevant TRefs change, and fixes the 10,000-update race by treating many updates as one atomic transaction. Limitations: no arbitrary side effects inside transactions (use post‑commit effects or the saga pattern). Implementation targets familiar ZIO APIs and claims ~2x faster common STM ops.

AI-written summary · about

  1. 0:00Traditional concurrency
  2. 13:11The case for STM
  3. 18:25How STM works
  4. 24:12STM features and benefits
  5. 29:32ZIO STM design
  6. 41:44Practical application
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.