使用 AWS re:Post 即表示您同意 AWS re:Post 使用條款

Does Lambda with RabbitMQ-trigger batch messages from multiple queues

0

Hi,

I have a Lambda with a single lambda_handler function and multiple YAML files with different env vars. This Lambda should be triggered by RabbitMQ, each YAML file contains one RabbitMQ queue. As I understand from the documentation, Lambda batches messages and processes them at once, but what I didn't understand is whether an event contains messages from multiple queues. If it does, how can I distinguish between them and apply the different configuration according to each queue's YAML file's?

已提問 6 個月前檢視次數 230 次
1 個回答
1

I haven't used it myself, but As I understand you need to specific a queue every time you configure a lambda function as destination, That suggest that while there will be a batch of message but they all will be from same queue.

And since the sourceArn content queue name you can use that to decide which configure to pick.

已回答 6 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南