DynamoDB Streams Kinesis Adapter implements the Amazon Kinesis interface so that your application can use KCL to consume and process data from a DynamoDB stream. You can get started in minutes using Maven.
- DynamoDB Streams Developer Guide
- Amazon Kinesis Client Library GitHub and Documentation
- DynamoDB Forum
- DynamoDB Details
- Issues
- The DynamoDB Streams Kinesis Adapter for Amazon Kinesis Client Library (KCL) is the best way to ingest and process data records from DynamoDB Streams.
- The KCL is designed to process streams from Amazon Kinesis, but by adding the DynamoDB Streams Kinesis Adapter, your application can process DynamoDB Streams instead, seamlessly and efficiently.
- Requires Kinesis Client Library version >= 1.6.4.
- Requires AWS Java SDK version >= 1.11.14
- It is highly recommended to configure Kinesis Client Library with
MaxRecords = 1000
andIdleTimeInMillis = 500
to optimize DynamoDB Streams costs.
- Sign up for AWS - Before you begin, you need an AWS account. Please see the AWS Account and Credentials section of the developer guide for information about how to create an AWS account and retrieve your AWS credentials. You don’t need this if you’re using DynamoDB Local.
- Minimum requirements - To run the SDK you will need Java 1.7+. For more information about the requirements and optimum settings for the SDK, please see the Java Development Environment section of the developer guide.
- Install the DynamoDB Streams Kinesis Adapter - Using Maven is the recommended way to install the DynamoDB Streams Kinesis Adapter and its dependencies, including the AWS SDK for Java. To download the code from GitHub, simply clone the repository by typing:
git clone https://github.com/awslabs/dynamodb-streams-kinesis-adapter.git
, and run the Maven command described below in "Building From Source". You may also depend on the maven artifact com.amazonaws:dynamodb-streams-kinesis-adapter. - Build your first application - There is a walkthrough to help you build first application using this adapter. Please see Using the DynamoDB Streams Kinesis Adapter to Process Stream Records.
Add the following to your Maven pom file:
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>dynamodb-streams-kinesis-adapter</artifactId>
<version>LATEST</version>
</dependency>
Once you check out the code from GitHub, you can build it using Maven: mvn clean install