I have a decently big ecommerce project with MySQL as DB Server at present. Due to increasing complexity of catalog architecture, I am evaluating MongoDB as DB Server choice for managing products and other catalog data. Rest of data like orders will be managed through MySQL only.
Now, if customer place an order. Then order will contain information of both products bought and order info. In MySQL it is simple as making a join. But what if catalog and orders are managed in different DB, how can I store and pull this data together to show on view?
One solution that I thought of is to create one table in MySQL, which holds basic info of a product and unique id of document of same product in MongoDB. But this will result in data duplication and also another challenge to keeping consistency will emerge.
Is there any better solution for this?