Mobile app version of vmapp.org
Login or Join
Shanna517

: Using CDN vs having your own static server, and how it's done? I would like to speed up my site and am considering moving all static files and user uploaded content to a separate server.

@Shanna517

Posted in: #Apache #Cdn #StaticContent

I would like to speed up my site and am considering moving all static files and user uploaded content to a separate server. I have an option to use a CDN or to setup my own static server and serve files with lighttpd from there.

My questions are:

When should I choose CDN and when is it a good idea to use your own server?
Would using your own server be more cost effective?
How are CDNs integrated ussually? Is there a client software installed on my server that pushes new data (user uploaded content) to the CDN?
What is the best practice for setting up your own static server and is rsync used for moving files over?

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Shanna517

2 Comments

Sorted by latest first Latest Oldest Best

 

@Angela700

CDNs are usually a better choice when your traffic is distributed globally, meaning latency for the requests by the visitor are reduced as they are served from the nearest geo-located server that hosts the content being requested.

If most of your traffic is coming from the same country, then you could reduce your costs/complexity by using your own server.

There's some related QnA's on the 'how':
CDN - CDN - Content Delivery Networks. How do they work and why would I want to use one?
Static - How many domains to split components across?

10% popularity Vote Up Vote Down


 

@Eichhorn148

When should I choose CDN and when is it a good idea to use your own server? Would using your own server be more cost effective?


It may be - if you have a high and steady stream of traffic then your own server may be more cost effective. CDNs however may let you spike in traffic, or adjust what you pay on the fly according to demand, so they may be better if you have very low traffic or if your traffic is subject to change or spike.

This of course varies between providers, so keep an open mind when shopping around.

Aside from price, there is also the question of whether you are competant enough, or can afford the time, to set up your own server and keep it secure, backed up and up to date.


How are CDNs integrated ussually? Is there a client software installed on my server that pushes new data (user uploaded content) to the CDN?


This varies between providers, and I have no experience with the bigger ones (Amazon, etc) to answer this bit in depth.


What is the best practice for setting up your own static server and is rsync used for moving files over?


Yes, you can rsync where-ever SSH is supported and it's how I usually move files to a server.

I find the Linode library a great place for resources about setting up a linux based server.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme