Data storage method and device and server
A data storage and server technology, applied in the direction of electronic digital data processing, special data processing applications, digital data information retrieval, etc., can solve data loss, reduce user experience and other problems, achieve the effect of preventing data loss and improving user experience
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0028] The embodiment of the present invention provides a data storage method, the method is applied to the server, such as figure 1 Shown is a flow chart of a data storage method, the method comprising the following steps:
[0029] Step S102, if the data to be stored sent by the first server and the delay time corresponding to the data to be stored are received, start the timing function; wherein, the data to be stored is the data sent by the first server to the second server;
[0030] In actual use, the server can accept the data to be stored sent by multiple first servers. For the convenience of description, figure 2 A schematic structural diagram of a data storage process is shown, figure 2 Take a first server as an example for illustration, the data to be stored is sent by the client terminal 200 to the first server 201, and the first server sends the data to the second server 203 through the message queue 202 for storage. At the same time, the first server The data t...
Embodiment 2
[0049] An embodiment of the present invention provides a data storage device, such as image 3 A schematic structural diagram of a data storage device shown, the device includes:
[0050] The starting module 302 is used to start the timing function if the data to be stored sent by the first server and the delay time corresponding to the data to be stored are received; wherein the data to be stored is the data sent by the first server to the second server;
[0051] The creating module 304 is used to create a storage file corresponding to the data to be stored, and store the data to be stored in the storage file, wherein the file name of the storage file is created according to the receiving time and the delay time of the data to be stored;
[0052] The search module 306 is used to find whether the data to be stored is stored in the second server if the timing duration of the timing function reaches the delay duration;
[0053] The execution module 308 is used to perform the fo...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


