Reputation: 1418
The AWS Docs show that DynamoDB streams can be consumed in 2 ways:
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
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:
Upvotes: 1