All threads / cloudflare vs cloudfront vs ?

Ask A Question


You’re not receiving notifications from this thread.

cloudflare vs cloudfront vs ?

rh0 asked in Tips

Hey Chris,

I've many images on S3 with avg size of 30KB per img that take about 1-2 seconds to display. I'm looking at cloudfront & cloudflare to speed this up. Later perhaps imgix, but I see it as too costly now.

Which one is a good choice? What should I look at besides pricing for my decision?

I have the same issue, I built a photo gallery and that 1-2 second delay to load the images from the s3 bucket. But on my main website I use cloudflare to handle the DNS for my main domain, and its 10$ a month per website. There is many different caching techniques that cloudflare has to offer. Even if your server goes down your website will be cached by cloudflare.

So im probably going to cache the photo gallery app through cloudflare. and that would solve the 1-2 second delay.

If you are using S3 it is pretty trivial to use it as as origin for cloudfront.

On an aside, you should also look at using webp w/poly fills to speed up your images


Join the discussion

Want to stay up-to-date with Ruby on Rails?

Join 53,130+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.

    logo Created with Sketch.

    Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

    © 2021 GoRails, LLC. All rights reserved.