Talks
Speakers
Events
Topics
Sign in
Home
Talks
Speakers
Events
Topics
Leaderboard
Use
Analytics
Sign in
Suggest modification to this talk
Title
Description
Can ActiveStorage Serve Images for the Modern Web? by Mark Hutter "It’s a simple question: can ActiveStorage be used for image serving in your modern web apps? The answer is not so simple. Can it handle the speed requirements and size specifications of images that the modern web browsers deems as “fast”? We’ll look at the out-of-the-box approach ActiveStorage takes on asset serving, where it works well - resizing, usability, and security, and where we run into rough edges - image load times, CDN integration, and next gen image format storage. And then we’ll look at one pattern working in production today." __________ I am 11 years into my career in the software development industry. This adventure has allowed me to pursue a range of technology specialties from SQL, Java, Ruby, Javascript, and Go. I am a husband and father, and there is nothing more important to me than family. I love food. All food. I have an eternal ongoing pursuit of the best quality audio experience I can find in headphones.
Date
Summarized using AI?
If this talk's summary was generated by AI, please check this box. A "Summarized using AI" badge will be displayed in the summary tab to indicate that the summary was generated using AI.
Show "Summarized using AI" badge on summary page
Summary
Markdown supported
In the video titled "Can ActiveStorage Serve Images for the Modern Web?" by Mark Hutter, the speaker explores the effectiveness of ActiveStorage as a solution for image serving in modern web applications. The discussion revolves around the performance expectations set by modern web browsers and how ActiveStorage measures up against these standards. ### Key Points Discussed: - **Definition of 'Fast':** The speaker emphasizes that defining speed in web performance is complex and can't be simplified into a single metric. Performance must be assessed holistically, considering various factors that contribute to the user experience. - **Importance of Image Performance:** Images are critical to web performance; thus, understanding how ActiveStorage handles image serving is essential for developers. Google Chrome has begun flagging slow-loading sites, making optimal performance more crucial. - **Measurement Tools:** Tools such as Google PageSpeed Insights and Lighthouse are recommended for measuring site performance, particularly focusing on metrics relevant to images. - **Advantages of ActiveStorage:** ActiveStorage centralizes image management through attachments and blobs tables, simplifying image integration within applications. It offers on-the-fly resizing, ease of use for developers, and enhanced security through temporary URLs for sensitive data. - **Potential Pitfalls:** While ActiveStorage provides several benefits, there are challenges, including query latency from database operations and slowdowns during image resizing. For instance, a request for a resized image can take significant time if the resize has not been previously processed. - **CDN and Next-Gen Formats:** The speaker discusses challenges in integrating ActiveStorage with CDNs and handling next-gen image formats. He suggests best practices like pre-processing image sizes and leveraging background jobs to optimize image handling and performance. - **Performance Benchmarking:** Hutter shares his experience running performance metrics on a new Rails application, highlighting how following best practices improved performance dramatically from a score of 73 to 99. ### Conclusion: Mark Hutter concludes that ActiveStorage can indeed serve as an effective image serving resource for modern web applications, particularly when developers implement best practices to mitigate its limitations. His talk reinforces the importance of understanding the unique needs of each project when choosing technology solutions and encourages a thoughtful approach to leveraging ActiveStorage for image assets.
Suggest modifications
Cancel