Hello all! I'm new to serverless apps, and I would...
# general
m
Hello all! I'm new to serverless apps, and I would like to make a new one for a back-end of a website that shows a list of about 100-200 images. The total dimension of them is less than 1GB. I'm thinking to store these images to S3 and to show them in the web app using CRUD APIs. The images can be changed by an administrator user logged in the web app, that's the reason why I would like to store them to S3 and not to put them statically in the front-end. Can this be too expensive, due to the frequent GET APIs called to show the images when the website is visited? Is there a better solution to make this? Thanks 😃
p
Hosting images on AWS is a very common use-case and it's likely you wont mind the bills. How much traffic are you expecting? Have you tried the AWS Calculator? https://calculator.aws/#/createCalculator/S3
r
Also, if you’re allowing the upload of images I strongly recommend looking into using presigned URLs for that, saves a whole world of encoding complication in my experience.
m
@PÄl Brattberg I have not tried AWS Calculator, thanks for the suggestion. I assume that the amount of data return by S3 Select increases each time a GET API is called to show one or more images together, am I right? By the way it seems to be affordable. By sure the POST requests will be less than 100 per month, the number of GET API is more difficult to estimate, but I think that it will be by sure less than 1000000 per month. Thank you.
@Ross Coundon thank you for the recommendation
c
@Matteo Rampado btw, ICYMI, aws recently announced S3 Object Lambda, which may have interesting use cases when dealing with images https://aws.amazon.com/s3/features/object-lambda/