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
5 days ago in AWS by code_ninja
• 5,690 points

retagged 4 days ago by Kalgi 6 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
+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 5 days ago by ArchanaNagur
• 1,010 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,240 points
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,280 points
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,240 points
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 8, 2018 in AWS by ArchanaNagur
• 1,010 points
0 votes
1 answer

Does it make sense to have an Amazon Elastic Load Balancer with just one EC2 instance?

Well you are right Elastic Load Balancer ...READ MORE

answered Mar 20 in AWS by ArchanaNagur
• 1,010 points

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.