We are using amazon rds for our ecommerce site. we are inserting/updating our products by using cron automation. We have around more than 5 millions of products. Whenever the automation starts the site goes to maintenance mode.Automation will take 6-7 hour to complete. So, we are planning to do achieve this in following way.
- Use two separate databases, one is for automation (DB1) and other one is for site (DB2).
- If admin or sales team add or update any products in admin panel, this data should update in DB1. We need something like real time syncing or we need to sync DB1 with DB2 at start of the automation.
- After completing automation, a trigger or something like that will call. This will sync DB1 with DB2.
Thus both the DB1 and DB2 will be same. The methods like master slave replications is not feasible i think.
Is there any way to achieve this?