~/talk

The Billion Event Challenge

Talkat DDD Perth 2021 · on Saturday, 2021-08-14· [data-engineering]
links:none on file
slides:none on file

Attempts to process 1 billion synthetic events move from Node.js + JSON (26 minutes on a single machine) to Rust with binary formats, testing bincode, MessagePack and rkyv and compression (deflate, snappy, LZ4), then heavy parallelization across CPU threads and multiple NVMe SSDs. A local run hits ~32s, a beefy AWS VM with four NVMe drives and tuned readers/writers/processors reaches ~18 seconds end-to-end for 1B events -> 100M read models, demonstrating JSON → rkyv and single-machine batch catch-up as the key levers.

AI-written summary · about

  1. 0:00Introduction to talk
  2. 0:46Background on events and event sourcing
  3. 7:25Challenges with sequential processing
  4. 8:28The billion event challenge defined
  5. 9:51First solution in Node.js
  6. 13:23Optimizing with Rust
  7. 16:11Binary serialization formats
  8. 18:18Testing compression algorithms
  9. 19:42Parallelizing CPU work
  10. 21:08Parallelizing disk access
  11. 27:05Testing multiple SSDs
  12. 30:14Benchmarking on AWS
  13. 33:24Future optimization ideas
  14. 34:30Key learnings and conclusions
  15. 36:13Q&A session
~/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.