← Graph

Better WebPerformance with Rails

talk 47 connections

Stefan Wintermeyer's talk at wroclove.rb 2018 on why the first page load must fit within a ~1-second budget and how to achieve it with Rails 5.2. He walks through the network and render stack (DNS, TCP 3-way handshake and slow-start, TLS, HTML/CSS/JS download, ~100ms browser render), uses a minimal Rails webshop (products, reviews, ratings) to show layered caching improvements: fragment caching with touch: true, Russian-doll caching, pre-computing derived values like number_of_stars into the database via callbacks, HTTP ETag / Last-Modified, cron-based cache preheating, and serving pre-gzipped static pages from the public/cache directory directly via nginx. Also covers HTTP/2, Brotli compression, CDN trade-offs, Active Storage for WebP delivery, Heroku vs bare-metal, preload/prefetch/prerender hints, HTTP/2 server push, Apache vs nginx, and concludes that the most important tool is setting an organizational performance time budget. Includes Q&A on caching complexity, N+1 queries, Phoenix/Elixir comparisons, touch on has_many, and CDN services like Akamai.

type
talk
talk Better WebPerformance with Rails
about
Talk is about improving web performance of Rails apps.
talk Better WebPerformance with Rails
about
Rails 5.2 tool
Uses Rails 5.2 sample webshop throughout.
talk Better WebPerformance with Rails
about
Frames the entire talk around a sub-1s render goal.
talk Better WebPerformance with Rails
about
TCP Slow Start concept
Explains TCP slow-start as a latency floor.
talk Better WebPerformance with Rails
about
Demonstrates waterfall diagnosis via webpagetest.org.
talk Better WebPerformance with Rails
about
Primary caching technique demonstrated.
talk Better WebPerformance with Rails
about
Extends fragment caching to nested caches.
talk Better WebPerformance with Rails
about
Demonstrates fresh_when for 304 responses.
talk Better WebPerformance with Rails
about
Uses cron to pre-populate caches overnight.
talk Better WebPerformance with Rails
about
Describes writing cached pages to public/cache for nginx to serve directly.
talk Better WebPerformance with Rails
about
Covers dns-prefetch, preload, prefetch, prerender hints.
talk Better WebPerformance with Rails
about
Notes server push is powerful but tricky.
talk Better WebPerformance with Rails
about
Closes on time budget as the most important tool.
talk Better WebPerformance with Rails
about
nginx tool
Recommended front-end server for caching and HTTP/2.
talk Better WebPerformance with Rails
about
Mentioned as equivalent alternative to nginx.
talk Better WebPerformance with Rails
about
HTTP/2 tool
Recommends enabling HTTP/2 for ~20% gain.
talk Better WebPerformance with Rails
about
Brotli tool
Recommends Brotli over gzip.
talk Better WebPerformance with Rails
about
gzip tool
Baseline compression; recommends pre-gzipping cached files.
talk Better WebPerformance with Rails
about
Tool used to produce demonstration waterfalls.
talk Better WebPerformance with Rails
about
Recommends using for multi-format image delivery.
talk Better WebPerformance with Rails
about
WebP tool
Suggested as Chrome-targeted image format via Active Storage.
talk Better WebPerformance with Rails
about
Heroku tool
Discusses Heroku vs bare-metal trade-offs.
talk Better WebPerformance with Rails
about
Phoenix tool
Referenced as a much faster alternative for greenfield projects.
talk Better WebPerformance with Rails
about
Elixir tool
Language underlying Phoenix, noted as fast and easy to test.
talk Better WebPerformance with Rails
about
Ruby tool
Notes Ruby's speed ceiling and upgrade gains.
talk Better WebPerformance with Rails
about
Akamai tool
CDN example discussed in Q&A.
talk Better WebPerformance with Rails
about
Faker tool
Used to seed the sample webshop.
talk Better WebPerformance with Rails
about
Google company
Cites Google latency experiment showing 100ms slowdown changes user behavior.
talk Better WebPerformance with Rails
about
Recommends as the deeper follow-up reference.
talk Better WebPerformance with Rails
about
Promoted at the end of the talk.
asked_at
Better WebPerformance with Rails talk
Audience Q&A question.
asked_at
Better WebPerformance with Rails talk
Audience Q&A question.
asked_at
Better WebPerformance with Rails talk
Audience Q&A remark.
asked_at
Better WebPerformance with Rails talk
Audience Q&A challenge about ActiveRecord callbacks.
authored
Better WebPerformance with Rails talk
Delivered the talk at wroclove.rb 2018.
from_talk
Better WebPerformance with Rails talk
Closing recommendation of the talk.
from_talk
Better WebPerformance with Rails talk
Demonstrated by storing number_of_stars as a column via callbacks.
from_talk
Better WebPerformance with Rails talk
Warning given during fragment caching section.
from_talk
Better WebPerformance with Rails talk
Shown on the reviews belongs_to product relationship.
takeaway Switch on HTTP/2
from_talk
Better WebPerformance with Rails talk
Recommended with a one-line nginx config change.
from_talk
Better WebPerformance with Rails talk
Brotli section at end of talk.
from_talk
Better WebPerformance with Rails talk
Public/cache directory + expire_cache hook strategy.
from_talk
Better WebPerformance with Rails talk
Raised in Q&A about additional server-side improvements.
from_talk
Better WebPerformance with Rails talk
Discussed in CDN vs HTTP/2 section.
talk Better WebPerformance with Rails
presented_at
Conference where the talk was given.
related_to
Better WebPerformance with Rails talk
Speaker opens by thanking Stefan for the preceding Rails performance talk.
related_to
Better WebPerformance with Rails talk
Replicates the heavy-Rails products/reviews example from the earlier day-one performance talk and applies SQL-level optimization instead of caching.

Provenance

Created
2026-04-17 16:17 seed
Read by
31 extractions