【问题标题】:What is StreamSpecification property of AWS DynamoD Table used for?AWS DynamoD Table 的 StreamSpecification 属性有什么用途?
【发布时间】:2020-11-12 05:54:48
【问题描述】:

我正在玩 DynamoDb。我不确定 StreamSpecification 的目的是什么,为什么我们应该或不应该使用它?我已经阅读了文档Aws - StreamSpecification,但它并没有解释它的作用。

MovieTable:
    Type: AWS::DynamoDB::Table
    Properties:
      BillingMode: PAY_PER_REQUEST
      AttributeDefinitions:
        - AttributeName: "Name"
          AttributeType: "S"
        - AttributeName: "Genre"
          AttributeType: "S"
        - AttributeName: "Rating"
          AttributeType: "N"
        - AttributeName: "DateReleased"
          AttributeType: "S"
      KeySchema:
      - AttributeName: "Name"
        KeyType: "HASH"
      - AttributeName: "Genre"
        KeyType: "RANGE"
      - AttributeName: "Rating"
        KeyType: "RANGE"
      - AttributeName: "DateReleased"
        KeyType: "RANGE"
      TimeToLiveSpecification:
        AttributeName: ExpireAfter
        Enabled: false
      SSESpecification:
        SSEEnabled: true

【问题讨论】:

    标签: node.js amazon-web-services amazon-dynamodb amazon-cloudformation


    【解决方案1】:

    StreamSpecification 允许您为此表启用可选的 DynamoDB 流 支持。 DynamoDB Streams 允许您以 的形式读取对表的所有更改 - 您可以出于各种原因使用它,例如将相同的更改复制到另一个表、检查可疑活动等。您可以阅读 DynamoDB Streams 功能简介here

    如果你不想在你的桌子上启用一个流(因为你不知道这是什么,你可能不知道:-)),你可以忽略StreamSpecification

    【讨论】:

      猜你喜欢
      • 2011-01-26
      • 2019-08-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-06-19
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多