~/talk

Distributing Work With Queues and GCP PubSub

links:none on file
slides:none on file

Claims a queue-based redesign using GCP Pub/Sub and Broadway splits each user search into per‑airline work items (often tens of megabytes of XML, sometimes ~40 MB XML), publishes one message per airline, and uses filtered subscriptions keyed by pod name plus a base64 ETF caller‑PID to route results back. Workers run as Broadway processors with tuned concurrency; moving CPU work to a worker pool flattens CPU spikes and reduces P99 latency to match prior sync paths. Memory GC issues appear; workaround spawns short‑lived tasks so heaps free on exit.

AI-written summary · about

  1. 0:00Intro
  2. 1:41Flight Search Crash Course
  3. 6:48Searching Multiple Airlines
  4. 12:40Selecting a queue system
  5. 13:57GCP PubSub Basics
  6. 18:30Message format
  7. 19:39Enqueuing messages
  8. 20:35Routing back to process
  9. 23:22Architecture
  10. 23:49Broadway tweaking
  11. 25:40The first version was slow, tweaking made a huge impact
  12. 27:20Benefits of the new design
  13. 28:45Memory issues with Broadway
  14. 30:01Erlang VM Memory Management
  15. 31:42Bug in GCP PubSub Provider
~/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.