would it be a good design to deploy a Spring batch application using AWS Batch service?

I am doing a POC for batch application which is expected to be deployed in AWS cloud.

This batch is application is heavy expected to compute huge calculation for 2m-10M of records monthly. So number of EC2 instances has to grow dynamically based on the load.

Actually I was thinking of creating a spring-batch application that will be deployed in AWS ECS service.

However I see new AWS-Batch service which is also helping to deploy the job.

My question is can I deploy my spring-batch application using AWS-Batch assuming my batch application is containerized using docker. is it a good approach or should I go with deploying in ECS? Please suggest.

Thanks, Mani.

Upvotes: 1

Views: 4126

Answers (1)

Thomas Kainrad
Thomas Kainrad

Reputation: 2830

From the information you have given, AWS Batch seems to be ideal for your application.

In general, ECS should rather be used for hosting services, while AWS Batch does computation. Also, AWS Batch is actually built on top of ECS for providing the functionality your application is likely to need. It also works well with Spot instances and will therefore save you money.

Further resources:

Upvotes: 0

Related Questions