~/talk

Edge Caching Dynamic Rails Apps

Talkat GoRuCo 2014 · on Saturday, 2014-06-21· [ruby-on-rails, web-performance]
slides:none on file

Explains how to put Rails fragments at CDN edges using surrogate-key header binding and purge-by-key, uses pull CDNs (reverse-proxy edges) with s-maxage / Surrogate-Control and cache-control for browser vs edge lifetimes, and keeps origin connections warm with TCP keep-alive (DSA) so cache misses are faster. Describes a working stack (Varnish-based Fastly), a fast global purge implementation under 300 ms, and a fastly_rails gem that sets headers and issues purges from model callbacks.

AI-written summary · about

  1. 0:00Intro
  2. 1:10Agenda
  3. 2:13Terminology
  4. 4:38Content Delivery Networks
  5. 6:22Static Content
  6. 7:33Push CDNs
  7. 9:01Reverse Proxy
  8. 11:32MaxAge
  9. 12:03Private
  10. 13:30Example
  11. 14:33TCP
  12. 15:42Keepalive
  13. 16:40Instant Purge
  14. 18:33Dynamic Content
  15. 20:10Dynamic Content Example
  16. 22:54Creating Cache Keys
  17. 23:58Cache Control Headers
  18. 24:41Index and Show
  19. 25:15Purge Instance Methods
  20. 26:25Wrap Up
~/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.