~/talk

Lessons From Our First Trillion Messages with Flow

Talkat ElixirConf EU 2019 · 2019-04-08..04-09· [data-engineering]
speakerdeck:mertonium
slides:none on file

Describes running Flow (on GenStage) to process a trillion messages from SQS with backpressure, visibility-window acks and batched deletes limited to SQS batches of 10. Keeps a single message struct through the pipeline, isolates side effects to the end, and uses partition+reduce to ack every 10 messages or 5s. Tunes max_demand, stages (often up to 100 stages for IO-heavy mappers), measures with instrumentation/new_plot, and prototypes a near-drop-in Broadway port.

AI-written summary · about

  1. 0:00Intro
  2. 1:32Adoption story
  3. 2:10General flow
  4. 2:57hiccups
  5. 3:16What Flow do
  6. 3:44Abstraction
  7. 3:59Code Example
  8. 6:55Slack
  9. 7:18Five humans
  10. 8:20Organize your flow
  11. 9:20Know your code
  12. 10:11Code psych
  13. 10:27SQS
  14. 11:21Flow
  15. 12:03Flow Enum
  16. 13:17Partitioning
  17. 14:06Voice in your head
  18. 14:33Use the token
  19. 14:50Message struct
  20. 15:23Code
  21. 16:20Message Types
  22. 17:35Errors
  23. 18:34Partition Reduction
  24. 19:17Isolate Side Effects
  25. 19:49Sagas
  26. 21:33Measuring
  27. 22:36Tweaking
  28. 22:50Main Flow
  29. 23:03Producer Consumer
  30. 24:17Mappers
  31. 24:51Partition reducer
  32. 25:29Stages
  33. 27:00SQS Producer
  34. 27:27Dependencies
  35. 28:17Review
  36. 28:43Other Lessons
  37. 29:21Broadway
  38. 30:22Broadway Performance
  39. 33:00Supervision Trees
  40. 34:05What does this mean
  41. 34:40Flow still applies
  42. 34:50Defining stages
  43. 36:48Thank you
  44. 37:18Change the Dog
~/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.