Trouble writing image to AWS S3

Pretty sure like with most things there are advantages and disadvantages to
all ways of doing it.

If however you do go down the route of uploading directly to S3 I would
warn you that doing image manipulation on an image stored on S3 already via
Lucee is SLOW!!! If you are going to upload directly to S3 I would suggest
the Lambda route would be far quicker.

Kind regards,

Andrew
about.me http://about.me/andrew_dixon - mso http://www.mso.net - Lucee
Association Member http://lucee.orgOn 4 November 2015 at 20:44, Michael Wood <@Michael_Wood> wrote:

Guys, is there a disadvantage to doing this the way I’m doing it; that
is uploading to an EC2 instance, processing the images, and then moving
them into S3?

Or saying it the other way around, are there potential compelling
advantages to uploading straight to S3 and then post-processing the images?

Our pre-processing in EC2 includes image/file type validation, security
checks, image conversion to jpg (as a standard), image re-sizing, creation
of a thumbnail, AND we do a web service call to get an id to name the file
which also determines a “folder name” to use in the object name for S3. It
seems like we will have a lot more control this way. And amazingly all of
this happens pretty quickly. Of course I haven’t had an opportunity to do
load testing yet. Uploading directly to S3 might be more robust.

The other advantage to pre-processing is that the end user immediately
SEES the uploaded/processed image and thumbnail (OR the failure to
upload/process and can try again).

Mike Wood

On Wednesday, November 4, 2015 at 10:55:49 AM UTC-8, Pete Freitag wrote:

As Michael Van Leest suggested you could have another bucket that
receives the raw uploads, and then process those using a bucket event
notification:
Enabling and configuring event notifications using the Amazon S3 console - Amazon Simple Storage Service
which would be a callback that AWS makes to your server after the upload is
complete.

A lambda function would probably be the ideal solution for this, but if
you want to process it on your server you can do a bucket event instead.

Pete Freitag


Love Lucee? Become a supporter and be part of the Lucee project today! -
http://lucee.org/supporters/become-a-supporter.html


You received this message because you are subscribed to the Google Groups
“Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/9e021b2f-edf8-4dc8-a469-89e0999a5350%40googlegroups.com
https://groups.google.com/d/msgid/lucee/9e021b2f-edf8-4dc8-a469-89e0999a5350%40googlegroups.com?utm_medium=email&utm_source=footer
.

For more options, visit https://groups.google.com/d/optout.