rusheb
rusheb

Reputation: 1418

How to choose between DynamoDB streams Kinesis adapter and Lambda triggers

The AWS Docs show that DynamoDB streams can be consumed in 2 ways:

  1. DynamoDB Streams Kinesis adapter
  2. Lambda triggers

The docs say that "the Amazon Kinesis Adapter is the recommended way to consume streams from Amazon DynamoDB", so in what scenarios would I want to use lambda triggers instead?

For example, I have heard the example use case of updating a leaderboard for a multiplayer game. In this case, the stream could be consumed by lambdas which update the leaderboard in a different database. Is Lambda the preferred tool in this scenario?

Upvotes: 1

Views: 815

Answers (1)

Leeroy Hannigan
Leeroy Hannigan

Reputation: 19893

Yes Lambda is by far the best approach to consume a stream from this type of use-case. When you consume a stream using a Lambda trigger, you do not have to pay for the stream GetRecords calls.

If you use KCA then you have to manage a DynamoDB table used for leases and you also have to manage configurations and pay for GetRecords.

This post will provide a good overview:

In dynamodb, what is the difference between using dynamo streams + lambda trigger versus kinesis streams + lambda trigger?

Upvotes: 1

Related Questions