~/talk

Rate Limiting in Node js applications

Talkat JSConf Belgium 2020 · on Thursday, 2020-07-09· [security, nodejs]
slides:none on file

Shows runnable demos at rate-limits.dev and explains concrete choices: GitHub’s odd 5,000 requests per hour fixed-window policy, a client-side implementation used to avoid hitting GitHub, and a released tool for automating releases. Compares algorithms with implementation costs and numbers — fixed and sliding windows vs token-bucket (stores two integers, e.g. one token every 2s, allows bursts) and exponential delay for login attempts — and gives code patterns and deployment advice.

AI-written summary · about

  1. 0:00Intro
  2. 1:10Why Rate Limiting
  3. 1:42Mitigation
  4. 3:56Fixed Window
  5. 4:17Fixed Blocks
  6. 7:00Request Count
  7. 8:20Fixed Window Rate Limiting
  8. 10:18Fixed Window Pros and Cons
  9. 12:30Continuous Window
  10. 15:37Sliding Window Code
  11. 19:02Bucket Rate Limiting
  12. 23:26Bucket Rate Limiting Implementation
  13. 26:45Pros and Cons
  14. 29:11Exponential Delay
  15. 35:59Launch ins
  16. 37:35Recommendations
  17. 42:08RateLimit
  18. 46:35Authentication Rate Limiting
~/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.