Path

ez projects / xrowcdn / forum / general / integration with other cdns...


integration with other cdns - highwinds

You need to be logged in to post messages in the forums. New users may register here.

Gaetano Giunta

Member since:
30 November 1999

Posts: 269

Monday 30 November 2009 6:59:54 pm

I have been working on this for a customer project.
Highwinds (http://www.highwinds.com/) is similar to S3, in that it is a store for files, not a website cache.

It looks thus natural to try to collaborate to bring the new cdn capabilities into the existing extension.

What I have found so far:
- I'd forego the usage of a filter to rewrite content urls, in favor of a template operator. In my case, only some content would be on the cdn, other content not
- current API is quite limited:

/** given a relative url, returns the full cdn version. Expires (timestamp) is mandatory if the dir on the cdn has been protected. File extension can be changed (eg; .flv => .flv.smil) */
public static function fileUrl( $relurl, $expires=false )
/** uploads a local file to given cdn dir */
static public function uploadFile( $localfilename, $remotefilename )

The main difference from amazon being the lack of the bucket concept and the fact that on hw there are 3 top-level folders where files can be uploaded, one for binary files, one for streaming flvs via rtmp and one for streaming wma.
Right now the correct choice is done transparently based on file extension, but more user-control might be a good idea...

Comments?

Principal Consultant International Business
Member of the Community Project Board

Up

You need to be logged in to post messages in the forums. New users may register here.