Re: Digital Downloads and Scale
| From: | Paul Scott | Date: | Mon, 21 Jan 2008 04:27:07 +0000 |
| Subject: | Re: Digital Downloads and Scale | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-267743@lists.php.net to get a copy of this message | ||
On Mon, 2008-01-21 at 02:43 +0100, Jochem Maas wrote:
> use simple code, optimize your db and go and read up on everything you can find
> about optimizing [download] connections on your webserver ... these spring to
> mind
>
In addition to optimizing code and db (I presume that includes using
things like memcacheD, APC and a clustered db system), you should also
take a look at using something like LVS and lighthttpd to serve your
static content.
If your webserver is getting busy fulfilling requests to a download
file, simply pass the download bit to a static server running a
lightweight httpd and nothing else. Files are completely static, so this
is really quite a cool solution for this type of situation.
--Paul