~/talk

Can ActiveStorage Serve Images for the Modern Web?

Talkat RailsConf 2020 CE · 2020-05-04..05-05· [web-performance, ruby-on-rails]
links:none on file
slides:none on file

Active Storage can serve modern images but the details matter: lab tests use Google PageSpeed/Lighthouse, a demo app scores 73 to 99 after changes, on-the-fly variants sometimes cost 1.872 seconds to generate, each image lookup runs two DB queries and returns a 302 redirect to cloud storage which can thwart CDN caching. Practical fixes include pre-processing or background jobs via .processed, eager-loading attachments, a small controller monkeypatch to enable CDN caching, and a compressed_attachments table plus view helpers—these solutions work in production.

AI-written summary · about

  1. 0:00Introduction
  2. 0:38What is fast
  3. 1:52Performance is true
  4. 2:36Performance pillars
  5. 3:02Why should I care
  6. 4:18Google tools
  7. 5:49What are the measurements
  8. 8:36Can we use ActiveStorage to serve images
  9. 9:30What does ActiveStorage do
  10. 11:01Ease of Use
  11. 14:00Why ActiveStorage
  12. 15:35Resize
  13. 19:29Processing in the Background
  14. 20:42Processing in the CDN
  15. 22:26What are your needs
  16. 23:22Conclusion
~/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.