aws dynamodb streams - a quick introduction
DESCRIPTION
A brief introduction to the recently announced AWS DynamoDB streamsTRANSCRIPT
![Page 1: AWS DynamoDB Streams - A quick introduction](https://reader036.vdocument.in/reader036/viewer/2022062514/559bc2ac1a28ab8c5d8b472b/html5/thumbnails/1.jpg)
@crichardson
AWS DynamoDB StreamsA quick introduction
Chris Richardson
Author of POJOs in ActionFounder of the original CloudFoundry.com
@[email protected]://plainoldobjects.comhttp://microservices.io
![Page 2: AWS DynamoDB Streams - A quick introduction](https://reader036.vdocument.in/reader036/viewer/2022062514/559bc2ac1a28ab8c5d8b472b/html5/thumbnails/2.jpg)
@crichardson
What is a DynamoDB Stream?
An ordered sequence of changes to items in a DynamoDB table:
Puts, updates, and deletes performed in last 24 hours
Sharded for scalability
Kinda like: message queue or Kafka topic
Similar to Kinesis streams
Subscribe to a stream to track the changes made to a table
Real time analytics
Cross region replication
Maintain materialized view tables
...
![Page 3: AWS DynamoDB Streams - A quick introduction](https://reader036.vdocument.in/reader036/viewer/2022062514/559bc2ac1a28ab8c5d8b472b/html5/thumbnails/3.jpg)
@crichardson
Creating a table with a streamKEYS,
OLD_IMAGE and/or
NEW_IMAGE
![Page 4: AWS DynamoDB Streams - A quick introduction](https://reader036.vdocument.in/reader036/viewer/2022062514/559bc2ac1a28ab8c5d8b472b/html5/thumbnails/4.jpg)
@crichardson
Getting the stream id
![Page 5: AWS DynamoDB Streams - A quick introduction](https://reader036.vdocument.in/reader036/viewer/2022062514/559bc2ac1a28ab8c5d8b472b/html5/thumbnails/5.jpg)
@crichardson
Getting the shards in a stream
![Page 6: AWS DynamoDB Streams - A quick introduction](https://reader036.vdocument.in/reader036/viewer/2022062514/559bc2ac1a28ab8c5d8b472b/html5/thumbnails/6.jpg)
@crichardson
Reading change records
![Page 7: AWS DynamoDB Streams - A quick introduction](https://reader036.vdocument.in/reader036/viewer/2022062514/559bc2ac1a28ab8c5d8b472b/html5/thumbnails/7.jpg)
@crichardson
Change records
![Page 8: AWS DynamoDB Streams - A quick introduction](https://reader036.vdocument.in/reader036/viewer/2022062514/559bc2ac1a28ab8c5d8b472b/html5/thumbnails/8.jpg)
@crichardson
![Page 9: AWS DynamoDB Streams - A quick introduction](https://reader036.vdocument.in/reader036/viewer/2022062514/559bc2ac1a28ab8c5d8b472b/html5/thumbnails/9.jpg)
@crichardson
Kinesis adapter
http://dynamodb-preview.s3-website-us-west-2.amazonaws.com/docs/streams-dg/Streams.KCLAdapter.html
Scalable, fault tolerant programming
model for stream processing
https://github.com/awslabs/amazon-kinesis-client
![Page 10: AWS DynamoDB Streams - A quick introduction](https://reader036.vdocument.in/reader036/viewer/2022062514/559bc2ac1a28ab8c5d8b472b/html5/thumbnails/10.jpg)
@crichardson
Lambda integration
http://dynamodb-preview.s3-website-us-west-2.amazonaws.com/docs/streams-dg/Streams.Lambda.Walkthrough.Basic.html#Streams.Lambda.Walkthrough.Basic.Step3