goosefraba / aws-elasticbeanstalk-worker-spring-boot-example

Example of a Spring Boot worker application for AWS ElasticBeanstalk
Apache License 2.0
0 stars 0 forks source link

Parallel processing across Elastic Beanstalk instances #1

Open AZBY-droid opened 6 years ago

AZBY-droid commented 6 years ago

Thanks for your Beanstalk Worker example! Dear Bernhard, I deployed a spring boot app on Beanstalk with load balancing providing multiple instances. But when uploading files, only one instance processes the files. How to configure Worker Environment to distribute files across instances? Thanks in advance!

goosefraba commented 6 years ago

Hey! Well, that's a good question. In general, I don't use a LB in front of a batch environment. Because the batch environment queries on a SQS queue anyway, I can easily scale and "load balance" by adding more instances that query the queue. As there is no external traffic to the instances, I would say you don't need a LB.