Hi there,

We're using S3 to deliver files on a new Commerce site.

We're also using commerce_license and amazons3_ffs modules (and filefield_sources as requirement of amazons3_ffs) so that we can limit the number of downloads for each purchase and have the files stored on S3.

We've got it set up okay so the user purchases and gets the file link, but when they click through it is VERY slow. Sometimes averaging 8 kbps. We're delivering very large audio files, hundreds of MB each, so we need it to be much faster.

As I understand it, we can't use CDN effectively because of the way the license module creates a unique link to each file, so I believe we're stuck with S3 native download speed. (Although I'd be very happy to be corrected about that.)

I understand CDN would be faster but even a normal download rate would be acceptable. Even straight S3 shouldn't be as slow as what we're seeing. Occasionally during development we have noticed it working at good/normal speed but now that everything else is in place it is consistently VERY slow downloads. We're not sure what would be causing it and our debugging and googling has been unfruitful.

My question is: is this caused by our setup somehow? Does anyone have experience doing this that can shed some light into how to make it work so that we get reasonable file downloads?

Comments

JmsCrk’s picture

To clarify: if I download a file from S3 directly speed is not an issue.

It's when I get the links like this that it is very slow: http://oursite.com.au/file/108/download?token=ii0eLI6bWhoR7vV6NuYp3FTTXf...

Is it pushing the file data through the site somehow, before being downloaded?

JmsCrk’s picture

I think this may be related to https://www.drupal.org/node/2379669#comment-9832159 so possibly I need to continue this conversation over there - although any insights here most welcome of course.

DamienMcKenna’s picture

Version: 7.x-2.0-beta3 » 7.x-2.x-dev