Hacker News new | ask | show | jobs
by gurjeet 1543 days ago
I use mostly this same setup for my personal site and blog [1] [2].

Git (versioning) -> Github (Git hosting) -> Github Pages (static site generation, and hosting) -> Cloudflare Free Plan (DNS and CDN). I have a Gitlab account that has mirrors of my Git repos, just in case.

One question, though. How do you use more than one CDN to front your website?

[1]: https://gurjeet.singh.im/ [2]: https://github.com/gurjeet/gurjeet.singh.im

1 comments

Just add DNS records pointing to both those CDNs. Your DNS hosting provider can serve them in rotating order to different users, there by spreading the load across your CDN providers. In case one CDN goes down, the browsers will try the next addresses in the DNS response.

You could get redundancy for the authoritative DNS hosting provider as well. Add both provider NS server records at your domain registrar. Then, your only single point of compromise would be your domain registrar.

You could get two different domains (on different tld) via different registrars and have both domains point to the same site. Of course, unless people know the alternate domain, this isn't of much help. But for a mobile app's api endpoint, I would recommend a setup like this to make it truly bullet proof.