简体   繁体   English

在 dynamodb 中,使用发电机流 + lambda 触发器与运动流 + lambda 触发器有什么区别?

[英]In dynamodb, what is the difference between using dynamo streams + lambda trigger versus kinesis streams + lambda trigger?

I am looking into dynamo db streaming options.我正在研究 dynamo db 流选项。 There are 2:有2个:

  1. Dynamo streams发电机流
  2. Kinesis streams运动流

Dynamo streams can have a lambda trigger that will consume the stream. Dynamo 流可以有一个 lambda 触发器,它将消耗 stream。

Kinesis streams can also have the lambda trigger that will consume the stream. Kinesis 流也可以有 lambda 触发器,它将消耗 stream。

In both above cases, in the lambda settings we can choose the batch size.以上两种情况,在lambda设置中我们可以选择batch size。

In dynamodb, what is the difference between using dynamo streams + lambda trigger versus kinesis streams + lambda trigger?在 dynamodb 中,使用发电机流 + lambda 触发器与运动流 + lambda 触发器有什么区别?

Below is some of the key differences between Kinesis Data Streams and DynamoDB Streams.以下是 Kinesis Data Streams 和 DynamoDB Streams 之间的一些主要区别。 In regards to your question around a Lambda consumer, the important details to you is data retention, ordering, de-duplication and number of allowed consumers.关于您关于 Lambda 消费者的问题,对您来说重要的细节是数据保留、排序、重复数据删除和允许的消费者数量。

Properties特性 Kinesis Data Streams for DynamoDB适用于 DynamoDB 的 Kinesis 数据流 DynamoDB Streams DynamoDB 流
Data retention数据保留 Up to 1 year.长达 1 年。 24 hours. 24小时。
Kinesis Client Library (KCL) support Kinesis 客户端库 (KCL) 支持 Supports KCL versions 1.X and 2.X.支持 KCL 版本 1.X 和 2.X。 Supports KCL version 1.X.支持 KCL 版本 1.X。
Number of consumers消费者数量 Up to 5 simultaneous consumers per shard, or up to 20 simultaneous consumers per shard with enhanced fan-out.每个分片最多 5 个同时使用的消费者,或者每个分片最多 20 个同时使用的消费者,具有增强的扇出功能。 Up to 2 simultaneous consumers per shard.每个分片最多同时有 2 个消费者。
Throughput quotas吞吐量配额 Unlimited.无限。 Subject to throughput quotas by DynamoDB table and AWS Region.受 DynamoDB 表和 AWS 区域的吞吐量配额限制。
Record delivery model备案发货 model Pull model over HTTP using GetRecords and with enhanced fan-out, Kinesis Data Streams pushes the records over HTTP/2 by using SubscribeToShard.使用 GetRecords 将 model 拉到 HTTP 并增强扇出功能,Kinesis Data Streams 使用 SubscribeToShard 通过 HTTP/2 推送记录。 Pull model over HTTP using GetRecords.使用 GetRecords 将 model 拉到 HTTP 上。
Ordering of records记录排序 The timestamp attribute on each stream record can be used to identify the actual order in which changes occurred in the DynamoDB table.每条 stream 记录上的时间戳属性可用于识别 DynamoDB 表中发生更改的实际顺序。 For each item that is modified in a DynamoDB table, the stream records appear in the same sequence as the actual modifications to the item.对于 DynamoDB 表中修改的每个项目,stream 记录的显示顺序与项目的实际修改顺序相同。
Duplicate records重复记录 Duplicate records might occasionally appear in the stream.重复记录可能偶尔会出现在 stream 中。 No duplicate records appear in the stream. stream没有出现重复记录。
Stream processing options Stream 处理选项 Process stream records using AWS Lambda, Kinesis Data Analytics, Kinesis data firehose, or AWS Glue streaming ETL.使用 AWS Lambda、Kinesis Data Analytics、Kinesis data firehose 或 AWS Glue 流 ETL 处理 stream 条记录。 Process stream records using AWS Lambda or DynamoDB Streams Kinesis adapter.使用 AWS Lambda 或 DynamoDB Streams Kinesis 适配器处理 stream 条记录。
Durability level耐久等级 Availability zones to provide automatic failover without interruption.可用区提供不间断的自动故障转移。 Availability zones to provide automatic failover without interruption.可用区提供不间断的自动故障转移。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM