摘要 |
Data values stored in a primary database are synchronized to a reading database in M seconds. In the event of a failure of the primary database, a transaction processing server determines a transaction request in M seconds and performing a transaction processing of the transaction request to acquire a corresponding transaction identification and a data variation value, determines whether a data value corresponding to the transaction identification is stored in a standby database or not; if not, determines an accurate data value corresponding to the transaction identification by using the data value stored in the reading database and the data variation value; and stores the transaction identification and the accurate data value in the standby database to provide a service based on the data value stored in the standby database. The techniques of the present disclosure prevent the transaction from being interrupted and improve user experience. |