<p>I am planing on using <strong>AWS SQS</strong> to receive messages from server and then instantly have <strong>Kubernetes Load Balancer</strong> consume them and pass each message to one of the pods.</p>
<p>My biggest concern is in which way can Load Balancer be triggered by AWS SQS.</p>
<p>Is this possible to do?</p>
<p>If yes in what way?</p>

<p>To expand on @Marcin's comment:</p>
<p>There is no integration between the Elastic Load Balancer implementations and SQS in any direction. Part of the reason is, that they both implement a pattern, which requires a trigger from the outside for them to do anything.</p>
<p>To consume a message from SQS, the <strong>consumer needs to actively poll</strong> SQS for work using the <code>ReceiveMessage</code> API call.</p>
<p>For the load balancer to serve traffic there <strong>needs to be a request from the outside</strong> it can respond to.</p>
<p>To get an integration between two passive/reactive services you need an active component inbetween. You could build for example a fleet of containers or a Lambda function. Lambda can be triggered via SQS (under the hood Lambda will poll SQS) and could subsequently send a request to your ALB or whichever load balancer you choose.</p>
