~/talk

Batch Operations with Broadway

Talkat Lonestar Elixir 2020 · 2020-02-27..02-28· [elixir-and-erlang, databases]
links:none on file
slides:none on file

Broadway pipeline ingests Stripe-like charge events and moves from per-message inserts to grouped writes, replacing single-row repo.insert with Ecto.insert_all after assembling maps in handle_message/3 and routing via put_batcher. handle_batch/4 receives batches and returns successes/failures. With a batcher pool and batch_size 500 and 1s timeout, observed throughput rises from roughly 800 messages/sec to about 750–1500 messages/sec in examples, and further improves when batcher concurrency is increased.

AI-written summary · about

  1. 0:00Introduction to Broadway
  2. 2:32Data pipeline use case
  3. 4:15Implementing processors
  4. 8:21Using batchers
  5. 10:57Batching performance results
  6. 13:24Advanced tuning and conclusion
~/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.