簡體   English   中英

關於 Kinesis Firehose 數據 stream 到 AWS Lambda

[英]Regarding KInesis Firehose data stream to AWS Lambda

假設正在進行直播,並且將在 Kinesis 上收集數據並處理數據。

Let's say 10 seconds happened and it will trigger first lambda function and assume that lambda function will take only 5 second to process that data.

So,the first lambda function will process in 15 second.but in between assume that some live data streaming is occur at 12 sec from Kinesis and once again it will trigger Lambda function.

So,second lambda function will execute once first lambda function will complete or is it possible that both the lambda function will be working in parallel?

有人可以澄清一下,如果我們有任何關於這件事的文件,那么請分享鏈接。

我無法找到關於這件事的信息。

不是那么直接的答案。

一般來說,這取決於您為 stream 配置的分片數量。 每個分片將僅調用單個 lambda,在 stream 上沒有並行調用。 因此,該分片的 function 按順序處理所有內容。

但現在(自 2019 年起)您可以設置並行化因子,以便每個分片最多可以有 10 個並行函數在其上運行。

鏈接在這里: https://aws.amazon.com/about-aws/whats-new/2019/11/aws-lambda-supports-parallelization-factor-for-kinesis-and-dynamodb-event-sources/

所以總而言之,默認情況下,每個分片是一個 function。 除非您設置並行化因子,在這種情況下,您最多可以執行 10 個並行函數。

這有點令人困惑,但上面的鏈接將有助於解釋。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM