~/talk

High Volume Ratelimiting with Redis

Talkat FOSSASIA Summit 2019 · on Sunday, 2019-03-17· at 23:00· Training room 2-2· [databases, security]
name:Triton Ho
github:tritonho
slides:none on file

Handles C10K average traffic by using Redis as the central store and per-app local memory to absorb bursts, implementing access-token based rate limits with a 30-minute TTL and optimistic merge/sync to avoid hot spots. Uses Redis sorted sets to keep the top 2,000 users and sharding (about 4,000 buckets mentioned) to spread writes, accepts occasional false positives for performance, and relies on Lua scripts for atomic merge/compare-and-set operations.

AI-written summary · about

  1. 0:00Introduction to ratelimiting challenges
  2. 4:23Problems with existing ratelimiting
  3. 10:15Redis for high-volume ratelimiting
  4. 17:40Synchronizing access tokens across servers
  5. 24:16Optimistic lock and concurrency control
  6. 31:08Trade-offs in consistency and performance
  7. 36:45Sharding and data distribution
  8. 40:34Q&A 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.