重新分区后的 DynamoDB 流行为

DynanoDB streams behavior after repartition

我假设使用 Kinesis 库从 DynamoDB 流读取将始终为具有相同分区键的记录提供有序的事件序列。

对吗?

如果发生重新分区,库是否仍会为我提供同一分区键的所有 table activity 的有序记录?

关于顺序问题:是的,您将按时间顺序阅读更新。来自 documentation:

DynamoDB Streams captures a time-ordered sequence of item-level modifications in any DynamoDB table, and stores this information in a log for up to 24 hours. Applications can access this log and view the data items as they appeared before and after they were modified, in near real time.

重新分区只是另一种类型的 table 更新,并且不会为较旧的更新修改日志文件。所以是的,您将在重新分区后阅读相同的更新顺序。