~/talk

Approaches for application request throttling

Talkat DotNext 2017 Moscow · 2017-11-12..11-13· [web-platform, security]
slides:none on file

Case study of MyGet.org shows naive DB-based counters (Entity Framework) kill the database under bursts — tens of thousands of uploads/sec and a 600,000-hit spam form — so implementation moves to fast counters: demoed quantized vs leaky buckets, then a production-ready Redis sorted sets limiter that records timestamps atomically and returns 429s. Also demonstrates pushing limits out to an nginx reverse proxy (or CloudFlare/Azure API Management) to block traffic before the app and recommends logging limits first, then enforcing.

AI-written summary · about

  1. 0:00Intro
  2. 3:01We're using background workers
  3. 4:11What could possibly go wrong...
  4. 7:08Other examples
  5. 8:10Recent, real-life example
  6. 9:23Rate limiting - what?
  7. 12:07Rate limiting - everything???
  8. 17:26That database was a bad idea!
  9. 19:26Quantized buckets
  10. 21:46Leaky bucket
  11. 25:20Bucket approaches
  12. 29:42Things to decide on
  13. 30:16What are sensible limits?
  14. 32:01Will you allow bursts or not?
  15. 33:34What will be the identifier?
  16. 35:01Decide on exceptions
  17. 37:11What when the user hits the limit?
  18. 39:25Rate limiting - where?
  19. 46:03What options are there?
  20. 56:02Conclusion
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.