Reputation: 820
I have a lambda setup that has event source configured with 5 different SQS queues. Now, if the batch size of the lambda is configured to be 10, will the 10 records in SQSEvent
in the lambda handler will be from the same queue or can the 10 records in the batch be from any of the 5 queues ?
Upvotes: 2
Views: 1187
Reputation: 78842
The behavior is undocumented, but it's almost certainly the case that the Lambda service will batch events from one, and only, queue in a single Lambda invocation.
That said, if it's critical to your application that you be able to distinguish one queue source from another, then either:
eventSourceARN
in each record in the eventUpvotes: 1