~/talk

It’s all about the db - a journey to accommodate 100k events per second

Talkat PyCon Israel 2024 · on Monday, 2024-09-16· [databases, python]
github:eyalballa
slides:none on file

System ingests 100k+ events/sec end to end, tested through three DB stages: Redis: a few thousand/sec, limited by single-threaded I/O and round trips, TimescaleDB: works to ~30k/s with hypertables and continuous aggregates but inserts drop at ~100k/s and aggregations take hours, ClickHouse: bulk inserts, monthly partitions, SSD→S3 tiers, single server with 30s queries and handling >150k/s. Uses async Python with batched I/O, Tenacity for retries, and separates ingestion pods from CPU-heavy processing.

AI-written summary · about

  1. 0:00Introduction and background
  2. 3:23Starting with Redis
  3. 7:18Moving to TimescaleDB
  4. 13:43Switching to ClickHouse
  5. 19:47Outcomes and lessons learned
  6. 21:12Q&A
~/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.