Currently,consensus mechanism is commonly used in multi-layer synchronization of distributed database,but this method lacks consistency verification of data,resulting in low efficiency of database synchronization.To this end,a multi-layer synchronization method for distributed databases based on WebService was proposed.Based on the principle of multi-layer database synchronization,the database interface technology protocol set by the WebService module was used to achieve communication and data exchange between different databases.By calculating the verification level of the data and judging the consistency of the data,and combining the distribution status of the data storage,the synchronization marker sequence function between database was obtained to determine the synchronization status between database.A synchronization marker sequence function was added to the database interface protocol to mark the operation status of the database,which can monitor the synchronization status of the database in real time and handle the update and synchronization of the data in a timely manner.By constructing trigger,multi-layer synchronization of distributed database could be achieved,and synchronization operation could be triggered when specific conditions were met to ensure real-time data synchronization and update between database.The experimental results show that the proposed method synchronizes more than 70 data points per second,and the synchronization delay is less than 0.62 ms.It has been proven that the proposed method can significantly improve the synchronization efficiency of the database,and the synchronization results are good.