Vivek Puurkayastha
Vivek Puurkayastha

Reputation: 536

Alternative to Lambda for Serverless Long running tasks

I am using a AWS Step function, where I have a map task. For each item in the input to the map task, plan was to trigger a Lambda function. I had designed the wireframe as such.

But now there has been change in the function code and the new code takes around 1+ hours in CPU and there is also a possibility to run it with GPU support.

Thus, I need to replace Lambda functions with another serverless aws service. Please suggest on which service to use?

Thanks.

Upvotes: 12

Views: 13399

Answers (2)

johannes jeppsson
johannes jeppsson

Reputation: 1

Maybe an Autoscaling Group that scales out EC2 machines. This way you can specify an AMI that suits your needs.

Upvotes: 0

Mark B
Mark B

Reputation: 200562

The "serverless" solution to running a task on AWS for more than 15 minutes is to run it as an ECS task with a Fargate launch type.

Step Functions can manage ECS Fargate tasks

Upvotes: 15

Related Questions