~/talk

GenStage and Flow

Talkat Lambda Days 2017 · 2017-02-09..02-10· [elixir-and-erlang, concurrency]
slides:none on file

GenStage implements a demand-driven back-pressure contract so producers only emit what consumers request (defaults: max_demand 1,000, min_demand tunes prefetch), and Flow is a concurrent layer built on GenStage. Flow codebase is small — Flow ≈1,200 LOC with extensive docs — and partitions by hash so identical keys route to the same reducer. Benchmarks show eager approaches stall, stream runs in ~60s and Flow finishes ~18s on a 4‑core box (roughly a 3–4× win), and the example pipeline (stream → flow → partition → reduce) works.

AI-written summary · about

  1. 0:00Start
  2. 15:15Flow stats
  3. 19:53GenStage: Demand-driven
  4. 44:56Flow features
  5. 48:08Inspirations
~/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.