Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DynamoDB CDC: Add demo to support reading DynamoDB change data capture #205

Merged
merged 1 commit into from
Jul 25, 2024

Conversation

amotl
Copy link
Member

@amotl amotl commented Jul 24, 2024

About

To support people using CrateDB together with infrastructure components managed on other people's computers more easily.

Documentation

Preview: https://cratedb-toolkit--205.org.readthedocs.build/io/dynamodb/cdc.html

Details

A little insight into the nitty gritty details. Currently, we are focusing on AWS Lambda to use as an on-demand compute environment, but the fundamental infrastructure is aiming to be generic enough to work on other kinds of compute environments as well.

DynamoDB CDC

This makes a start by processing CDC events from DynamoDB, in order to re-materialize them into a CrateDB table.

Generic Components

The subsystem bears a few generic components to build upon, still in its infancy, but also suitable for similar operations on other data sources.

doc/io/dynamodb/cdc.md Outdated Show resolved Hide resolved
doc/io/dynamodb/cdc.md Outdated Show resolved Hide resolved
Comment on lines 187 to 189
Truncate MongoDB collection.
```shell
aws dynamodb execute-statement --statement \
"DELETE FROM \"demo-source\" WHERE ${READING_WHERE};"
```
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it even work?

Copy link
Member Author

@amotl amotl Jul 25, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no "TRUNCATE TABLE" for DynamoDB. Fixed with dcbb017.

See also: https://stackoverflow.com/a/75936534.

@amotl amotl marked this pull request as ready for review July 25, 2024 06:12
@amotl
Copy link
Member Author

amotl commented Jul 25, 2024

We need to merge because shipping. Please add your review in retrospective.

@amotl amotl merged commit bd5d4dc into main Jul 25, 2024
25 checks passed
@amotl amotl deleted the dynamodb branch July 25, 2024 06:13
Copy link
Contributor

@surister surister left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants