Unlock instant, AI-driven research and patent intelligence for your innovation.

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

Active Publication Date: 2020-05-08
北京数衍科技有限公司
View PDF9 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] When the data receiving server receives the data sent by the terminal, in order to improve the throughput and scalability of the entire system, the data receiving server stores the data in the data storage server through the message queue for storage, because the data receiving server does not know whether the data is successful or not Stored in the data storage server, therefore, when the data storage server is abnormal and the data is not stored successfully, it is easy to cause data loss and reduce the user experience

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Data storage method and device and server
  • Data storage method and device and server
  • Data storage method and device and server

Examples

Experimental program
Comparison scheme
Effect test

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...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a data storage method and device and a server, and relates to the technical field of data storage. The method includes: when the to-be-stored data sent by a first server and thedelay duration corresponding to the to-be-stored data are received, starting a timing function; creating a storage file corresponding to the to-be-stored data, and storing the to-be-stored data intothe storage file; when the timing duration of the timing function reaches the delay duration, searching for the data to be stored which is not stored in the second server; sending the to-be-stored data to a second server, recording sending time of the to-be-stored data, recreating a storage file of the to-be-stored data according to the sending time and the delay duration, and searching whether the to-be-stored data is stored in the second server or not according to a time interval corresponding to the delay duration until an end condition of a cycle process is met; according to the method, the to-be-stored data is effectively sent to the second server and stored into the storage file when it is judged that the data is not stored into the second server, data loss is prevented, and then theuse experience of a user is improved.

Description

technical field [0001] The present invention relates to the technical field of data storage, in particular to a data storage method, device and server. Background technique [0002] When the data receiving server receives the data sent by the terminal, in order to improve the throughput and scalability of the entire system, the data receiving server stores the data in the data storage server through the message queue for storage, because the data receiving server does not know whether the data is successful or not Stored in the data storage server, therefore, when an abnormality occurs in the data storage server and the data is not successfully stored, it is easy to cause data loss and reduce the user experience. Contents of the invention [0003] In view of this, the object of the present invention is to provide a data storage method, device and server to alleviate the above technical problems. [0004] In the first aspect, the embodiment of the present invention provide...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F16/172G06F16/17
CPCG06F16/172G06F16/1734Y02D10/00
Inventor 孙美娇谭吉湘杨陆王晓宇
Owner 北京数衍科技有限公司