Amazon CloudFront vs cdnjs: What are the differences?
Amazon CloudFront and cdnjs can be primarily classified as "Content Delivery Network" tools.
"Fast" is the top reason why over 245 developers like Amazon CloudFront, while over 2 developers mention "Free" as the leading cause for choosing cdnjs.
cdnjs is an open source tool with 7.73K GitHub stars and 4.03K GitHub forks. Here's a link to cdnjs's open source repository on GitHub.
According to the StackShare community, Amazon CloudFront has a broader approval, being mentioned in 3387 company stacks & 621 developers stacks; compared to cdnjs, which is listed in 7 company stacks and 9 developer stacks.
What is Amazon CloudFront?
What is cdnjs?
Want advice about which of these to choose?Ask the StackShare community!
Sign up to add, upvote and see more prosMake informed product decisions
What are the cons of using cdnjs?
Sign up to get full access to all the companiesMake informed product decisions
Sign up to get full access to all the tool integrationsMake informed product decisions
CDNJS used to be a viable resource, and a great idea. Unfortunately, three years later, the maintainers have added so much cruft and useless layers of bureaucracy that makes it so difficult to add new libraries, that contributors are walking away rather than deal with the technical issues and arrogance of the maintainers. I'm sorry to say that the useful days of CDNJS are gone.
I love CloudFront. All my assets are hosted by them, and they cut page load time in half, and my average bill is around $0.15/month. They're good, fast, and cheap — pick three!
We chose CloudFront mostly because it’s incredibly popular. But also because it’s the recommended CDN for Heroku, which means there shouldn’t be any problems using them together. Rails makes it really easy to drop in a CDN reference for your app so that when your assets get compiled, they’re shipped off to the CDN and then deployed with your app.
So anytime we push to Heroku, we’re pushing up to CloudFront (if the assets don’t already exist). One major issue we still haven’t been able to solve involves Fonts. Has anyone actually been able to get fonts served up through CloudFront using Rails 4 and Heroku? Literally spent hours researching this and can’t find any solutions. We ended up just referencing a CDN for all the font libraries.
We have a separate distribution for each environment, since I don’t think it’s possible to use the same distribution for the multiple domains.
I use CloudFront to front the static website at zerotoherojs.com that I host in an s3 bucket.
This way, I don’t have to worry about scalability or performance, as I’ll know that the content will be delivered to the users as fast as possible from the closest edge location.
Parked in front of an nginx instance that serves all of our static assets. Performance and reliability have been excellent, and the header pass-through rules are wonderful. Price is affordable, as well.
In my opinion, the best Content Delivery Network for the money. This, along with other services from AWS's ecosystem make this the easy choice for CDN. Fast, simple and cheap.