Hi,

Rackspace integrates and uses Akami as a CDN in-front of CloudFiles.

Amazon also offers a CDN which you can use with S3. It's called CloudFront
and it's a separate service.

The problem in this case is that S3 driver doesn't implement *cdn* methods.

The ideal solution would be to implement those methods on the S3 driver.
It's worth nothing that unlike CloudFiles and their CDN integration,
CloudFront is less coupled with S3 so implementing those methods will
require a bit more work.

As far as the get_url goes. You could add this method, but it's worth
nothing that there are two difference concepts in play here and get_url !=
get_cdn_url.

First one is a direct object storage URL (for a lack of better term) and
the second one is CDN URL. The difference is that in the first case, object
is server directly from the object storage cluster (without any benefits
you get from using CDN) and in the second case, the object is server from
CDN.


On Sat, Dec 21, 2013 at 10:48 AM, Miguel Paraz <mpa...@gmail.com> wrote:

> Hi,
> I'm looking to use libcloud to unify access to CloudFiles and AWS S3.
> CloudFiles are exposed by Rackspace to their CDN, so get_cdn_url() makes
> sense.
> S3 does not, and get_cdn_url() is not supported in any case.
>
> Would it make sense to have a get_url() that will return the
> https://s3.amazonaws.com/ ... URL?
> Or is there a common solution for this, without having to have a separate
> branch in my code.
>
> Thanks,
> Miguel
>

Reply via email to