Hi All,
May be this a redundant question, we are planning to replicate RDBMS data into MongoDB, just want to check the design options that are possible to replicate data successfully with a minimal effort into document Model
RDBMS
Order
OrderDetails
MongoDb
Order { …,OrderDetails[{}]}
Options
-
Have independent collections for Order and Order Detail, and perform a join through lookup and present the data, if requested
-
Have independent Staging Collections (for a parent and child queue), upon data arriving on the Parent and/or Child Document build the final document and upsert through Mongo data event to the actual Order-Detail collection
-
Merge two topics using Kafka Stream and send the merged topic to a kafka connector
Please let me know, which of the options should be chosen, pro & cons if possible, If there is a better solution, please guide me to the right approach