摘要 |
A command processing method and a server. The method comprises: a server receiving a target request carrying a target command and sent by a client, wherein the target command corresponds to a target context number (S101); taking a current time as a target time stamp of the target request (S102); adding to a target dependency set an association command corresponding to the target context number and a conflict command corresponding to the target command in the local (S103); forwarding the target request to a copy server, updating the target dependency set according to a feedback from the copy server, and preserving the updated target dependency set in synchronization with the copy server, so as to facilitate the copy server in subsequently executing a command according to the updated target dependency set (S104); and according to the target context number and the target time stamp corresponding to the target command, and the context numbers and the time stamps corresponding to various commands in the updated target dependency set, determining a target execution sequence of the target command and the various commands in the updated target dependency set, and executing the target command and the various commands in the updated target dependency set according to the target execution sequence (S105). The present invention reduces a system delay and reduces the system complexity while ensuring the system consistency. |