Are AWS S3 Event Notifications guaranteed to be delivered?

后端 未结 2 1332
孤城傲影
孤城傲影 2021-01-04 19:25

I\'m hooking up AWS S3 event notifications to an AWS Lambda processing pipeline.

I can\'t find documentation on S3 event notification guarantees. Can I be sure all

2条回答
  •  鱼传尺愫
    2021-01-04 20:08

    Update 2020

    The events are now at least once: https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html

    Relevant quote from that page:

    Amazon S3 event notifications are designed to be delivered at least once. Typically, event notifications are delivered in seconds but can sometimes take a minute or longer.

    Original answer

    In principle yes. However, Lambda has a 99.9% SLA and S3 has a 99.9% uptime SLA as well. So in theory some events could be missed, but only when they have a service disruption. When the Lambda function fails, it automatically retries up to three times.

    I use S3 as a 'queue' for Lambda and have never missed a message (out of millions and millions).

    There's not much you can do to deal with this I think. Part of using 'serverless' infrastructure means that you also lose some control (however, I think that AWS can do a better job than just myself and a few dedicated servers).

提交回复
热议问题