订阅的SNS消息很大时,不会调用AWS Lambda [英] AWS Lambda not invoked when subscribed SNS message is large

查看:81
本文介绍了订阅的SNS消息很大时,不会调用AWS Lambda的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个AWS lambda函数,该函数接收大量电子邮件地址并将其提交给SES进行发送.该功能通过SNS订阅调用.当邮件的电子邮件数组大小较小时,它会很好地工作,但是,当邮件的电子邮件数组大小较大时,不会调用lambda函数.不会发生日志记录....

I've got a AWS lambda function that takes a large array of email addresses and submits them to SES for sending. The function is invoked via a SNS subscription. It works nicely when the message's email array size is small, however when the message's email array size is large the lambda function is NOT invoked. No logging occurs....

我已经确认有效载荷低于所需的SNS消息大小,并且我已经通过电子邮件订阅了SNS主题...这是可行的.我收到了预期的邮件有效负载的电子邮件.

I've confirmed that the payload is below the SNS message size required, and I've subscribed to the SNS topic via my email...this works. I get emailed the expected message payload.

有人知道为什么这会无声地失败吗?有关如何解决此问题的建议?

Any idea why this fails silently? Suggestions on how to work around this?

推荐答案

后代:

为SNS主题配置投放状态".然后它将成功/失败记录到CloudWatch.

Configure the 'Delivery Status' for the SNS topic. It will then log success/failures to CloudWatch.

期待看到:

167542字节的有效负载对于事件调用类型而言太大(限制为131072字节)

167542 byte payload is too large for the Event invocation type (limit 131072 bytes)

所以...即使SNS可以发送更大的有效负载,但这并不意味着可以使用此大小的有效负载来调用lambda. uck!

So...even though SNS can send a larger payload, that doesn't mean lambda's can be invoked with this size payload. Yuck!

这篇关于订阅的SNS消息很大时,不会调用AWS Lambda的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆