Search⌘ K
AI Features

What is a DynamoDB stream?

Explore how DynamoDB streams detect inserts, updates, and deletes in tables to trigger events. Learn to activate streams and use AWS Lambda to process these events for real-time database change handling and integration.

An interesting and very common use case that we could have is the need to be able to detect the changes happening in a database. Once these changes are detected, operations can be performed with them.

One approach could be a batch process that would involve querying the database at regular intervals. However, this would be inefficient as it could affect the performance of the database with heavy executions such as a scan. Other than that, this process would also consume RCUs. Finally, the concept of real-time could not be handled in this situation either. Addressing these issues, DynamoDB offers us a better solution, and it is the one we’re going to discuss in this lesson.

What are streams?

Streams are a feature that DynamoDB offers to track the changes that are occuring in a table. When any kind of modification happens in DynamoDB, it will emit an event with information regarding the event that occured. To recall, the three types of changes that we ...