Rajat Kumar
Rajat Kumar

Reputation: 17

Insert Or update Kinesis stream data directly into Dynamodb without lambda

I was able to do this using lambda but, was facing some lagging issue, so is it possible to directly insert or update the data to DynamoDB, by using any aws services.

Upvotes: 1

Views: 1060

Answers (1)

smac2020
smac2020

Reputation: 10704

You can achieve this use case by using the AWS SDK. Here is steps for this example:

  1. Create a Kinesis Service Client.
  2. Create a DynamoDB Service Client.
  3. Call the Kinesis object's getRecords method.
  4. This returns a collection of records.
  5. Iterate through the record collection, read the record data, and invoke the DynamoDB object's putItem method.

This is a high level description of how you can use the AWS SDK in a given programming language, such as Java, to read a Kinesis data stream and write the results to a DynamoDB table.

Upvotes: 1

Related Questions