~/talk

Processing Streaming Data at a Large Scale with Kafka

Talkat RailsConf 2017 · 2017-04-25..04-27· [web-platform, nodejs]
slides:none on file

Shows how a Rails app uses two Kafka topics and three Rake tasks to turn raw nginx logs into aggregated counts, with an importer that fakes streaming, a preprocessor that GeoIPs IPs and sets a partition key like city.country, and an aggregator that does five-second batching into a single ActiveRecord table. Kafka handles partitioning, replication across brokers and consumer groups with partition reassignment so rebalancing happens within a minute and DB writes drop from per‑line updates to periodic bulk increments.

AI-written summary · about

  1. 0:00Start
  2. 1:40Streaming Data
  3. 8:57Explain Kafka
  4. 13:48Consumer
  5. 21:27Step Two
  6. 26:30Demo
  7. 30:21The Format of the Messages
~/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.