Reference architecture
Let's look at what a reference architecture for a real-time photo processing app will look like using the serverless resources that AWS offers. Let's look at one use case for an app that creates different types of resolution for a photo as soon as it gets uploaded to an Amazon S3 bucket. The end result will also be stored in an S3 bucket. You can also look at AWS Well Architected Framework for reference at https://d1.awsstatic.com/whitepapers/architecture/AWS_Well-Architected_Framework.pdf
S3 bucket
We need an Amazon S3 bucket to which the photos can be uploaded for further processing. Let's learn about S3 first.
Amazon S3 is object storage built to store and retrieve any amount of data from any location. You can learn more about Amazon S3 at https://aws.amazon.com/s3/:

You can have AWS Lambda functions invoked to process Amazon S3 events, such as object created or object deleted events. You can have the AWS Lambda function invoked whenever a new photo is created in...