Syncing external mongodb database info with neptune database

0

I have data in mongodb and I want to use some of the properties saved in that database to start and maintain a graph database using amazon neptune. I can use aws dms to get the initial batch of data, but how about maintaining and updating the data as it changes in mongodb? Essentially I need to keep the neptune database synced up with the mongodb database because mongodb remains my primary database. As a simple example, consider that mongodb contains, among other things, users' lists of subscribers. I want this info available for graph queries in neptune, but changes to that info are saved in mongodb primiarily so they need to be forwarded to neptune to keep neptune current. Is there a best-practice for doing something like this? The bulk loader and dms options implicitly assume that I'd be inserting large amounts of data at a time, but these may be simple small changes like one user subscribing to another user. What's the best/correct/recommended way to go about this?

1개 답변
0

You can use the Kafka Change Data Capture handler: https://www.mongodb.com/docs/kafka-connector/master/sink-connector/fundamentals/change-data-capture/

Connect that to our Managed Service for Kafka: https://docs.aws.amazon.com/msk/latest/developerguide/what-is-msk.html

Then use a Kafka Worker in Lambda to apply the necessary modification in Neptune: https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html

profile pictureAWS
답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인