The invention particularly relates to a distributed transaction implementation method and system. According to the distributed transaction implementation method and system, the distributed lock of the resident memory is adopted to store data in the distributed transaction processing process, and isolation of the distributed transaction is achieved; the distributed lock is stored in a lock table of a resident memory for searching and modifying; the synchronization of data and locks is realized among a plurality of server nodes through a consensus algorithm, so that the consistency of distributed transactions is ensured; the integrity and durability of the distributed transactions are ensured through the transaction logs; in addition, in order to reduce the IO frequency, the disk is not read and written except for new value reading and final submission. According to the distributed transaction implementation method and system, the performance advantages of the memory are fully utilized, the read-write operation of the disk is reduced, the execution efficiency of the distributed transaction is improved, meanwhile, the safety of the distributed transaction is guaranteed, and the requirements for atomicity, consistency, isolation and durability of the distributed transaction are met.