How do I create image optimization for Active storagea with Amazon S3 file storage?
I want to build posting with image comments web project and included vary of image show cases styles. In case, I implemented that image file upload using Active Storage but it really slow for showing images of many comments with eager load. Help me please.
How slow is slow? Seconds to load a single image? That's not normal. If it's under a second for many images, that's normal. It's generally slow to load images from AWS S3.
The only thing you can do to increase speed is to implement a CDN, but it complicates your ActiveStorage setup somewhat. Read this: https://firstname.lastname@example.org/optimize-rails-app-performance-with-rails-amazon-cloudfront-e3b305f1e86c