~/talk

"How We Built a Rust-y Real-Time Public Transport Map"

Talkat RustConf 2024 · 2024-09-10..09-13· [rust, distributed-systems]
slides:none on file

A Rust real-time map that pulls GTFS-RT from 800 agencies at one-second cadence, uses etcd+Raft to assign agency shards to workers, and serves tile and vehicle queries over Actix Web. Global polling would be about 10 TB/day, so precompute transfer patterns (Hannah Bass/BAS-style), compress schedules from 600GB→100GB, and partition OSM with K-means. Uses SQLx/Diesel, Tokio and Rayon for concurrency, OSM PBF for geometry, and runs acceptably even on older Intel Nooks; demo works live.

AI-written summary · about

  1. 0:00Project motivations
  2. 1:17Demo
  3. 2:26Agency URLs
  4. 3:41Distributed Systems
  5. 5:04GTFS
  6. 6:10Postgress
  7. 7:40RealTime Database
  8. 9:48Algorithm
  9. 12:38Compression
  10. 14:10Preprocessing
  11. 16:20Query Time
  12. 16:59Excerpt
~/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.