I have a specific functional requirement where need to accumulate all waiting messages from SQS to my apache camel component and write the business logic among them.
I am using two ec2 instances with single load balancer.
Suppose if I send 100 messages to the queue. Out of 100, x messages are going to instanceA and (100-x) messages are going to instanceB. Hence I am not able to accumulate all 100 messages at single instance.
Is there any way, I can send the SQS messages to a particular EC2 instance only
OR
I can send the messages from one EC2 to other EC2 instance. Note: Both EC2 instances are running on same port.