DynamoDB Streams

Pasted image 20221013122722.png

  • Ordered stream of item-level modifications (create/update/delete) in a DynamoDB table
  • Can be
    • Sent to Kinesis Data Streams
    • Read by AWS Lambda
    • Read by Kinesis Client Library applications
  • Data retention for up to 24 hours
  • Choose information that will written to stream
    • KEYS_ONLY: only key attributes of the modified item
    • NEW_IMAGE: the entire item after modified
    • OLD_IMAGE: entire item before modified
    • NEW_AND_OLD_IMAGES: both the above
  • DynamoDB streams are made of shards, like Kinesis Data Streams
    • AWS will provision shards
  • When you enable the streams, only then you will receive record update
  • Use cases
    • Analytics
    • React to changes in real-time