You are viewing a free preview of this lesson.
Subscribe to unlock all 10 lessons in this course and every other course on LearningBro.
DynamoDB Streams captures a time-ordered sequence of item-level changes in a table. Combined with AWS Lambda, Streams enables powerful event-driven architectures, real-time processing, and change data capture (CDC) patterns.
When you enable Streams on a table, DynamoDB records every item-level change:
Application → DynamoDB Table → DynamoDB Stream → Consumer
│
├── Lambda Function
├── Kinesis Data Streams
└── Custom Application
When enabling Streams, you choose what data to include in the stream record:
| View Type | Description | Use Case |
|---|---|---|
| KEYS_ONLY | Only the primary key attributes | When you just need to know which item changed |
| NEW_IMAGE | The entire item after the change | Processing the current state |
| OLD_IMAGE | The entire item before the change | Auditing what was changed |
| NEW_AND_OLD_IMAGES | Both before and after | Comparing changes, computing deltas |
Subscribe to continue reading
Get full access to this lesson and all 10 lessons in this course.