代码中没有错误,为什么仍将消息发送到Dead Letter队列?
我有2个Lambda功能,分别通过SQ发送并接收了一些工作负载。但是许多消息出乎意料地发送到DLQ。我相信这不是由内部错误引起的,因为并非所有消息都涉及DLQ。
我设置保留concurrentexecutions = 1
和maxReceiveCount = 1
,这有关系吗?我在想,如果我增加了maxReceiveCount
可能会将较少的消息发送到DLQ。
无论如何,我希望有人可以引导我完成背后的方法。
I have 2 Lambda functions that respectively sent and received some workloads via a SQS. But many messages are unexpectedly sent to DLQ. I am confident that it wasn't caused by in-code bugs because not all messages went to DLQ.
I set reservedConcurrentExecutions = 1
and maxReceiveCount = 1
, does it matter? I'm thinking if I increase maxReceiveCount
perhaps fewer messages will be sent to DLQ.
Anyhow, I hope somebody can walk me through the methodology behind that.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
增加
MaxReceiveCount
最终工作。官方开发人员指南说:Increasing
maxReceiveCount
worked eventually. The official developer guide says: