Modern applications need highly scalable data storage that just works and a scalable way to respond to the continuous pipeline of data changes.
DynamoDB Streams provide you with the underlying database infrastructure to create new applications, such as continuously updated free-text search indexes, caches, notifications and change processing for up-to-date analytics.
In this webinar we'll give you an overview of DynamoDB Streams, walk through typical use cases, share some sample code, and give you a live demo to get you started building your own amazing applications.
Learning Objectives:
Understand the benefits of DynamoDB Streams
See examples of Streams in real-world scenarios
How to get started using DynamoDB Streams
Who Should Attend:
Developers
3. What are DynamoDB Streams?
• Time ordered and partitioned
change log
• Provides a stream of updates,
inserts, deletes
• Guaranteed to be delivered only
once
• Use Kinesis Client Library (KCL),
Lambda, or API to query pre-
image, post-image, key, timestamp
• Scales with your table
DynamoDB StreamsDynamoDB
22. UserId Candidate Date
Alice A 2013-10-02
Bob B 2013-10-02
Eve B 2013-10-02
Chuck A 2013-10-02
RawVotes Table
Segment Votes
A_1 23
B_2 12
B_1 14
A_2 25
AggregateVotes Table
Voter
1. Record vote and de-dupe; retry 2. Increment candidate counter
23. UserId Candidate Date
Alice A 2013-10-02
Bob B 2013-10-02
Eve B 2013-10-02
Chuck A 2013-10-02
RawVotes Table
Segment Votes
A_1 23
B_2 12
B_1 14
A_2 25
AggregateVotes Table
Voter
30. Op: PUT
John
Tokyo
Op: UPDATE
John
Pluto
Op: UPDATE
John
Mars
DynamoDB writes and Streams
Operatio
n #
DynamoDB
Operation
Data in
DynamoDB
Data in
Streams
1 PUT :
{John:Tokyo}
{John:Tokyo} PUT John
Tokyo
2 UPDATE:
{John:Mars}
{John:Mars} UPDATE John
Mars
3 UPDATE:
{John:Pluto}
{John:Pluto} UPDATE John
Pluto
Data: {Name:Destination}
31. View Type Destination
Old Image – Before update Name = John, Destination = Mars
New Image – After update Name = John, Destination = Pluto
Old and New Images Name = John, Destination = Mars
Name = John, Destination = Pluto
Keys Only Name = John
types
39. How much does it cost?
• Free to turn it on
• First 2.5 million reads per month are Free
• $0.20 per million reads after that
DynamoDB StreamsDynamoDB