To pick up on this:
Isn't this a huge security risk?
The short answer is no, although it depends on what you mean by “security”.
It’s a risk to availability - as we have seen by the recent outage, but, as with many things, there has to be a cost-benefit analysis.
There are two alternatives to using a CDN service like Fastly:
- Host it yourself, with a large number of edge sites around the world, to ensure high speeds for every user, or
- Don’t use any CDN and accept that speeds will be slower.
Option 1 has an obvious cost: the purchase, maintenance, disposal and administration of hardware has a (fairly high) cost. There’s also still a risk here: why would you be able to do better at hosting a CDN than Fastly? Fastly is a company entirely focused on the provision of the CDN, and they employ industry leaders. Your company would not be!
Option 2 is less obvious, but there will be users who don’t use your shop / read your blog / sign up for your service if they perceive your website to be slower than your competitors.
There are two costs to using Fastly: the service costs money, and sometimes the service fails.
The question (which is hard to answer) is: which costs more? Fastly or no Fastly.
Clearly, even large websites which do have significant presence in edge nodes around the world still see an advantage to using Fastly, notably Amazon - a subdivision of which (AWS) does offer a CDN! Now, perhaps that advantage has reduced, given how significant the recent outage was, but I imagine it’s still in favour of Fastly in a lot of use cases.