Menu
×
   ❮   
HTML CSS JAVASCRIPT SQL PYTHON JAVA PHP HOW TO W3.CSS C C++ C# BOOTSTRAP REACT MYSQL JQUERY EXCEL XML DJANGO NUMPY PANDAS NODEJS R TYPESCRIPT ANGULAR GIT POSTGRESQL MONGODB ASP AI GO KOTLIN SASS VUE DSA GEN AI SCIPY AWS CYBERSECURITY DATA SCIENCE
     ❯   

AWS Serverless 错误处理总结(按执行模型)


按执行模型划分的错误处理总结

下表比较了按执行模型划分的错误处理。

API 网关 Amazon SNS Kinesis 数据流 SQS 队列
超时考虑 API 网关具有 30 秒的超时时间 请求被发送到 Lambda,在那里它们被排队并执行 由记录的保留期配置 由可见性超时配置
重试 没有内置重试 具有内置重试 由“最大重试次数”配置 “MaxReceiveCount”用于设置重试次数
错误处理 您必须实现错误处理 使用 Lambda 失败目标或死信队列 使用“最大重试次数”配置 Lambda 失败目标 使用死信队列处理失败的消息

相关阅读

AWS Lambda 中的错误处理和自动重试
配置异步调用的错误处理
在 API 网关中处理 Lambda 错误
Amazon API 网关和重要说明
Amazon SNS 消息重试
将 AWS Lambda 与 Amazon Kinesis 配合使用:错误处理
Kinesis 数据流:更改数据保留期
Amazon SQS 可见性超时
×

Contact Sales

If you want to use W3Schools services as an educational institution, team or enterprise, send us an e-mail:
[email protected]

Report Error

If you want to report an error, or if you want to make a suggestion, send us an e-mail:
[email protected]

W3Schools is optimized for learning and training. Examples might be simplified to improve reading and learning. Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness of all content. While using W3Schools, you agree to have read and accepted our terms of use, cookie and privacy policy.

Copyright 1999-2024 by Refsnes Data. All Rights Reserved. W3Schools is Powered by W3.CSS.