~/talk

A Commerce-centric Approach to Queuing Fairly at High Throughput

Talkat Strange Loop 2022 · 2022-09-22..09-24· [frontend-architecture]
slides:none on file

Claims a move from a stateless edge throttle to a stateful, commerce-aware queue that tracks ticket timestamps, inventory and fairness and runs as a Ruby gem in the application tier. Uses Nginx OpenResty Lua edge limiter initially, then Rails monolith + Redis Lua scripts to implement bined tickets and a working-bin scheduler. Rollout uses simulators and Genghis load tests; result is millions of pull requests per minute with p99 latencies of a few milliseconds and thousands of users completing checkout per second.

AI-written summary · about

  1. 0:00The problem with stateless
  2. 2:12Flash sales traffic
  3. 4:08Shopify's traffic stack
  4. 6:29Implementing back pressure
  5. 9:12Traditional throttling methods
  6. 11:52Windowed approaches
  7. 17:37Legacy edge throttle
  8. 20:56Designing a fair system
  9. 25:00Stateful queue architecture
  10. 30:58Scheduler implementation
  11. 35:05Simulating and testing
  12. 37:47Results and conclusion
~/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.