aws dynamodb streams - a quick introduction

11
@crichardson AWS DynamoDB Streams A quick introduction Chris Richardson Author of POJOs in Action Founder of the original CloudFoundry.com @crichardson [email protected] http://plainoldobjects.com http://microservices.io

Upload: chris-richardson

Post on 07-Jul-2015

1.224 views

Category:

Software


1 download

DESCRIPTION

A brief introduction to the recently announced AWS DynamoDB streams

TRANSCRIPT

Page 1: AWS DynamoDB Streams - A quick introduction

@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

@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

@crichardson

Creating a table with a streamKEYS,

OLD_IMAGE and/or

NEW_IMAGE

Page 4: AWS DynamoDB Streams - A quick introduction

@crichardson

Getting the stream id

Page 5: AWS DynamoDB Streams - A quick introduction

@crichardson

Getting the shards in a stream

Page 6: AWS DynamoDB Streams - A quick introduction

@crichardson

Reading change records

Page 7: AWS DynamoDB Streams - A quick introduction

@crichardson

Change records

Page 8: AWS DynamoDB Streams - A quick introduction

@crichardson

Page 9: AWS DynamoDB Streams - A quick introduction

@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

@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

Page 11: AWS DynamoDB Streams - A quick introduction

@crichardson

@crichardson [email protected]

http://plainoldobjects.com http://microservices.io