Can I trigger same AWS lambda from multiple SQS?

Question:

I want to trigger a lambda function from multiple SQS queues. Most of the processing the lambda will do is same, just one small step will be based on the table name. I don’t want to maintain two separate lambda for that. What’s the pros and cons of having same/multiple lambda?

Answer:

Yes there’s no reason you can’t configure it that way. It should work fine.

Leave a Reply