EC2 vs Fargate for periodic workloads



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.


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 2 months ago40 views
2 Answers

AWS Batch would be highly recommended here.

answered 2 months ago

Also if the processing does not take long (less than 15 minutes), you can consider using Lambda functions -

If your processing can take longer than 15 minutes, you can also consider AWS Step Functions Standard Workflows -

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

profile picture
answered 2 months 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