~/talk

Surviving Black Friday: 329 billion requests with Falcon!

Talkat RubyKaigi 2026 · 2026-04-22..04-24· [ruby]
links:none on file
links:none on file
slides:none on file

Falcon replaces Unicorn for Shopify storefront rendering and carries 329 billion requests over Black Friday weekend, peaking at 1.42M req/s, with a fiber-based Async worker model, a long tasks semaphore to limit CPU contention, and a supervisor that monitors memory and utilization. Failures include RD Kafka C-extension segfaults, Spanner GRPC deadlocks, and a notification-pipe “silent death”; fixes are gem and buffer caps, kill-as-last-resort for stuck GRPC, and atomic writes plus timeouts. A per-pod Outbox per-pod Kafka proxy consolidates thousands of connections into one, enabling rollout and stable production performance.

AI-written summary · about

  1. 0:00Introduction to Falcon
  2. 0:35The bet we made
  3. 1:58Traffic and scale challenges
  4. 2:20Why Unicorn wasn't enough
  5. 3:23How Falcon works
  6. 6:59Controlling concurrency with long tasks
  7. 8:42Fiber-safety in Ruby code
  8. 9:27Phased rollout plan
  9. 11:11Scale tests and early results
  10. 12:33The darkest week of the project
  11. 13:15Crisis one: Kafka side faults
  12. 14:20Crisis two: Spanner deadlocks
  13. 15:46Crisis three: Silent death
  14. 18:36Rollback and deadline pressure
  15. 19:18Kafka cardinality issues
  16. 21:02Building Outbox solution
  17. 22:05Go/no-go meeting
  18. 22:47Final scale tests
  19. 23:29BFCM weekend begins
  20. 23:49Peak traffic and performance
  21. 25:36Five key lessons learned
  22. 26:59What's next for Falcon
~/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.