CPC G06F 11/1658 (2013.01) [G06F 11/0772 (2013.01)] | 20 Claims |
1. A data storage method implemented by a first node device, wherein the data storage method comprises:
receiving, from a first application, a first request using a first process running on the first node device;
writing, in response to the first request and based on a first database engine on the first process, first data to a first storage on the first node device using the first process;
sending, after the first data has been written to the first storage, the first request to a second node device using the first process to instruct the second node device to respond to the first request and to write, based on a second database engine on a second process of the second node device, the first data to a second storage on the second node device using the second process;
receiving, from the second node device within a preset duration, a first response message using the first process, wherein the first response message indicates that the first data has been written to the second storage; and
sending, to the first application after receiving the first response message, a second response message using the first process,
wherein the second response message indicates that both the first data has been written to the first storage and that the first data has been written to the second storage.
|