~/talk

Introduction to application scaling

slides:none on file

Platform serves about half a million requests an hour with regular 3–5× spikes and a surprise peak of 1.2M/hr that made a customer $200,000. Practical fixes include using New Relic to find hot spots, writing an Eloquent collection extension that cut queries by ~70%, separating web/control/db roles, adding HAProxy and Redis, vertical-scaling a big DigitalOcean instance as a stopgap, then moving to Amazon Aurora for higher write throughput, and applying caching and rate limits (from ~80 to ~15 req/s) which all materially reduce outages.

AI-written summary · about

  1. 0:00Introduction
  2. 2:00Jules Reference
  3. 2:25Agenda
  4. 3:20Admin Panel
  5. 4:00Web Stores
  6. 4:30Minecraft
  7. 5:30Traffic spikes
  8. 7:15Why do we need scale
  9. 8:00Slow performance
  10. 9:20Separation of concerns
  11. 13:10Optimization
  12. 14:20Dam Plus One
  13. 16:45Loading Relationships
  14. 17:50Assign Relationships to Collections
  15. 18:40Hardware scaling
  16. 19:00What needs to scale
  17. 19:40Vertical scaling
  18. 20:53Horizontal scaling
  19. 22:25Load balancing
  20. 22:55Database scaling
  21. 23:30Sharding
  22. 25:25Replication
  23. 25:45Masterslave
  24. 27:18Master replication
  25. 31:13Caching
  26. 31:30Dynamic content
  27. 33:33Cache
  28. 35:05Prewarp
  29. 36:41API attacks
  30. 37:36Rate limiting
  31. 38:47Cloud Flask
  32. 41:06Questions
~/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.