CN111818108B - Method and device for ensuring data acquisition consistency - Google Patents

Method and device for ensuring data acquisition consistency Download PDF

Info

Publication number
CN111818108B
CN111818108B CN201910285021.5A CN201910285021A CN111818108B CN 111818108 B CN111818108 B CN 111818108B CN 201910285021 A CN201910285021 A CN 201910285021A CN 111818108 B CN111818108 B CN 111818108B
Authority
CN
China
Prior art keywords
identifier
cache region
road condition
condition data
traffic road
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910285021.5A
Other languages
Chinese (zh)
Other versions
CN111818108A (en
Inventor
邹剑章
范超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201910285021.5A priority Critical patent/CN111818108B/en
Publication of CN111818108A publication Critical patent/CN111818108A/en
Application granted granted Critical
Publication of CN111818108B publication Critical patent/CN111818108B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • G06F16/2365Ensuring data consistency and integrity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/146Markers for unambiguous identification of a particular session, e.g. session cookie or URL-encoding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching
    • H04L67/5682Policies or rules for updating, deleting or replacing the stored data

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Medical Informatics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application relates to a method for ensuring data acquisition consistency, wherein a client sends an identification acquisition request to a server; after receiving the request, the server generates an identifier bound with the readable cache area and sends the identifier to the client; the client sends a traffic road condition data acquisition request carrying the identification to a server; the server receives the traffic road condition data acquisition request, searches a readable cache region bound by the identification based on the received identification, reads the traffic road condition data from the cache region, and sends the traffic road condition data to the client. Based on the scheme, the traffic road condition data acquired by the terminal can belong to the same data batch, and the traffic road condition data can be accurately acquired.

Description

Method and device for ensuring data acquisition consistency
Technical Field
The invention relates to the technical field of computer application, in particular to a method and a device for ensuring data acquisition consistency.
Background
The traffic road condition is a function possessed by the current map or navigation tool, a user can conveniently use the terminal to inquire the traffic road condition so as to assist travel, and generally, the traffic flow on the road is represented by taking the road as a unit.
The data of the traffic road condition is generally stored in a server, the server updates the traffic road condition in real time, two cache regions are arranged on the server, and the two cache regions assist in completing the updating and reading of the data of the traffic road condition. Fig. 9 shows a method for managing traffic road condition data at a server side in the prior art, which includes the following steps:
(1) inquiring whether the traffic road condition data is updated or not;
(2) under the condition that the data is updated, filling the updated data into a writable cache region;
(3) setting a timestamp of the written cache region;
(4) setting the written cache area to be readable;
(5) setting an original readable cache region as writable but unreadable;
(6) then, the terminal may request the server to read the traffic road condition data in the readable cache region to obtain the traffic road condition.
It can be seen from the above process that when the server manages the updated traffic condition data, the two buffers used by the server are switched along with the update of the data, that is, after the data update is written into the writable buffer, the buffer becomes the readable buffer, and the other buffer is converted into a writable buffer so as to receive the next updated traffic condition data.
However, the traffic road condition data is changed regularly, and is generally sent according to a batch after each change, and the data read by the terminal for many times needs to be ensured to belong to the same data batch, so that the integrity of the traffic road condition data of the terminal can be ensured, and the traffic road condition can be accurately displayed. If the terminal reads the data for multiple times just in the process of switching the two buffer areas, the requested traffic road condition data cannot be ensured to belong to the same data batch, so that the traffic road condition cannot be correctly obtained and displayed.
Disclosure of Invention
The invention aims to provide a method and a device for ensuring data acquisition consistency, which can ensure that traffic road condition data acquired by a terminal belong to the same data batch and can accurately acquire the traffic road condition data.
In order to achieve the above object, the present invention provides a method for ensuring data acquisition consistency, comprising the steps of:
a client sends an identification acquisition request to a server;
the server receives the identification obtaining request, generates an identification bound with a readable cache region, and sends the identification to the client, wherein the identification is used for uniquely representing the readable cache region;
the client receives the identification sent by the server and sends a traffic road condition data acquisition request carrying the identification to the server;
the server receives the traffic road condition data acquisition request, searches the readable cache region bound by the identifier based on the received identifier, reads the traffic road condition data from the readable cache region, and sends the traffic road condition data to the client;
and the client receives the traffic road condition data sent by the server.
The generating of the identifier bound to the readable cache area specifically includes:
confirming a readable cache area;
and generating the identification based on the read identification and the timestamp of the readable cache region.
The step of searching the readable cache region bound by the identifier based on the received identifier and reading the traffic road condition data from the cache region specifically comprises the following steps:
resolving the identifier into a reading identifier and a time stamp of the cache region;
finding out the corresponding cache region through the reading identifier of the cache region;
and after the consistency between the timestamp obtained after the cache region can be read and disassembled and the timestamp of the cache region is confirmed, reading the traffic road condition data from the cache region.
The method further comprises the following steps: and after the traffic road condition data is acquired, the client deletes the identifier and sends an identifier deletion request to the server.
The method further comprises the following steps: and the server receives the identifier deleting request, deletes the identifier and releases the binding relationship between the identifier and the cache region.
The server updates traffic condition data by using a dual buffer area structure, and before executing data updating, the server initializes the dual buffer area, wherein the initialization operation comprises the following steps:
respectively distributing the memory structures of the double cache regions;
setting a reading identifier of a cache region and initializing a timestamp;
set the read identification of another cache and initialize the timestamp.
After the initialization operation is completed, the server needs to update the traffic road condition data in the cache area, including:
when the traffic road condition data is updated, writing the traffic road condition data into a cache region, and setting a timestamp of the cache region;
the buffer area written with the traffic road condition data is set to be readable, and the other buffer area is set to be writable.
The invention also provides a method for ensuring the data acquisition consistency, which comprises the following steps:
sending an identification acquisition request to a server;
receiving an identifier sent by a server, wherein the identifier is generated by the server and is bound with a readable cache region, and the identifier is used for uniquely representing the readable cache region;
sending a traffic road condition data acquisition request carrying the identification to a server;
and receiving traffic road condition data sent by a server, wherein the traffic road condition data is the traffic road condition data which is obtained by searching the readable cache region bound by the identifier based on the received identifier and reading the readable cache region.
The server generates an identifier bound with the readable cache area, specifically:
confirming a readable cache area;
and generating the identification based on the read identification and the timestamp of the readable cache region.
The server searches a readable cache region bound by the identifier based on the received identifier, and reads traffic road condition data from the cache region, specifically:
resolving the identifier into a reading identifier and a time stamp of the cache region;
finding out the corresponding cache region through the reading identifier of the cache region;
and after the consistency between the timestamp obtained after the cache region can be read and disassembled and the timestamp of the cache region is confirmed, reading the traffic road condition data from the cache region.
The method further comprises the following steps: and after the traffic road condition data is acquired, deleting the identifier and sending an identifier deleting request to the server.
The invention also provides a method for ensuring the data acquisition consistency, which comprises the following steps:
receiving an identification acquisition request sent by a client;
generating an identifier bound with a readable cache region, and sending the identifier to the client, wherein the identifier is used for uniquely representing the readable cache region;
and receiving a traffic road condition data acquisition request carrying the identification sent by the client, searching the readable cache region bound by the identification based on the received identification, reading traffic road condition data from the readable cache region, and sending the traffic road condition data to the client.
The generating of the identifier bound to the readable cache area specifically includes:
confirming a readable cache area;
and generating the identification based on the read identification and the timestamp of the readable cache region.
The step of searching the readable cache region bound by the identifier based on the received identifier and reading the traffic road condition data from the cache region specifically comprises the following steps:
disassembling the identifier into a reading identifier and a timestamp of a cache region;
finding out the corresponding cache region through the reading identifier of the cache region;
and after the consistency between the timestamp obtained after the cache region can be read and disassembled and the timestamp of the cache region is confirmed, reading the traffic road condition data from the cache region.
The method further comprises the following steps: and receiving an identifier deleting request sent by the client, deleting the identifier, and releasing the binding relationship between the identifier and the cache region.
Updating traffic road condition data by using a double-buffer area structure, and initializing the double-buffer area before executing data updating, wherein the initialization operation comprises the following steps:
respectively distributing the memory structures of the double cache regions;
setting a reading identifier of a cache region and initializing a timestamp;
and setting a reading identifier of another cache region and initializing the time stamp.
After the initialization operation is completed, updating the traffic road condition data in the cache area, including:
when the traffic road condition data is updated, writing the traffic road condition data into a cache region, and setting a timestamp of the cache region;
the buffer area written with the traffic road condition data is set to be readable, and the other buffer area is set to be writable.
The invention also provides a system for ensuring the data acquisition consistency, which comprises the client and the server.
The client is used for sending an identification acquisition request to the server and sending a traffic road condition data acquisition request carrying the identification; receiving the identification sent by the server and receiving the traffic road condition data sent by the server;
the server is used for receiving the identification acquisition request, generating an identification bound with a readable cache region and sending the identification to the client, wherein the identification is used for uniquely representing the readable cache region; and receiving the traffic road condition data acquisition request, searching a readable cache region bound by the identifier based on the received identifier, reading the traffic road condition data from the readable cache region, and sending the traffic road condition data to the client.
The generating of the identifier bound to the readable cache area specifically includes:
confirming a readable cache area;
and generating the identification based on the read identification and the timestamp of the readable cache region.
The step of searching the readable cache area bound by the identifier based on the received identifier and reading the traffic road condition data from the readable cache area specifically comprises the following steps:
resolving the identifier into a reading identifier and a time stamp of the cache region;
finding out the corresponding cache region through the reading identifier of the cache region;
and after the consistency between the timestamp obtained after the cache region can be read and disassembled and the timestamp of the cache region is confirmed, reading the traffic road condition data from the cache region.
And the client is also used for deleting the identification after the traffic road condition data is acquired, and sending an identification deleting request to the server.
And the server is also used for receiving the identifier deleting request, deleting the identifier and releasing the binding relationship between the identifier and the cache region.
The server updates traffic condition data by using a dual buffer area structure, and before executing data updating, the server initializes the dual buffer area, wherein the initialization operation comprises the following steps:
respectively distributing the memory structures of the double cache regions;
setting a reading identifier of a cache region and initializing a timestamp;
and setting a reading identifier of another cache region and initializing the time stamp.
After the initialization operation is completed, the server needs to update the traffic road condition data in the cache area, including:
when the traffic road condition data is updated, writing the traffic road condition data into a cache region, and setting a timestamp of the cache region;
the buffer area written with the traffic road condition data is set to be readable, and the other buffer area is set to be writable.
The invention also provides a device for ensuring the data acquisition consistency, which comprises a sending unit and a receiving unit.
The sending unit is used for sending an identification obtaining request to the server and sending a traffic road condition data obtaining request carrying the identification to the server;
the receiving unit is used for receiving an identifier sent by a server, wherein the identifier is generated by the server and is bound with a readable cache region, and the identifier is used for uniquely representing the readable cache region; and receiving traffic road condition data sent by the server, wherein the traffic road condition data is read from a readable cache region which is bound by the identifier and searched by the server based on the received identifier.
The server generates an identifier bound with the readable cache area, specifically:
confirming a readable cache region;
and generating the identification based on the read identification and the timestamp of the readable cache region.
The server searches the readable cache region bound by the identifier based on the received identifier, and reads the traffic road condition data from the readable cache region, specifically:
resolving the identifier into a reading identifier and a time stamp of the cache region;
finding out the corresponding cache region through the reading identifier of the cache region;
and after the consistency between the timestamp obtained after the cache region can be read and disassembled and the timestamp of the cache region is confirmed, reading the traffic road condition data from the cache region.
The device also comprises a deleting unit used for deleting the identification after the traffic road condition data is acquired.
The sending unit is further configured to send an identifier deletion request to the server after deleting the identifier.
The invention also provides a device for ensuring the data acquisition consistency, which comprises a receiving unit, a sending unit, a generating unit and a searching unit.
The receiving unit is used for receiving an identification acquisition request sent by a client and receiving a traffic road condition data acquisition request carrying the identification sent by the client;
the generating unit is used for generating an identifier bound with a readable cache region after receiving the identifier obtaining request, wherein the identifier is used for uniquely representing the readable cache region;
the searching unit is used for searching the readable cache region bound by the identification based on the received identification after receiving the traffic road condition data acquisition request, and reading the traffic road condition data from the readable cache region;
and the sending unit is used for sending the identification to the client and sending the traffic road condition data read from the cache region to the client.
The generating of the identifier bound to the readable cache area specifically includes:
confirming a readable cache area;
and generating the identification based on the read identification and the timestamp of the readable cache region.
The step of searching the readable cache area bound by the identifier based on the received identifier and reading the traffic road condition data from the readable cache area specifically comprises the following steps:
disassembling the identifier into a reading identifier and a timestamp of a cache region;
finding out the corresponding cache region through the reading identifier of the cache region;
and after the consistency between the timestamp obtained after the cache region can be read and disassembled and the timestamp of the cache region is confirmed, reading the traffic road condition data from the cache region.
The device further comprises a release unit, and the receiving unit is further configured to receive an identifier deletion request sent by the client; and the releasing unit deletes the identifier and releases the binding relationship between the identifier and the cache region after the receiving unit receives the identifier deletion request.
The apparatus further includes an initializing unit that updates traffic condition data using a dual buffer area structure, the initializing unit initializing the dual buffer area before performing data update, the initializing operation including:
respectively distributing the memory structures of the double cache regions;
setting a reading identifier of a cache region and initializing a timestamp;
and setting a reading identifier of another cache region and initializing the time stamp.
The device comprises an updating unit, wherein the updating unit is used for updating the traffic road condition data in the cache region after the initialization operation is completed, and the updating unit specifically comprises:
when the traffic road condition data is updated, writing the traffic road condition data into a cache region, and setting a timestamp of the cache region;
the buffer area written with the traffic road condition data is set to be readable, and the other buffer area is set to be writable.
The present invention also provides an electronic device, the device comprising:
a storage device;
one or more processors;
wherein the storage device is used for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement a method of ensuring data acquisition consistency as claimed in any one of claims 8-17.
The present invention also provides a computer program product comprising computer program instructions for implementing a method of ensuring data acquisition consistency as described above when the instructions are executed by a processor.
The present invention also provides a computer-readable storage medium having stored thereon a computer program which, when executed, implements a method of ensuring data acquisition consistency as described above.
Compared with the prior art, the method and the device have the advantages that before the double cache regions are used for acquiring the road condition data, the request identification for requesting a certain data batch, namely the session ID identification, is bound with one cache region, and then the session ID identification is used for directly indexing the data batch in the corresponding cache region when the traffic road condition data of the data batch is requested. .
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a flow chart of a method for ensuring data acquisition consistency according to a first embodiment of the invention;
fig. 2 is a message flow diagram of a method for ensuring data acquisition consistency according to a first embodiment of the present invention;
FIG. 3 is a flowchart of a method for ensuring data acquisition consistency according to a second embodiment of the present invention;
FIG. 4 is a flowchart of a method for ensuring data acquisition consistency according to a third embodiment of the present invention;
FIG. 5 is a diagram of a system for ensuring data acquisition consistency according to a fourth embodiment of the present invention;
FIG. 6 is a block diagram of an apparatus for ensuring consistency in data acquisition according to a fifth embodiment of the present invention;
FIG. 7 is a block diagram of a method for ensuring data acquisition consistency according to a sixth embodiment of the present invention;
FIG. 8 is a buffer initialization and read write flow diagram of the present invention;
fig. 9 is a flowchart of a method for managing traffic road condition data at a server side in the prior art;
Detailed Description
To facilitate understanding and implementation of the present invention for those of ordinary skill in the art, the following technical solutions of the present invention are clearly and completely described with reference to the accompanying drawings, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In order to ensure that the requested traffic road condition data are all in one data batch, before the terminal acquires the traffic road condition data, the terminal applies for the request identification of the data acquisition, the server generates a request identification and binds the request identification with the readable cache region, so that the identification is bound with the traffic road condition data of a certain batch, and the request identification can be directly used for requesting acquisition only for acquiring the traffic road condition data of the batch subsequently, so that the traffic road condition data acquired for many times can be ensured to belong to a uniform data batch, and the problem of inconsistent data acquisition batches caused by switching of the cache regions is avoided.
Example one
Referring to fig. 1 and 2, according to an embodiment of the present invention, there is provided a method for ensuring data acquisition consistency, including:
(1) the client sends an identification acquisition request to the server, wherein the identification is used for requesting traffic road condition data of a certain data batch, and the acquired identification can be a session identification represented by a session ID.
Before acquiring the traffic road condition data, the client sends the request to the server to acquire an identifier which uniquely represents a readable cache area in the server.
(2) And the server receives the identifier acquisition request, generates the session ID identifier bound with the readable cache region, and returns the session ID identifier to the client.
The session ID identifier bound to the readable cache region may be generated according to the information of the readable cache region, and since the traffic road condition data in the readable cache region all represent the same data batch, the identifier is bound to the cache region, that is, the identifier is bound to the traffic road condition data of one data batch, so that the session ID identifier can uniquely represent the traffic road condition data of one data batch. The subsequent client can directly use the session ID identification to acquire traffic road condition data, and the server searches the cache region based on the identification and can accurately position the traffic road condition data of the same data batch in the cache region.
Further, the generating the session ID identifier bound to the readable cache area specifically includes:
confirming a readable cache area;
and generating the session ID through the reading identifier and the timestamp of the readable cache region.
Because the session ID is generated based on the read identifier and the timestamp of the readable cache region, when the session ID is subsequently used to request to acquire traffic road condition data, the corresponding readable cache region can be found through the session ID, and when the traffic road condition data is requested to be read for multiple times, the read data are in the same cache region and the same timestamp, so that the consistency of data reading can be ensured.
(3) And the client sends a traffic road condition data acquisition request carrying the session ID identification to the server.
When the client acquires the traffic road condition data of the same data batch, the client can send a traffic road condition data acquisition request to the server for multiple times, and the same session ID is carried in the traffic road condition data acquisition request sent each time.
In fig. 2, the client obtains the complete traffic road condition data of the same batch by sending the data acquisition request twice, and in the actual process, the sending times are determined based on the data size and the network transmission capacity. The same session ID is contained in the acquisition request sent each time, so that the server can confirm and read the data in the same cache region according to the same session ID after receiving the acquisition requests sent for many times each time, and the consistency of the acquired data batches is ensured.
(4) After receiving the traffic road condition data acquisition request, the server searches the readable cache region bound by the session ID based on the session ID, reads the traffic road condition data from the cache region, and sends the traffic road condition data to the client. In fig. 2, after the server receives the traffic road condition data acquisition request each time, the server needs to disassemble the session ID to determine the cache area.
Further, the step of searching the readable cache region bound by the session ID based on the session ID, and reading traffic road condition data from the cache region specifically includes:
resolving the session ID into a reading identifier and a timestamp of a cache region;
finding out the corresponding cache region through the reading identifier of the cache region;
and after the consistency between the timestamp obtained after the cache region can be read and disassembled and the timestamp of the cache region is confirmed, reading the traffic road condition data from the cache region.
(5) And the client receives the traffic road condition data sent by the server.
(6) And after the client finishes acquiring the traffic road condition data, deleting the session ID identification, and sending an identification deletion request for deleting the session ID identification to the server.
(7) And after receiving the identifier deleting request for deleting the session ID identifier, the server deletes the session ID identifier and releases the binding relationship between the session ID identifier and the cache region.
Further, the server updates the traffic condition data by using a dual-buffer area structure, and before performing data update, the server initializes the dual-buffer area, and referring to fig. 8, the initializing operation includes:
allocating memory structures of a cache area A and a cache area B;
setting a reading identifier of a cache area A and initializing a timestamp;
and setting a reading identifier of the buffer B and initializing a time stamp.
Further, after the initialization operation is completed, the updating of the traffic road condition data in the cache region by the server includes:
when the traffic road condition data is updated, writing the traffic road condition data into a cache region A, and setting a timestamp of the cache region A;
buffer a is set to be readable and buffer B is set to be writable.
Example two
Referring to fig. 3, according to an embodiment of the present invention, a method for ensuring data acquisition consistency is provided, where the method includes:
(1) and sending an identification acquisition request to a server, wherein the identification is used for requesting traffic road condition data of a certain data batch, and the acquired identification can be a session identification represented by a session ID.
Before acquiring the traffic road condition data, the client sends the request to the server to acquire an identifier which uniquely represents a readable cache region in the server.
(2) And receiving the session ID identification sent by the server, wherein the session ID identification is generated by the server and is bound with the readable cache region, and the identification is used for uniquely representing the readable cache region.
The server can generate the session ID bound with the readable cache region according to the information of the readable cache region, and since the traffic road condition data in the readable cache region all represent the same data batch, the session ID can uniquely represent the traffic road condition data of one data batch by binding the identifier with the cache region, that is, by binding the identifier with the traffic road condition data of one data batch. The subsequent client can directly use the session ID identification to acquire traffic road condition data, and the server searches the cache region based on the identification and can accurately position the traffic road condition data of the same data batch in the cache region.
Further, the server generates an identifier bound to the readable cache area, specifically:
confirming a readable cache region;
and generating the session ID through the reading identifier and the timestamp of the readable cache region.
Because the session ID is generated based on the read identifier and the timestamp of the readable cache region, when the session ID is subsequently used to request to acquire traffic road condition data, the corresponding readable cache region can be found through the session ID, and when the traffic road condition data is requested to be read for multiple times, the read data are in the same cache region and the same timestamp, so that the consistency of data reading can be ensured.
(3) And sending a traffic road condition data acquisition request carrying the session ID identification to a server.
When acquiring traffic road condition data of the same data batch, the client may send a traffic road condition data acquisition request to the server for multiple times, and the traffic road condition data acquisition requests sent each time carry the same session ID.
(4) And receiving the traffic road condition data sent by the server. And the traffic road condition data is the traffic road condition data which is read from the readable cache region by the server based on the received session ID identifier to search the readable cache region bound by the session ID identifier.
Further, the server searches the readable cache region bound by the session ID identifier based on the received session ID identifier, and reads the traffic road condition data from the cache region, specifically:
disassembling the session ID identification into a reading identification and a timestamp of a cache region;
finding out the corresponding cache region through the reading identifier of the cache region;
and after the consistency between the timestamp obtained after the cache region can be read and disassembled and the timestamp of the cache region is confirmed, reading the traffic road condition data from the cache region.
(5) And after the traffic road condition data request is completed, deleting the session ID identification, and sending an identification deleting request for deleting the session ID identification to the server. And after receiving an identifier deleting request for deleting the session ID identifier, the server deletes the session ID identifier and releases the binding relationship between the session ID identifier and the cache region.
EXAMPLE III
Referring to fig. 4, according to an embodiment of the present invention, a method for ensuring data acquisition consistency is provided, where the method includes:
(1) receiving an identification acquisition request sent by a client, wherein the identification is used for requesting traffic road condition data of a certain data batch, and the acquired identification can be a session identification represented by a session ID.
Before acquiring the traffic road condition data, the client sends the request to the server to acquire an identifier which uniquely represents a readable cache area in the server.
(2) And generating the session ID identifier bound with the readable cache region, and sending the session ID identifier to the client. The identifier is used for uniquely representing the readable cache region.
The session ID identifier bound to the readable cache region may be generated according to the information of the readable cache region, and since the traffic road condition data in the readable cache region all represent the same data batch, the identifier is bound to the cache region, that is, the identifier is bound to the traffic road condition data of one data batch, so that the session ID identifier can uniquely represent the traffic road condition data of one data batch. The subsequent client can directly use the session ID identification to acquire traffic road condition data, and the server searches the cache region based on the identification and can accurately position the traffic road condition data of the same data batch in the cache region.
Further, the generating the session ID identifier bound to the readable cache area specifically includes:
confirming a readable cache area;
and generating the session ID identification through the reading identification and the time stamp of the readable cache region.
Because the session ID is generated based on the read identifier and the timestamp of the readable cache region, the corresponding readable cache region can be found through the session ID when the session ID is subsequently used to request to acquire traffic condition data, and the read traffic condition data are all data in the same cache region and the same timestamp when the traffic condition data are requested to be read for multiple times, so that the consistency of data reading can be ensured.
(3) And receiving a traffic road condition data acquisition request which is sent by the client and carries the session ID identification, searching the readable cache region bound by the session ID identification based on the session ID identification, reading traffic road condition data from the cache region, and sending the traffic road condition data to the client.
And when the client side acquires the traffic road condition data of the same data batch, sending a traffic road condition data acquisition request to the server, wherein the traffic road condition data acquisition request sent each time carries the same session ID identification.
Further, the step of searching the readable cache region bound by the session ID based on the session ID, and reading traffic road condition data from the cache region specifically includes:
resolving the session ID into a reading identifier and a timestamp of a cache region;
finding out the corresponding cache region through the reading identifier of the cache region;
and after the consistency between the timestamp obtained after the cache region can be read and disassembled and the timestamp of the cache region is confirmed, reading the traffic road condition data from the cache region.
(4) And receiving an identifier deleting request sent by the client, deleting the session ID identifier, and releasing the binding relationship between the session ID identifier and the cache region.
The identifier deletion request is sent after the client completes the traffic road condition data request.
Further, the server updates the traffic condition data by using a dual buffer area structure, and before performing data update, the server initializes the dual buffer area, which is shown in fig. 8, and the initializing operation includes:
allocating memory structures of a cache area A and a cache area B;
setting a reading identifier of a cache area A and initializing a timestamp;
and setting a reading identifier of the buffer B and initializing a time stamp.
Further, after the initialization operation is completed, the updating of the traffic road condition data in the cache region by the server includes:
when the traffic road condition data is updated, writing the traffic road condition data into a cache region A, and setting a timestamp of the cache region A;
buffer a is set to be readable and buffer B is set to be writable.
Example four
Referring to fig. 5, an embodiment of the present invention provides a system for ensuring data acquisition consistency, where the system includes a client and a server.
The client is used for sending an identification acquisition request for acquiring the session ID identification to the server and receiving the session ID identification from the server; and sending a traffic road condition data acquisition request carrying the session ID identification to a server, and receiving the traffic road condition data in the readable cache region sent by the server.
And the client is also used for deleting the session ID after the traffic road condition data request is completed, and sending an identifier deleting request for deleting the session ID to the server.
The server is used for receiving an identification acquisition request which is sent by the client and used for acquiring a session ID identification, generating the session ID identification bound with a readable cache region, and sending the session ID identification to the client, wherein the session ID identification is used for uniquely representing the readable cache region; and receiving the traffic road condition data acquisition request, searching a readable cache region bound by the session ID based on the received session ID, reading traffic road condition data from the cache region, and sending the traffic road condition data to the client.
And the server is further used for deleting the session ID identification and releasing the binding relationship between the session ID identification and the cache region after receiving an identification deletion request which is sent by the client and used for deleting the session ID identification.
Further, the generating a session ID identifier bound to the readable cache area specifically includes:
confirming a readable cache region;
and generating the session ID through the reading identifier and the timestamp of the readable cache region.
Further, the step of searching a readable cache area bound by the session ID identifier based on the received session ID identifier and reading traffic road condition data from the cache area specifically includes:
disassembling the session ID identification into a reading identification and a timestamp of a cache region;
finding out the corresponding cache region through the reading identifier of the cache region;
and after the consistency between the timestamp obtained after the cache region can be read and disassembled and the timestamp of the cache region is confirmed, reading the traffic road condition data from the cache region.
Further, the server updates the traffic condition data by using a dual buffer area structure, and before performing data update, the server initializes the dual buffer area, which is shown in fig. 8, and the initializing operation includes:
allocating memory structures of a cache area A and a cache area B;
setting a reading identifier of a cache area A and initializing a timestamp;
and setting a reading identifier of the buffer B and initializing a time stamp.
Further, after the initialization operation is completed, the updating of the traffic road condition data in the cache area by the server includes:
when the traffic road condition data is updated, writing the traffic road condition data into a cache region A, and setting a timestamp of the cache region A;
buffer a is set to be readable and buffer B is set to be writable.
EXAMPLE five
Referring to fig. 6, an apparatus for ensuring data acquisition consistency according to an embodiment of the present invention includes: a transmitting unit and a receiving unit.
The sending unit is used for sending an identification obtaining request for obtaining the session ID identification to the server and sending a traffic road condition data obtaining request carrying the session ID identification to the server.
The receiving unit is used for receiving a session ID identifier sent by the server, wherein the session ID identifier is generated by the server and is bound with the readable cache region, and the session ID identifier is used for uniquely representing the readable cache region; and receiving traffic road condition data sent by the server, wherein the traffic road condition data is readable cache area bound by the session ID identification searched by the server based on the received session ID identification, and the traffic road condition data is read from the cache area.
Further, the server generates an identifier bound to the readable cache area, specifically:
confirming a readable cache area;
and generating the session ID through the reading identifier and the timestamp of the readable cache region.
Further, the server searches for a readable cache region bound by the session ID identifier based on the received session ID identifier, and reads traffic road condition data from the cache region, specifically:
disassembling the session ID identification into a reading identification and a timestamp of a cache region;
finding out the corresponding cache region through the reading identifier of the cache region;
and after the consistency between the timestamp obtained after the cache region can be read and disassembled and the timestamp of the cache region is confirmed, reading the traffic road condition data from the cache region.
Further, the device further comprises a deleting unit, configured to delete the session ID after the traffic road condition data request is completed.
The sending unit is further configured to send an identifier deletion request for deleting the session ID identifier to the server after the session ID identifier is deleted, so that the server deletes the session ID identifier after receiving the identifier deletion request, and releases the binding relationship between the session ID identifier and the cache area.
EXAMPLE six
Referring to fig. 7, an apparatus for ensuring data acquisition consistency according to an embodiment of the present invention includes: the device comprises a receiving unit, a sending unit, a generating unit and a searching unit.
The receiving unit is used for receiving an identifier acquisition request for acquiring a session ID identifier sent by a client; and receiving a traffic road condition data acquisition request which is sent by the client and carries the session ID identification.
The generating unit is configured to generate the session ID bound to a readable cache area after receiving the identifier obtaining request, where the session ID is used to uniquely indicate the readable cache area.
And the searching unit is used for searching the readable cache region bound by the session ID identification based on the received session ID identification after receiving the traffic road condition data acquisition request, and reading the traffic road condition data from the cache region.
And the sending unit is used for sending the session ID identification to the client and sending the traffic road condition data read from the cache region to the client.
Further, the generating the session ID identifier bound to the readable cache area specifically includes:
confirming a readable cache area;
and generating the session ID through the reading identifier and the timestamp of the readable cache region.
Further, the step of searching for a readable cache area bound by the session ID based on the received session ID, and reading traffic road condition data from the cache area specifically includes:
resolving the session ID into a reading identifier and a timestamp of a cache region;
finding out the corresponding cache region through the reading identifier of the cache region;
and after the consistency between the timestamp obtained after the cache region can be read and disassembled and the timestamp of the cache region is confirmed, reading the traffic road condition data from the cache region.
Further, the receiving unit is further configured to receive an identifier deletion request sent by the client to delete the session ID.
Further, the device further includes a releasing unit, configured to delete the session ID after receiving an identifier deletion request sent by the client, and release the binding relationship between the session ID and the cache area.
Further, the apparatus further includes an initialization unit for updating the traffic condition data using the dual buffer area structure, and the initialization unit initializes the dual buffer area before performing the data update, where the initialization includes:
allocating memory structures of a cache area A and a cache area B;
setting a reading identifier of a cache area A and initializing a timestamp;
and setting a reading identifier of the cache region B and initializing a time stamp.
Further, the apparatus further includes an updating unit, where the updating unit is configured to update the traffic road condition data in the cache area after the initialization operation is completed, and specifically includes:
when the traffic road condition data is updated, writing the traffic road condition data into a cache region A, and setting a timestamp of the cache region A;
buffer a is set to be readable and buffer B is set to be writable.
In the embodiment, before the dual cache regions are used for acquiring the traffic data, the request identifier for requesting a certain data batch, namely the session ID identifier, is bound with one cache region, and then when the traffic data of the data batch is requested, the session ID identifier is used for directly indexing the data batch in the corresponding cache region.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses, modules and units may refer to the corresponding processes of the foregoing method embodiments, and are not described herein again.
In addition, the embodiment of the invention also discloses an electronic device, which comprises a storage device and one or more processors, wherein the storage device is used for storing one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors realize the method according to the first to third embodiments.
The embodiment of the invention also discloses a computer program product which comprises computer program instructions and is used for realizing the method in the first embodiment to the third embodiment when the instructions are executed by a processor.
The embodiment of the invention also discloses a computer readable storage medium, wherein a computer program is stored on the computer readable storage medium, and when the computer program is executed, the method of the embodiment one to the third is realized.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of methods, apparatus and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart and block diagrams may represent a unit, module, segment, or portion of code, which comprises one or more computer-executable instructions for implementing the logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. It will also be noted that each block of the block diagrams and flowchart illustrations, and combinations of blocks in the block diagrams and flowchart illustrations, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
It should be noted that, in this document, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention, and is provided by way of illustration only and not limitation. It will be apparent to those skilled in the art from this disclosure that various other changes and modifications can be made without departing from the spirit and scope of the invention.

Claims (19)

1. A method for ensuring data acquisition consistency, comprising the steps of:
the client sends an identification acquisition request to a server, the server comprises two cache regions which can be read and written, and the readable and writable states of the two cache regions are switched along with the update of data;
the server receives the identification obtaining request, generates an identification bound with a readable cache region, and sends the identification to the client, wherein the identification is used for uniquely representing the readable cache region;
the client receives the identification sent by the server and sends a traffic road condition data acquisition request carrying the identification to the server;
the server receives the traffic road condition data acquisition request, searches the readable cache region bound by the identifier based on the received identifier, reads traffic road condition data from the readable cache region, and sends the traffic road condition data to the client;
and the client receives the traffic road condition data sent by the server.
2. The method of claim 1, wherein the generating the identifier bound to the readable cache area comprises:
confirming a readable cache area;
and generating the identification based on the read identification and the timestamp of the readable cache region.
3. The method according to claim 1 or 2, wherein the step of searching the readable cache area bound to the identifier based on the received identifier reads traffic road condition data from the cache area, specifically:
disassembling the identifier into a reading identifier and a timestamp of a cache region;
finding out the corresponding cache region through the reading identifier of the cache region;
and after the consistency between the timestamp obtained after the cache region can be read and disassembled and the timestamp of the cache region is confirmed, reading the traffic road condition data from the cache region.
4. The method of claim 1, wherein the method further comprises:
after the client finishes acquiring the traffic road condition data, deleting the identifier and sending an identifier deleting request to the server;
and the server receives the identifier deleting request, deletes the identifier and releases the binding relationship between the identifier and the cache region.
5. The method of claim 1,
the server updates traffic road condition data by using a dual-cache area structure, before data updating is performed, the server initializes the dual-cache area, and the initialization operation includes:
respectively distributing the memory structures of the double cache regions;
setting a reading identifier of a cache region and initializing a timestamp;
set the read identification of another cache and initialize the timestamp.
6. The method as claimed in claim 5, wherein after the initialization operation is completed, the server updates the traffic status data in the buffer, comprising:
when the traffic road condition data is updated, writing the traffic road condition data into a cache region, and setting a timestamp of the cache region;
the buffer area written with the traffic road condition data is set to be readable, and the other buffer area is set to be writable.
7. A method for ensuring data acquisition consistency, comprising the steps of:
sending an identification acquisition request to a server, wherein the server comprises two readable and writable cache regions, and the readable and writable states of the two cache regions are switched along with the updating of data;
receiving an identifier sent by a server, wherein the identifier is generated by the server and bound with a readable cache region, and the identifier is used for uniquely representing the readable cache region;
sending a traffic road condition data acquisition request carrying the identifier to a server;
and receiving traffic road condition data sent by a server, wherein the traffic road condition data is the traffic road condition data which is obtained by searching the readable cache region bound by the identifier based on the received identifier and reading the readable cache region.
8. The method of claim 7, wherein the server generates the identifier bound to the readable cache area, and specifically comprises:
confirming a readable cache region;
and generating the identification based on the read identification and the timestamp of the readable cache region.
9. The method according to claim 7 or 8, wherein the server searches the readable cache area bound to the identifier based on the received identifier, and reads the traffic road condition data from the cache area, specifically:
resolving the identifier into a reading identifier and a time stamp of the cache region;
finding out the corresponding cache region through the reading identifier of the cache region;
and after the consistency between the timestamp obtained after the cache region can be read and disassembled and the timestamp of the cache region is confirmed, reading the traffic road condition data from the cache region.
10. A method for ensuring data acquisition consistency is applied to a server, the server comprises two buffers which can be read and written, and the readable and writable states of the two buffers are switched along with the update of data, and the method is characterized by comprising the following steps:
receiving an identification acquisition request sent by a client;
generating an identifier bound with a readable cache region, and sending the identifier to the client, wherein the identifier is used for uniquely representing the readable cache region;
and receiving a traffic road condition data acquisition request carrying the identification and sent by the client, searching the readable cache region bound by the identification based on the received identification, reading traffic road condition data from the readable cache region, and sending the traffic road condition data to the client.
11. The method according to claim 10, wherein the generating the identifier bound to the readable cache area specifically comprises:
confirming a readable cache area;
and generating the identification based on the read identification and the timestamp of the readable cache region.
12. The method according to claim 10 or 11, wherein the step of searching the readable cache area bound to the identifier based on the received identifier reads traffic road condition data from the cache area, specifically:
disassembling the identifier into a reading identifier and a timestamp of a cache region;
finding out the corresponding cache region through the reading identifier of the cache region;
and after the consistency between the timestamp obtained after the cache region can be read and disassembled and the timestamp of the cache region is confirmed, reading the traffic road condition data from the cache region.
13. The method as claimed in claim 10, wherein the traffic road condition data is updated using a dual buffer area structure, and the dual buffer area is initialized before the data updating is performed, the initializing operation comprising:
respectively distributing the memory structures of the double cache regions;
setting a reading identifier of a cache region and initializing a timestamp;
and setting a reading identifier of another cache region and initializing the time stamp.
14. The method as claimed in claim 13, wherein after the initialization operation is completed, updating the traffic condition data in the buffer area comprises:
when the traffic road condition data is updated, writing the traffic road condition data into a cache region, and setting a timestamp of the cache region;
the buffer area written with the traffic road condition data is set to be readable, and the other buffer area is set to be writable.
15. A system for ensuring data acquisition consistency, comprising a client and a server,
the client is used for sending an identification acquisition request to the server and sending a traffic road condition data acquisition request carrying the identification; receiving the identification sent by the server and receiving the traffic road condition data sent by the server;
the server is used for receiving the identification acquisition request, generating an identification bound with a readable cache region and sending the identification to the client, wherein the identification is used for uniquely representing the readable cache region; receiving the traffic road condition data acquisition request, searching a readable cache region bound by the identifier based on the received identifier, reading traffic road condition data from the readable cache region, and sending the traffic road condition data to the client;
the server comprises two buffer areas which can be read and written, and the states of the two buffer areas which can be read and written are switched along with the update of the data.
16. An apparatus for ensuring data acquisition consistency, the apparatus comprising a sending unit and a receiving unit,
the sending unit is used for sending an identification obtaining request to a server and sending a traffic road condition data obtaining request carrying the identification to the server, the server comprises two cache regions which can be read and written, and the readable and writable states of the two cache regions are switched along with the updating of data;
the receiving unit is used for receiving an identifier sent by a server, wherein the identifier is generated by the server and is bound with a readable cache region, and the identifier is used for uniquely representing the readable cache region; and receiving traffic road condition data sent by the server, wherein the traffic road condition data is read from a readable cache region which is bound by the identifier and searched by the server based on the received identifier.
17. The device is applied to a server side, the server comprises two buffer areas which can be read and written, and the readable and writable states of the two buffer areas are switched along with the updating of data; the device comprises a receiving unit, a sending unit, a generating unit and a searching unit, and is characterized in that,
the receiving unit is used for receiving an identification acquisition request sent by a client and receiving a traffic road condition data acquisition request carrying the identification sent by the client;
the generating unit is used for generating an identifier bound with a readable cache area after receiving the identifier acquisition request, wherein the identifier is used for uniquely representing the readable cache area;
the searching unit is used for searching the readable cache region bound by the identification based on the received identification after receiving the traffic road condition data acquisition request, and reading the traffic road condition data from the readable cache region;
and the sending unit is used for sending the identification to the client and sending the traffic road condition data read from the cache region to the client.
18. An electronic device, characterized in that the device comprises:
a storage device;
one or more processors;
wherein the storage means is for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement a method of ensuring data acquisition consistency as claimed in any one of claims 7 to 14.
19. A computer-readable storage medium, having stored thereon a computer program which, when executed, implements a method of ensuring data acquisition consistency as claimed in any one of claims 7 to 14.
CN201910285021.5A 2019-04-10 2019-04-10 Method and device for ensuring data acquisition consistency Active CN111818108B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910285021.5A CN111818108B (en) 2019-04-10 2019-04-10 Method and device for ensuring data acquisition consistency

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910285021.5A CN111818108B (en) 2019-04-10 2019-04-10 Method and device for ensuring data acquisition consistency

Publications (2)

Publication Number Publication Date
CN111818108A CN111818108A (en) 2020-10-23
CN111818108B true CN111818108B (en) 2022-07-19

Family

ID=72844241

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910285021.5A Active CN111818108B (en) 2019-04-10 2019-04-10 Method and device for ensuring data acquisition consistency

Country Status (1)

Country Link
CN (1) CN111818108B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103092775A (en) * 2013-01-31 2013-05-08 武汉大学 Spatial data double cache method and mechanism based on key value structure
CN105612488A (en) * 2014-09-15 2016-05-25 华为技术有限公司 Data write request handling method and storage array
CN107092525A (en) * 2016-02-18 2017-08-25 深圳市深信服电子科技有限公司 data cache method and device
CN108920092A (en) * 2018-05-07 2018-11-30 北京奇艺世纪科技有限公司 Data manipulation method, device and the electronic equipment of internal storage data

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4713257B2 (en) * 2005-07-13 2011-06-29 日本放送協会 Data storage device and version management program
JP4848771B2 (en) * 2006-01-04 2011-12-28 株式会社日立製作所 Cache coherency control method, chipset, and multiprocessor system
CN102521151A (en) * 2011-11-28 2012-06-27 华为技术有限公司 Data caching method and device
US9201897B1 (en) * 2013-03-14 2015-12-01 The Mathworks, Inc. Global data storage combining multiple back-end storage devices
CN107133132B (en) * 2013-07-26 2020-11-17 华为技术有限公司 Data sending method, data receiving method and storage device
US10884869B2 (en) * 2015-04-16 2021-01-05 Nuodb, Inc. Backup and restore in a distributed database utilizing consistent database snapshots

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103092775A (en) * 2013-01-31 2013-05-08 武汉大学 Spatial data double cache method and mechanism based on key value structure
CN105612488A (en) * 2014-09-15 2016-05-25 华为技术有限公司 Data write request handling method and storage array
CN107092525A (en) * 2016-02-18 2017-08-25 深圳市深信服电子科技有限公司 data cache method and device
CN108920092A (en) * 2018-05-07 2018-11-30 北京奇艺世纪科技有限公司 Data manipulation method, device and the electronic equipment of internal storage data

Also Published As

Publication number Publication date
CN111818108A (en) 2020-10-23

Similar Documents

Publication Publication Date Title
CN106527958B (en) Method and equipment for writing data and acquiring data for distributed storage system
US11537659B2 (en) Method for reading and writing data and distributed storage system
JP5327497B2 (en) Map data distribution system and map data update method
CN107786638B (en) Data processing method, device and system
CN105512320A (en) User ranking obtaining method and device and server
CN104426955A (en) Processing method of shared file, and cloud storage server
CN105141672A (en) Method, device and system for data storage
CN114936254A (en) Food safety big data sharing management method and system under cloud chain fusion mechanism
CN111818108B (en) Method and device for ensuring data acquisition consistency
CN114138558A (en) Object storage method and device, electronic equipment and storage medium
US10430110B2 (en) Implementing a hybrid storage node in a distributed storage system
CN111694848A (en) Method and apparatus for updating data buffer using reference count
US20190073270A1 (en) Creating Snapshots Of A Storage Volume In A Distributed Storage System
CN110990427B (en) Method, system and storage medium for counting application program affiliated area
CN112448979B (en) Cache information updating method, device and medium
CN111641690A (en) Session message processing method and device and electronic equipment
CN106371867B (en) Financial equipment software updating method and system
CN115002196B (en) Data processing method and device and vehicle end acquisition equipment
CN112445986A (en) Cache information updating method, cache information pushing method, cache information updating device, cache information pushing device and cache information pushing medium
CN102946403B (en) A kind of method of the solution file conflict for cloud storage system and device
CN115544037A (en) Transaction execution method and distributed database system
CN115729463A (en) Data migration method, system and related device
CN113505103A (en) File processing method and device, storage medium and electronic device
CN108694219B (en) Data processing method and device
US11249851B2 (en) Creating snapshots of a storage volume in a distributed storage system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant