Ends in
00
days
00
hrs
00
mins
00
secs
SHOP NOW

PRE-BLACK FRIDAY SALE - GET 20% OFF ALL REVIEWERS

Find answers, ask questions, and connect with our
community around the world.

Home Forums AWS AWS Certified Developer Associate Streaming one DynamoDB database changes to another DynamoDB database

  • Streaming one DynamoDB database changes to another DynamoDB database

  • vadym

    Member
    May 20, 2021 at 3:47 pm

    Hello,

    I’m studying the course and I encountered a quiz question which asks to stream one DynamoDB database changes to another DynamoDB database. It has various options one of which is using Kinesis data stream to stream changes and another is to use DynamoDB streams.

    Explanation is

    “Using the Amazon Kinesis Adapter is the recommended way to consume streams from Amazon DynamoDB. Since DynamoDB Streams API is intentionally similar to that of Kinesis Data Streams, a service for real-time processing of streaming data at a massive scale, there’s no need to use Amazon Kinesis.”.

    Could you please explain why we shouldn’t use Amazon Kinesis Streams if that’s the recommended way? I get that DynamoDB Streams are similar but they aren’t a recommended way!

    I also had a similar question earlier (which I don’t remember) about running Lambda using DynamoDB changes as an input which had an opposite answer i. e. Kinesis Streams were the correct answer and DynamoDB Streams were considered incorrect.

    I’m confused.

  • Carlo-TutorialsDojo

    Member
    May 21, 2021 at 1:01 am

    Hello vadym,

    Thank you for your feedback.

    The Kinesis Data Stream support for DynamoDB was recently added when this question was created. So by default, I made sure that all answers related to Amazon Kinesis are automatically crossed out. However, I admit that the rationale that I provided was poor and somewhat confusing.

    Let me clear this one out:

    “Using the Amazon Kinesis Adapter is the recommended way to consume streams from Amazon DynamoDB. Since DynamoDB Streams API is intentionally similar to that of Kinesis Data Streams, a service for real-time processing of streaming data at a massive scale, there’s no need to use Amazon Kinesis.”.

    >> This statement refers to the “processing” of records from a stream (can be DynamoDB stream or Kinesis Data Stream) which can be done via KCL or DynamoDB Streams API. It does not pertain to the “capturing” of changes.

    To stream changes from one DynamoDB table to another, you must:

    1. Enable DynamoDB Stream or Kinesis Data Stream.

    2. Poll the changes from the stream using a Lambda function or a KCL application.

    We will revise this item so it wouldn’t cause confusion for others as well.

    Let me know if you have any other queries.

    Regards,

    Carlo @ Tutorials Dojo

  • vadym

    Member
    May 24, 2021 at 6:59 pm

    Understood. Thanks a lot!

Viewing 1 - 3 of 3 replies

Log in to reply.

Original Post
0 of 0 posts June 2018
Now