《了解 AWS Lambda 事件源映射 [重复].pdf》由会员分享,可在线阅读,更多相关《了解 AWS Lambda 事件源映射 [重复].pdf(24页珍藏版)》请在三个皮匠报告上搜索。
1、 2025,Amazon Web Services,Inc.or its affiliates.All rights reserved.2025,Amazon Web Services,Inc.or its affiliates.All rights reserved.A P I 4 0 2Understanding AWS Lambda Event Source Mappings(ESMs)Jacob CravinhoSenior Solutions ArchitectAWSNihar ShethSenior Product Manager,AWS Lambda 2025,Amazon We
2、b Services,Inc.or its affiliates.All rights reserved.UserAmazon API GatewaySubmit User StatsGame StatsAWS LambdaUser ProgressCustomer-AtScaleGaming/Stats 2025,Amazon Web Services,Inc.or its affiliates.All rights reserved.Lambda functionAmazon SNSAmazon S3reqsLambda functioneventAsynchronous/orderAma
3、zonAPI GatewayLambda functioneventSynchronousAmazonSQSAmazon KinesisDynamoDB StreamsAWS Lambda ServiceeventPoll-BasedSynchronousLambda Invocation models 2025,Amazon Web Services,Inc.or its affiliates.All rights reserved.Event source mappings (ESM)InvokeInvokeInvokeInvokeFunctionEvent source mappings
4、(aka pollers)PollFilterBatchInvokeAmazonSQSAmazonMSKAmazonKinesisApacheKafka 2025,Amazon Web Services,Inc.or its affiliates.All rights reserved.LambdaESMQueue/StreamLambda functionHow Lambda ESM Works 2025,Amazon Web Services,Inc.or its affiliates.All rights reserved.1.Lambda Service polls the queue
5、/streamLambdaESMQueue/StreamLambda functionHow Lambda ESM Works 2025,Amazon Web Services,Inc.or its affiliates.All rights reserved.1.Lambda Service polls the queue/stream2.The ESM synchronously invokes the Lambda function with the batch of records.LambdaESMQueue/StreamLambda functionHow Lambda ESM W
6、orks 2025,Amazon Web Services,Inc.or its affiliates.All rights reserved.1.Lambda Service polls the queue/stream3.If the Lambda returns successfully then the Lambda Service advances to the next set of records and repeats#1.2.The ESM synchronously invokes the Lambda function with the batch of records.