我可以从多个SQS触发相同的AWS Lambda吗?

问题描述:

我想从多个SQS队列中触发lambda函数. lambda将执行的大多数处理都是相同的,仅一小步将基于表名.我不想为此保留两个单独的lambda.具有相同/多个lambda的利弊是什么?

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?

是的,没有理由不能以这种方式进行配置.它应该可以正常工作.

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