Linode Forum Index Linode Forum
Linode Community Forums
 


Linode CDN

Click here to go to the original topic

 
       Linode Forum Index -> Feature Request/Bug Report
Author Message
nfn



Joined: 21 Jan 2009
Posts: 104

Posted: Mon Feb 06, 2012 11:02 am    Post subject: Linode CDN  

Hello,

Now that Linode has 6 datacenters, would a service for pull content distribution make sense?

This is a way of making the delivery of static content more closer to users.

Just a suggestion :)

Thanks
Back to top  
Guspaz



Joined: 26 May 2009
Posts: 1150
Location: Montreal, QC

Posted: Tue Feb 07, 2012 10:28 am    Post subject:  

It might, but it's worth pointing out that there's nothing stopping you from doing this yourself. I don't mean to come across as negative, only to point out how powerful a platform Linode is, that you could easily design a CDN on top of it.
Back to top  
goospoos



Joined: 24 Sep 2011
Posts: 4

Posted: Thu May 03, 2012 1:57 am    Post subject:  

How exactly you're suggesting to use Linode as CDN?
I think it's better if Linode itself provide CDN service out-of-box. It would be great and efficient as all static content as well as dynamic content serving from one provider.
And that will give Linode another stream of revenue too. :D
Back to top  
Guspaz



Joined: 26 May 2009
Posts: 1150
Location: Montreal, QC

Posted: Thu May 03, 2012 11:01 am    Post subject:  

Get a linode in each datacenter, synchronize the static content between each of them, boom, you have a CDN. You can direct users to a given content server by using a free geolocation database on their IP when they first hit the server, which should be good enough considering how far apart most of the datacenters are.

If you want to get fancier, a caching reverse proxy on the CDNs would automatically handle keeping only the most highly demanded content locally cached on each node, allowing the CDN machines to have a much smaller storage space than the master node. Even Squid can do this fairly trivially, and you don't have to worry about synchronization.

I'm not saying it wouldn't be nice if Linode did this all for us, I'm just saying that if there is a strong need, you can do it yourself relatively cheaply. The minimum monthly cost to run a Linode-based CDN with coverage from each datacenter is $101.76 per month, but you probably only need three or four Linode datacenters to get decent geographic coverage. Some US datacenters are close enough together that they're less valuable. It's more useful, for example, to have Newark/London/Tokyo than it is to have Newark/Atlanta/Dallas.
Back to top  
goospoos



Joined: 24 Sep 2011
Posts: 4

Posted: Thu May 17, 2012 11:42 am    Post subject:  

But that's lot of money and effort for relatively small blog having 75k visits monthly...
If linode can provide something out of the box, it would be much cheaper, efficient and painless.
Right now I'm considering MaxCDN, but looking at some of the reviews, I want to wait for Linode.
It would be great if some staff personal from Linode can comment on this.

-Divyang
Back to top  
Azathoth



Joined: 07 Dec 2009
Posts: 263

Posted: Thu May 17, 2012 11:52 am    Post subject:  

goospoos wrote: But that's lot of money and effort for relatively small blog having 75k visits monthly...
-Divyang

Which begets the question what's the CDN for, then? CDNs are used when large amount of traffic justifies geographic dispersion of data. That large amount of traffic should then generate revenue to pay the infrastructure.
Back to top  
Azathoth



Joined: 07 Dec 2009
Posts: 263

Posted: Thu May 17, 2012 11:59 am    Post subject:  

BTW, I don't like promoting Linode competitors on Linode forum, but there's one with "files (in the) cloud" service that I used for over a year, primarily as offsite backup. With a flip of a switch you can turn the bucket into public CDN, and it has nice Python bindings so I incorporated it into my apps directly, deliverying all uploaded content to it.

The drawback was (still is if I'm not mistaken) that you can't CNAME the buckets so if you want to switch the provider it'll be a huge pain to rewrite all the links to CDN'ed content.

So if Linode was to implement one, I'd say these would be awesome features:

1. RESTful api, with Python bindings ( :mrgreen: )
2. Ability to select locations
3. Private/public bucket switch
4. CNAME'd or otherwise branded bucket URLs
5. Automatically scallable, ie. or at least storage upgrades with a flip of a switch
Back to top  
hoopycat



Joined: 30 Aug 2008
Posts: 1294
Location: Rochester, New York

Posted: Thu May 17, 2012 6:16 pm    Post subject:  

Azathoth wrote: The drawback was (still is if I'm not mistaken) that you can't CNAME the buckets so if you want to switch the provider it'll be a huge pain to rewrite all the links to CDN'ed content.

If you're changing the base URL in more than one place, you're working too hard. See also this sexy beast.
Back to top  
Azathoth



Joined: 07 Dec 2009
Posts: 263

Posted: Thu May 17, 2012 6:48 pm    Post subject:  

hoopycat wrote:
If you're changing the base URL in more than one place, you're working too hard. See also this sexy beast.

As I'm developing with Pyramid, it's a matter of single line change in config.

But I'm talking about stuff for example used in Facebook apps which was my case, or any other scenario where you have to distribute content to systems where you can't easily (or at all) change it. Fortunately the app died (lol!) before I needed to switch CDN provider, but still....
Back to top  
mnordhoff



Joined: 03 May 2008
Posts: 451

Posted: Thu May 17, 2012 11:40 pm    Post subject:  

Azathoth wrote: Which begets the question what's the CDN for, then? CDNs are used when large amount of traffic justifies geographic dispersion of data. That large amount of traffic should then generate revenue to pay the infrastructure.
Unpopular websites aren't allowed to be fast?

By the way, if you're referring to the competitor I think you are, they offer CNAMEs for http content now, though not https.
Back to top  
Azathoth



Joined: 07 Dec 2009
Posts: 263

Posted: Fri May 18, 2012 5:03 am    Post subject:  

mnordhoff wrote:
By the way, if you're referring to the competitor I think you are, they offer CNAMEs for http content now, though not https.

So it seems they do. Funny, I never saw a news post or any notification...
Back to top  
Guspaz



Joined: 26 May 2009
Posts: 1150
Location: Montreal, QC

Posted: Fri May 18, 2012 10:19 am    Post subject:  

mnordhoff wrote: Unpopular websites aren't allowed to be fast?

Rather, they don't need a CDN to be fast. Heck, I'm about as far as you can possibly get from Australia, and yet a site like ausgamers loads plenty fast for me. Yes, geographic distribution of static content will speed up loading a bit, but if you've got a well optimized and well connected site to begin with, not enough to be worth it.

CDNs tend to be more useful for the "handle massive load with minimal effort" use case, IMO.
Back to top  
 
       Linode Forum Index -> Feature Request/Bug Report
Page 1 of 1