EC2 vs Fargate for periodic workloads

0

Context:

Workload will be periodic and predictable Don't want to go with on-demand EC2 since most of the time it won't be active.

Questions:

How we can only spawn an ec2 when we need and close it after it's done with a task? Would fargate be a better choice for this situation?

asked a year ago222 views
2 Answers
0

AWS Batch would be highly recommended here.

AWS
answered a year ago
0

Also if the processing does not take long (less than 15 minutes), you can consider using Lambda functions - https://aws.amazon.com/lambda/faqs/

If your processing can take longer than 15 minutes, you can also consider AWS Step Functions Standard Workflows - https://aws.amazon.com/step-functions/faqs/

Both Lambda functions and Step Functions are completely serverless. You don't have to worry about provisioning any infrastructure.

profile pictureAWS
EXPERT
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions