Usando AWS re:Post, accetti AWS re:Post Termini di utilizzo

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?

posta 6 mesi fa231 visualizzazioni
1 Risposta
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.

con risposta 6 mesi fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande