CloudFront caching (CDN) for Rails application
Content Delivery Network (CDN) :
- distribute your content to multiple geographic locations and to serve it up to your users in the most optimal way possible
- lets you reduce the number of requests your web servers need to handle
CloudFront:
- There are numerous CDN services available but I find CloudFront is a simple and inexpensive option that can suit the needs of many sites and applications.
- Can’t I just use S3 to host my static assets? While it is certainly possible, this is not ideal. S3 was really designed and optimized for storage and not for distribution. You can use S3 as an origin for your CloudFront distribution but you should avoid serving your assets directly from S3.
-
Source:
1) https://ryaneschinger.com/blog/using-cloudfront-to-speed-up-your-rails-application/
2) https://aws.amazon.com/blogs/developer/caching-the-rails-asset-pipeline-with-amazon-cloudfront/
3) https://medium.com/@tranduchanh.ms/optimize-rails-app-performance-with-rails-amazon-cloudfront-e3b305f1e86c
4) https://www.happybearsoftware.com/use-cloudfront-and-the-rails-asset-pipeline-to-speed-up-your-app.html
- distribute your content to multiple geographic locations and to serve it up to your users in the most optimal way possible
- lets you reduce the number of requests your web servers need to handle
CloudFront:
- There are numerous CDN services available but I find CloudFront is a simple and inexpensive option that can suit the needs of many sites and applications.
- Can’t I just use S3 to host my static assets? While it is certainly possible, this is not ideal. S3 was really designed and optimized for storage and not for distribution. You can use S3 as an origin for your CloudFront distribution but you should avoid serving your assets directly from S3.
-
Source:
1) https://ryaneschinger.com/blog/using-cloudfront-to-speed-up-your-rails-application/
2) https://aws.amazon.com/blogs/developer/caching-the-rails-asset-pipeline-with-amazon-cloudfront/
3) https://medium.com/@tranduchanh.ms/optimize-rails-app-performance-with-rails-amazon-cloudfront-e3b305f1e86c
4) https://www.happybearsoftware.com/use-cloudfront-and-the-rails-asset-pipeline-to-speed-up-your-app.html
Komentarze
Prześlij komentarz