Trying to use Lambda to perform backend tasks

+2 votes
I have an app which consist in an Angular4 as frontend and Java app as Backend. But I´m planning to use AWS Lambda as I´m interested after seeing the videos in Amazon.

The issue is that I don´t know how to get the best from AWS.

My Java app has a very time consuming task to process some images (which takes several seconds).

But I'm not sure if I can deploy all my app in Lambda, or if the idea is to use a EC2 server and then the specific task for the image processing in the lambda. Can anyone please shed some light here?

Also, the frontend app can be deploy in a lambda, or again, lambda is just for specific task?

EDIT: The application flow would be: The user in the angular app upload an image, the image goes to the backend server in Java and it´s stored in (maybe) a AWS bucket.. Then the Java app with imagemagick process the image and the result is store in (maybe) another bucket.

So the question is when I need to use Lambda? just to convert the image or if the full backend (and maybe frontend) app would be there?

help me with lambda connection
May 14, 2019 in AWS by code_ninja
• 6,300 points

retagged May 16, 2019 by Kalgi 751 views

1 answer to this question.

+1 vote

AWS Lambda is a service used for serverless computing. i.e  cloud provider runs the server, and dynamically manages the allocation of machine resources. 

S3 is a storage service but can be used to host static websites. So to deploy Angular frontend use Amazon S3. 

To show image processing results -

For backend image processing you can use Lambda and AWS API Gateway along with S3. For this recommended  you can use the API Backend to get an Signed URL or AWS STS in Lambda to get temporary access to Amazon S3 Bucket to Upload the image directly to S3 from Angular App.

After Uploading the image to S3 you can setup an event driven workflow by using Amazon S3 triggers to invoke an Lambda function to perform the image processing and save the process image back to S3 

answered May 14, 2019 by ArchanaNagur
• 2,360 points

Related Questions In AWS

0 votes
1 answer

Trying to use GetApiKeys in Amazon SDK

Try using this one:  var client = new ...READ MORE

answered Jun 12, 2018 in AWS by Cloud gunner
• 4,670 points
1,170 views
0 votes
1 answer

Why does Amazon ECS launch tasks when trying to launch containers?

Docker encourages you to split your applications ...READ MORE

answered Nov 12, 2018 in AWS by Archana
• 5,640 points
749 views
0 votes
1 answer

How do I invoke another lambda async and pass context to it?

I tried several times trying to pass ...READ MORE

answered Apr 27, 2018 in AWS by Cloud gunner
• 4,670 points
6,322 views
0 votes
1 answer
0 votes
1 answer
+2 votes
3 answers
0 votes
1 answer

AWS EFS vs EBS vs S3 (differences & when to use?)

Parameters S3 EBS EFS Access Can be accessed publicly  Accessed only through given ...READ MORE

answered Aug 9, 2018 in AWS by ArchanaNagur
• 2,360 points
1,624 views
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP