Building Your Own CDN for Fun and Profit
pasztor.at
Building Your Own CDN for Fun and Profit
1–10 of 65 posts
Re: Building Your Own CDN for Fun and Profit
#2Re: Building Your Own CDN for Fun and Profit
#3Re: Building Your Own CDN for Fun and Profit
#4I thought Cloudflare uses Anycast to avoid targeted DDOS? How do they handle changing routes during HTTP requests?
Re: Building Your Own CDN for Fun and Profit
#5Re: Building Your Own CDN for Fun and Profit
#6> Second, BGP routes are not that stable. While DNS requests only require a single packet to be sent in both directions, HTTP (web) requests require establishing a connection to download the content. If the route changes, the HTTP connection is broken. I thought Cloudflare uses Anycast to avoid targeted DDOS? How do they handle changing routes during HTTP requests?
The route will not “change” unless cloudflare changes their routing, or you change your location/IP so that a shorter route exists. Once you’ve changed your IP, you’ve already interrupted any TCP sessions anyway.
You might find these two blog posts from LinkedIn to be helpful:
https://engineering.linkedin.com/network-performance/tcp-ove...
https://engineering.linkedin.com/blog/2016/04/the-joy-of-any...
Re: Building Your Own CDN for Fun and Profit
#7> Using SSL/TLS certificates
> The next pain point is using SSL/TLS certificates. Actually, let’s call them what they are: x509 certificates. Each of your edge locations needs to have a valid certificate for your domain. The simple solution, of course, is to use LetsEncrypt to generate a different certificate for each, but you have to be careful. LE has a rate limit, which I ran into on one of my edge nodes. In fact, I had to take the London node down for the time being until the weekly limit expires.
> However, I am using Traefik as my proxy of choice, which supports using a distributed key-value store or even Apache Zookeeper as the backend for synchronization. While this requires a bit more engineering, it is probably a lot more stable in the long run.
Re: Building Your Own CDN for Fun and Profit
#8Re: Building Your Own CDN for Fun and Profit
#9I am curious, if anyone knows how well does Akamai work in the CDN world?
Re: Building Your Own CDN for Fun and Profit
#10Side effect of this tool as you might have guessed is that using it will actually prolong the time your content stays in their cache.