Right now I have create tiny php script that connect to hostA.db1 and fetch a record to hostB.db1 via CRON jobs every 1 minutes. That script contain the process that make a comparing the count number between both host database then if some of record is less then the insert script will be triggered.
Instead of using CRON jobs, is there any way we can fetch a record from different host database in a real-time? For example, if there are a new record available then some action will call the script to fetch only new record into hostA loaded into hostB without waiting any scheduler process.
If you have any idea, please describe benefit or pros/con using that technique..