How to use Drupal with CDN providers like Akamai ?
davidslee9 - July 18, 2007 - 23:09
I want to publish the photos, audio, video uploaded by users to a CDN provider's servers (akamai) to reduce the traffic from the drupal servers from serving rich content. Has anyone done this and what it would take to change the modules to do this?
Is it simply changing the storage location from file system to a URL?
Thanks - a newbie who loves drupal
David

I would love to know as well
This is huge a debate here!
Akamai for audios and videos
For video, you will have to publish them on your site like a regular video file (or audio file). For example, a "akamai-ready.mov" will need to be saved locally on your Drupal web site. So any Drupal video module will do the work.
The Akamai-ready video (and audio) files are in essence a simple XML file embedding URL pointing to Akamai reflectors. The end user thinks he is downloading from your site.
So, yes, you can use Drupal with a CDN like Akamai.
I haven't done any photo through Akamai, though. However, I'm sure you can use Drupal safely for these types of files.
Thanks
Glad to hear it can work. Can you be more specific on how this would be done?
Thanks
David
By the way, CDN's are
By the way, CDN's are Yahoo!'s number 2 way or increasing performance on your website: http://developer.yahoo.com/performance/rules.html#cdn
Actually, here are Yahoo!'s suggestions:
1. Make Fewer HTTP Requests
2. Use a Content Delivery Network
3. Add an Expires Header
4. Gzip Components
5. Put CSS at the Top
6. Move Scripts to the Bottom
7. Avoid CSS Expressions
8. Make JavaScript and CSS External
9. Reduce DNS Lookups
10. Minify JavaScript
11. Avoid Redirects
12. Remove Duplicate Scripts
13. Configure ETags
---
the Hushed Casket | Eric Atkins
Akamai module
At France 24 we are creating an Akamai module to allow Drupal to be correctly
cached by Akamai caching services. We encountered problems caching the
result of some form posts.
Ex: an internet user post a comment. The page displayed does not
contain the confirmation message that indicates the comment has been
submitted...
We have created a module that hooks every submit function used by
Drupal. When a submit is done, Drupal makes a redirect to the orginial
page. On this redirect we add a querystring "?bypass=1" And we
configure Akamai for not caching pages that contains ?bypass=1
We will publish this module xhen it will be correctly tested.
Hi there, is there any
Hi there,
is there any progress developing this module? If there's a alpha/beta, could you publish a snapshot? I'm very interested in using it and maybe could provide help at development.
Bye,
Stefan
Did you find this CDN module?
Stefan,
Did you find this CDN module? http://drupal.org/project/cdn
The author's website says he has plans to improve/upgrade to D6 too. (I would like to use it with D6 as I understand that it already puts multiple css/js files from modules into single css/js files, which much improves perceived page loading speed.)
Not sure if this is important to you, but from memory it's not for Akamai, but another provider CacheFly?
I also read that another project that the author is involved with uses a provider called SimpleCDN.com, and rates them highly, so perhaps the D6 port will work with them out of the box?
Fingers crossed that he has some spare time or a sponsor :)
Yes, I saw the CDN-Module,
Yes, I saw the CDN-Module, but it didn't work for me/Akamai.
I wrote a dirty workaround that checks the referer and, depending on it, leads the user on to the source server or the CDN-mirror. I have to say, my scenario isn't that complicated: all files (sites, media files) are fetched either completely from a source server or completely from a mirror, depending on the server load, so it's easy to switch the complete traffic from one server to the other.