Al usar AWS re:Post, aceptas las AWS re:Post Términos de uso

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?

preguntada hace 6 meses230 visualizaciones
1 Respuesta
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.

respondido hace 6 meses

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas