CN108259618B - Synchronous data interaction processing method and device - Google Patents

Synchronous data interaction processing method and device Download PDF

Info

Publication number
CN108259618B
CN108259618B CN201810088989.4A CN201810088989A CN108259618B CN 108259618 B CN108259618 B CN 108259618B CN 201810088989 A CN201810088989 A CN 201810088989A CN 108259618 B CN108259618 B CN 108259618B
Authority
CN
China
Prior art keywords
service system
data
mirror image
image service
updating
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
CN201810088989.4A
Other languages
Chinese (zh)
Other versions
CN108259618A (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.)
China Academy of Information and Communications Technology CAICT
Original Assignee
China Academy of Information and Communications Technology CAICT
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 China Academy of Information and Communications Technology CAICT filed Critical China Academy of Information and Communications Technology CAICT
Priority to CN201810088989.4A priority Critical patent/CN108259618B/en
Publication of CN108259618A publication Critical patent/CN108259618A/en
Application granted granted Critical
Publication of CN108259618B publication Critical patent/CN108259618B/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/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention provides a synchronous data interaction processing method and a synchronous data interaction processing device, wherein the method comprises the following steps: receiving a data request sent by a mirror image service system; the data request carries a user identity; if the verification result of the authority corresponding to the user identity is judged to be valid, whether preset types of updating data exist is determined; and returning corresponding information to the mirror image service system according to the determination result. The device performs the above method. According to the synchronous data interaction processing method and device provided by the embodiment of the invention, the interaction processing process of synchronous data can be optimized by verifying the corresponding authority of the user identity, determining whether the preset type of update data exists or not and returning the corresponding information to the mirror image service system according to the determination result, so that the utilization rate of system resources is improved.

Description

Synchronous data interaction processing method and device
Technical Field
The embodiment of the invention relates to the technical field of data processing, in particular to a synchronous data interaction processing method and a server.
Background
With the development of industrial internet in recent years, a Handle system has a wider application prospect. Dynamic analysis is one of key basic services of a Handle system, uninterrupted and quick analysis service needs to be provided for a user in the actual operation process of the system, and a common solution is to provide a plurality of servers to ensure high reliability and high performance and prevent the risk that analysis service cannot be provided due to single-point failure. If the Handle system is operated on a plurality of servers, how to efficiently synchronize Handle data is a key problem to be solved.
Fig. 1 is a schematic diagram of data synchronization based on a Handle system in the prior art, and as shown in fig. 1, data synchronization between a main service system and a mirror service system can be implemented by a protocol extension to RFC3652, which requires that the mirror service system actively initiate a polling request. Fig. 2 is a flowchart of a prior art incremental update data flow process based on a Handle system, as shown in fig. 2:
(1) the mirror image service system initiates an active polling request at regular time, and inquires whether the main service system has data which needs to be updated.
(2) The main service system checks the identity of the mirror image service system, if the check fails, an error message is directly returned, and the updating process is exited; if the verification is successful, a success message is immediately returned, and the subsequent steps are continued.
(3) The main service system initiatively initiates a request for establishing a safety channel, and if the establishment is successful, information such as a protocol version number and the like is sent to the mirror image service system; if the establishment fails, the updating process is exited.
(4) The primary service system sends a flag SENDING _ transitions indicating that the data is subsequently updated incrementally.
(5) The main service system judges whether the updated data exists or not, and if so, the incremental updated data is sent; if not, the subsequent operation is continued.
(6) The main service system transmits an END flag END _ TRANSMISSION _ RECORD and the current system time.
(7) The update delta data flow ends.
Fig. 3 is a flow chart of a prior art full update data flow process based on a Handle system, as shown in fig. 3:
(1) the mirror image service system initiates an active polling request at regular time, and inquires whether the main service system has data which needs to be updated.
(2) The main service system checks the identity of the mirror image service system, if the check fails, an error message is directly returned, and the updating process is exited; if the check is successful, a success message is immediately returned.
(3) The main service system initiatively initiates a request for establishing a safety channel, and if the establishment is successful, information such as a protocol version number and the like is sent to the mirror image service system; if the establishment fails, the updating process is exited.
(4) The primary service system sends a flag NEED _ TO _ restore indicating that the mirroring service system is required TO actively initiate a full update request.
(5) The main service system sends a mark END _ TRANSMISSION _ RECORD and the current system time, and the operation is finished.
(6) The mirror service system initiates a full update request.
(7) The main service system carries out authority verification on the identity of the main service system, and if the identity passes the authority verification, success is returned; if not, returning to failure, and exiting the updating process.
(8) The main service system actively initiates the establishment of a secure channel and sends information such as protocol version number and the like.
(9) The main service system sends the last operation record ID and time.
(10) The master service system sends the full update data.
(11) The main service system sends an end flag absolutley _ DONE _ RECORD.
(12) And ending the data updating process.
The data synchronization scheme of the Handle system is not efficient, and is mainly embodied as follows: (1) incremental data updating, if the main service system does not have updated data, except for the fifth step in fig. 2, other steps need to be executed, which wastes system resources and network bandwidth. (2) And updating the full data, wherein the mirror image service system needs to initiate two updating requests, the main service system needs to perform two identity verifications, and two network security channels are established, so that unnecessary waste is caused to system resources.
Therefore, how to avoid the above-mentioned defects and optimize the interactive processing process of the synchronous data, so as to improve the utilization rate of the system resources, is a problem that needs to be solved urgently.
Disclosure of Invention
Aiming at the problems in the prior art, the embodiment of the invention provides a synchronous data interaction processing method and device.
In a first aspect, an embodiment of the present invention provides a synchronous data interaction processing method, where the method includes:
receiving a data request sent by a mirror image service system; the data request carries a user identity;
if the verification result of the authority corresponding to the user identity is judged to be valid, whether preset types of updating data exist is determined;
and returning corresponding information to the mirror image service system according to the determination result.
In a second aspect, an embodiment of the present invention provides a synchronous data interaction processing apparatus, where the apparatus includes:
the receiving unit is used for receiving a data request sent by the mirror image service system; the data request carries a user identity;
the determining unit is used for determining whether the updating data of the preset type exists or not if the verification result of the authority corresponding to the user identity is judged to be valid;
and the return unit is used for returning corresponding information to the mirror image service system according to the determination result.
In a third aspect, an embodiment of the present invention provides an electronic device, including: a processor, a memory, and a bus, wherein,
the processor and the memory are communicated with each other through the bus;
the memory stores program instructions executable by the processor, the processor invoking the program instructions to perform a method comprising:
receiving a data request sent by a mirror image service system; the data request carries a user identity;
if the verification result of the authority corresponding to the user identity is judged to be valid, whether preset types of updating data exist is determined;
and returning corresponding information to the mirror image service system according to the determination result.
In a fourth aspect, an embodiment of the present invention provides a non-transitory computer-readable storage medium, including:
the non-transitory computer readable storage medium stores computer instructions that cause the computer to perform a method comprising:
receiving a data request sent by a mirror image service system; the data request carries a user identity;
if the verification result of the authority corresponding to the user identity is judged to be valid, whether preset types of updating data exist is determined;
and returning corresponding information to the mirror image service system according to the determination result.
According to the synchronous data interaction processing method and device provided by the embodiment of the invention, the interaction processing process of synchronous data can be optimized by verifying the corresponding authority of the user identity, determining whether the preset type of update data exists or not and returning the corresponding information to the mirror image service system according to the determination result, so that the utilization rate of system resources is improved.
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, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
FIG. 1 is a diagram of a prior art data synchronization principle based on a Handle system;
FIG. 2 is a flow diagram of a prior art incremental update data flow process based on a Handle system;
FIG. 3 is a prior art flow diagram of a process for updating data flow based on a Handle system;
FIG. 4 is a flow chart of a synchronous data interaction processing method according to an embodiment of the present invention;
FIG. 5 is a flowchart illustrating a process for incrementally updating data in accordance with an embodiment of the present invention;
FIG. 6 is a flowchart illustrating a process for synchronizing full update data according to an embodiment of the present invention;
FIG. 7 is a flowchart illustrating the primary service system actively initiating a data update notification according to an embodiment of the present invention;
FIG. 8 is a schematic structural diagram of a synchronous data interaction processing apparatus according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. 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.
Fig. 4 is a schematic flowchart of a synchronous data interaction processing method according to an embodiment of the present invention, and as shown in fig. 4, the synchronous data interaction processing method according to the embodiment of the present invention includes the following steps:
s1: receiving a data request sent by a mirror image service system; the data request carries a user identity.
Specifically, the device receives a data request sent by a mirror image service system; the data request carries a user identity. The device may be a host service system of a Handle system. The data request can be sent by the mirror image service system in a polling mode, and the user identity can be a VIP user identity, a common user identity and the like.
S2: and if the verification result of the authority corresponding to the user identity is judged to be valid, determining whether the preset type of updating data exists.
Specifically, if the device judges that the verification result of the authority corresponding to the user identity is valid, whether the preset type of update data exists is determined. Different user identity identifications correspond to different levels of authority, namely the VIP user identification corresponds to higher authority; the common user identifier corresponds to a lower right. The verification result may include valid or invalid. The preset type of update data may include incremental update data or full update data. And if the verification result is invalid, directly returning an update request failure message to the mirror image service system, and exiting the update process.
S3: and returning corresponding information to the mirror image service system according to the determination result.
Specifically, the device returns corresponding information to the mirror image service system according to the determination result. And if the updating data of the preset type (which can comprise incremental updating data or full updating data) is determined to exist, returning first prompt information prompting that the updating data exists to the mirror image service system. If the updating data (which can comprise incremental updating data or full updating data) of the preset type does not exist, returning second prompting information prompting that the updating data does not exist to the mirror image service system, and terminating the execution of the method.
Fig. 5 is a flowchart of a synchronization process of incrementally updating data according to an embodiment of the present invention, as shown in fig. 5:
(1) the mirror image service system initiates an active polling request (the data request adopts an active polling mode).
(2) The main service system carries out authority verification on the identity (the data request sender) of the main service system, and if the identity (the data request sender) does not pass the authority verification (the verification result is invalid), corresponding information is returned; if the check is passed (the check result is valid), it needs to be checked whether the incremental update data exists.
(3) According to the returned information in the step (2), the following operations are carried out:
a) if the verification fails (the verification result is invalid), returning an updating request failure message to the mirror image service system, and exiting the updating process;
b) if the verification is successful (the verification result is valid) but the incremental updating data does not exist (according to the second prompt information of the prompt), returning the information of no updating data and exiting the updating process.
c) If the verification is successful (the verification result is valid) and the data is updated in increments (according to the first prompt information of the prompt), the subsequent steps are continued.
(4) The mirror image service system receives the corresponding information returned by the main service system, and if the verification is successful and the incremental updating data exists, a request for establishing a network security channel is initiated.
(5) After the secure channel is established, the main service system sends information such as protocol version number.
(6) The host service system transmits the incremental update data.
(7) The main service system transmits an END flag END _ TRANSMISSION _ RECORD and the current system time.
Fig. 6 is a flowchart of a synchronization process for updating data in full, as shown in fig. 6:
(1) the mirror image service system initiates an active polling request (the data request adopts an active polling mode).
(2) The main service system carries out authority verification on the identity (the data request sender) of the main service system, and if the identity (the data request sender) does not pass the authority verification (the verification result is invalid), corresponding information is returned; if the verification is passed (the verification result is valid), it is necessary to check whether there is a full amount of update data.
(3) According to the returned information in the step (2), the following operations are carried out:
a) if the verification fails (the verification result is invalid), returning an updating request failure message to the mirror image service system, and exiting the updating process;
b) if the verification is successful (the verification result is valid), but the data is not updated in full amount (according to the second prompt information of the prompt), returning the information of no updated data, and exiting the updating process.
c) If the verification is successful (the verification result is valid) and the full amount of updating data (according to the first prompting information of the prompt), the subsequent steps are continued.
(4) The mirror image service system receives the corresponding information returned by the main service system, and if the verification is successful and the total update data exists, a request for establishing a network security channel is initiated.
(5) After the secure channel is established, the main service system sends information such as protocol version number.
(6) The main service system sends the last operation record ID and time.
(7) The master service system sends the full update data.
(8) The main service system sends an end flag absolutley _ DONE _ RECORD.
According to the synchronous data interaction processing method provided by the embodiment of the invention, the interaction processing process of the synchronous data can be optimized by checking the corresponding authority of the user identity identification, determining whether the preset type of updating data exists or not and returning the corresponding information to the mirror image service system according to the determination result, so that the utilization rate of system resources is improved.
On the basis of the above embodiment, the returning of the corresponding information to the mirroring service system according to the determination result includes:
and if the updating data of the preset type is determined, returning first prompt information prompting the updating data to the mirror image service system.
Specifically, if the device determines that the preset type of update data exists, first prompt information prompting that the update data exists is returned to the mirror image service system. Reference may be made to the above embodiments, which are not described in detail.
According to the synchronous data interaction processing method provided by the embodiment of the invention, the first prompt information prompting the updated data is returned to the mirror image service system, so that the interaction processing process of the synchronous data can be further optimized, and the utilization rate of system resources is further improved.
On the basis of the above embodiment, after the step of returning the first prompt message prompting the updated data to the mirroring service system, the method further includes:
receiving a request for establishing a network security channel, and establishing the network security channel; the establishment request is sent to a main service system by the mirror service system after receiving the first prompt message.
Specifically, the device receives a request for establishing a network security channel, and establishes the network security channel; the establishment request is sent to a main service system by the mirror service system after receiving the first prompt message. Reference may be made to the above embodiments, which are not described in detail.
And sending update data to the mirror image service system through the network security channel.
Specifically, the device sends the update data to the mirror image service system through the network security channel. Reference may be made to the above embodiments, which are not described in detail.
According to the synchronous data interaction processing method provided by the embodiment of the invention, the main service system receives the establishment request of the network security channel sent by the mirror image service system, and sends the updated data to the mirror image service system through the established network security channel, so that the interaction processing process of the synchronous data can be further optimized, and the utilization rate of system resources is further improved.
On the basis of the above embodiment, the preset type of update data includes incremental update data or full update data, and the method further includes:
and returning corresponding information to the mirror image service system according to the determined result, wherein the information comprises prompt information of incremental updating data or prompt information of full updating data.
Specifically, the device returns corresponding information to the mirror image service system according to the determination result, wherein the information includes prompt information of incremental update data or prompt information of full update data. Reference may be made to the above embodiments, which are not described in detail.
According to the synchronous data interaction processing method provided by the embodiment of the invention, the prompt message of the incremental updating data or the prompt message of the full updating data is returned to the mirror image service system, so that the mirror image service system can be informed of the preset type of the updating data in time.
On the basis of the above embodiment, the returning of the corresponding information to the mirroring service system according to the determination result includes:
and if the updating data of the preset type does not exist, returning second prompt information for prompting that the updating data does not exist to the mirror image service system, and stopping executing the method.
Specifically, if the device determines that no preset type of update data exists, the device returns second prompt information for prompting that no update data exists to the mirror image service system, and terminates execution of the method. Reference may be made to the above embodiments, which are not described in detail.
According to the synchronous data interaction processing method provided by the embodiment of the invention, the second prompt information prompting that no data is updated is returned to the mirror image service system, so that the interaction processing process of the synchronous data can be further optimized, and the utilization rate of system resources is further improved.
On the basis of the above embodiment, before the step of receiving the data request sent by the mirroring service system, the method further includes:
if the situation that the updated data are generated and preset conditions are met is detected, a data updating notice is sent to the mirror image service system; and the mirror image service system sends the data request to a main service system according to the received data updating notice.
Specifically, if the device detects that the update data is generated and reaches a preset condition, the device sends a data update notification to the mirror image service system; and the mirror image service system sends the data request to a main service system according to the received data updating notice. The preset conditions may include: the time interval is greater than a preset time interval, wherein the time interval is a time difference between the current time and the last time of receiving the data request sent by the mirror image service system. The preset time interval can be set independently according to actual conditions.
And/or;
the data increment generated between the current time and the last time the update data (which may include incremental update data or full update data) was transmitted is greater than the preset data amount. The preset data volume can be set independently according to actual conditions.
Fig. 7 is a flowchart of an embodiment of the present invention, where a main service system actively initiates a data update notification, as shown in fig. 7:
(1) and if the main service system detects that the data update is generated and a trigger notification condition (corresponding to a preset condition) is reached, initiating a data update notification to the mirror image service system.
(2) After receiving the data updating notification, the mirror image service system sends a confirmation message of receiving the updating notification to the main service system so as to prevent the main service system from repeatedly sending the data updating notification.
(3) The mirror service system sends a data request to the primary service system.
(4) And the main service system judges whether the prompt information of the incremental updating data or the prompt information of the full updating data is sent to the mirror image service system.
(5) And after receiving the prompt message of the incremental updating data or the prompt message of the full updating data, the mirror image service system sends a request for establishing a safety channel to the main service system.
(6) After the establishment is successful, the main service system sends information such as protocol version number and the like.
(7) The host service system sends full or incremental update data.
(8) The host service system sends a full or incremental update data end flag.
According to the synchronous data interaction processing method provided by the embodiment of the invention, the main service system actively initiates the data updating notification to the mirror image service system, so that the condition of data updating of the mirror image service system can be informed in time.
On the basis of the above embodiment, the preset conditions include:
the time interval is greater than a preset time interval, wherein the time interval is a time difference between the current time and the last time of receiving the data request sent by the mirror image service system.
And/or;
the difference between the first data volume of the update data at the current moment and the second data volume of the update data sent last time is larger than the preset data volume.
Specifically, the preset conditions in the device include:
the time interval is greater than a preset time interval, wherein the time interval is a time difference between the current time and the last time of receiving the data request sent by the mirror image service system.
And/or;
the difference between the first data volume of the update data at the current moment and the second data volume of the update data sent last time is larger than the preset data volume. Reference may be made to the above embodiments, which are not described in detail.
According to the synchronous data interaction processing method provided by the embodiment of the invention, the main service system is triggered to actively initiate the data updating notification to the mirror image service system through the specific preset condition, so that the condition of data updating of the mirror image service system can be informed more reasonably and timely.
Fig. 8 is a schematic structural diagram of a synchronous data interaction processing apparatus according to an embodiment of the present invention, and as shown in fig. 8, an embodiment of the present invention provides a synchronous data interaction processing apparatus, including a receiving unit 1, a determining unit 2, and a returning unit 3, where:
the receiving unit 1 is used for receiving a data request sent by a mirror image service system; the data request carries a user identity; the determining unit 2 is configured to determine whether there is update data of a preset type if it is determined that the verification result of the authority corresponding to the user identity is valid; the returning unit 3 is used for returning corresponding information to the mirror image service system according to the determination result.
Specifically, the receiving unit 1 is configured to receive a data request sent by a mirror image service system; the data request carries a user identity; the determining unit 2 is configured to determine whether there is update data of a preset type if it is determined that the verification result of the authority corresponding to the user identity is valid; the returning unit 3 is used for returning corresponding information to the mirror image service system according to the determination result.
The synchronous data interaction processing device provided by the embodiment of the invention can optimize the interaction processing process of synchronous data by checking the corresponding authority of the user identity and determining whether the preset type of updating data exists or not and returning corresponding information to the mirror image service system according to the determination result, thereby improving the utilization rate of system resources.
The synchronous data interaction processing apparatus provided in the embodiment of the present invention may be specifically configured to execute the processing flows of the above method embodiments, and the functions of the synchronous data interaction processing apparatus are not described herein again, and refer to the detailed description of the above method embodiments.
Fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, and as shown in fig. 9, the electronic device includes: a processor (processor)901, a memory (memory)902, and a bus 903;
the processor 901 and the memory 902 complete mutual communication through a bus 903;
the processor 901 is configured to call program instructions in the memory 902 to perform the methods provided by the above-mentioned method embodiments, for example, including: receiving a data request sent by a mirror image service system; the data request carries a user identity; if the verification result of the authority corresponding to the user identity is judged to be valid, whether preset types of updating data exist is determined; and returning corresponding information to the mirror image service system according to the determination result.
The present embodiment discloses a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, enable the computer to perform the method provided by the above-mentioned method embodiments, for example, comprising: receiving a data request sent by a mirror image service system; the data request carries a user identity; if the verification result of the authority corresponding to the user identity is judged to be valid, whether preset types of updating data exist is determined; and returning corresponding information to the mirror image service system according to the determination result.
The present embodiments provide a non-transitory computer-readable storage medium storing computer instructions that cause the computer to perform the methods provided by the above method embodiments, for example, including: receiving a data request sent by a mirror image service system; the data request carries a user identity; if the verification result of the authority corresponding to the user identity is judged to be valid, whether preset types of updating data exist is determined; and returning corresponding information to the mirror image service system according to the determination result.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
The above-described embodiments of the electronic device and the like are merely illustrative, where the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may also be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the embodiments of the present invention, and are not limited thereto; although embodiments of the present invention have been described in detail with reference to the foregoing embodiments, those skilled in the art will understand that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (7)

1. A synchronous data interaction processing method is characterized by comprising the following steps:
a main service system of the Handle system receives a data request sent by a mirror image service system; the data request carries a user identity;
if the main service system of the Handle system judges that the verification result of the authority corresponding to the user identity is valid, determining whether preset types of update data exist;
the main service system of the Handle system returns corresponding information to the mirror image service system according to the determination result;
the returning of the corresponding information to the mirror image service system according to the determination result includes: if the updating data of the preset type is determined, returning first prompt information prompting the updating data to the mirror image service system;
the preset type of update data comprises incremental update data or full update data; the method further comprises the following steps: the main service system of the Handle system returns corresponding information to the mirror image service system according to the determination result; the information comprises prompt information of incremental updating data or prompt information of full updating data;
after the step of returning the first prompt information prompting the updated data to the mirror image service system, the method further includes: a main service system of a Handle system receives a request for establishing a network security channel and establishes the network security channel; the establishing request is sent to a main service system by the mirror image service system after receiving the first prompt message; and sending update data to the mirror image service system through the network security channel.
2. The method of claim 1, wherein returning the corresponding information to the mirror service system according to the determination comprises:
and if the updating data of the preset type does not exist, returning second prompt information for prompting that the updating data does not exist to the mirror image service system, and stopping executing the method.
3. The method according to any one of claims 1 to 2, wherein the step of receiving a data request sent by a mirroring service system is preceded by the method further comprising:
if the situation that the updated data are generated and preset conditions are met is detected, a data updating notice is sent to the mirror image service system; and the mirror image service system sends the data request to a main service system according to the received data updating notice.
4. The method according to claim 3, wherein the preset conditions include:
the time interval is greater than a preset time interval, wherein the time interval is the time difference between the current time and the time of receiving the data request sent by the mirror image service system last time;
and/or;
and the data increment generated between the current time and the last time of sending the updating data is larger than the preset data amount.
5. A synchronous data interaction processing apparatus, comprising:
the receiving unit is used for receiving a data request sent by the mirror image service system by a main service system of the Handle system; the data request carries a user identity;
the determining unit is used for determining whether the updating data of the preset type exists or not if the main service system of the Handle system judges that the verification result of the authority corresponding to the user identity is valid;
the return unit is used for returning corresponding information to the mirror image service system according to the determination result by the main service system of the Handle system;
the returning of the corresponding information to the mirror image service system according to the determination result includes: if the updating data of the preset type is determined, returning first prompt information prompting the updating data to the mirror image service system;
the preset type of update data comprises incremental update data or full update data; the device further comprises: the main service system of the Handle system returns corresponding information to the mirror image service system according to the determination result; the information comprises prompt information of incremental updating data or prompt information of full updating data;
after the step of returning the first prompt information prompting the updated data to the mirror image service system, the apparatus further includes: a main service system of a Handle system receives a request for establishing a network security channel and establishes the network security channel; the establishing request is sent to a main service system by the mirror image service system after receiving the first prompt message; and sending update data to the mirror image service system through the network security channel.
6. An electronic device, comprising: a processor, a memory, and a bus, wherein,
the processor and the memory are communicated with each other through the bus;
the memory stores program instructions executable by the processor, the processor invoking the program instructions to perform the method of any of claims 1 to 4.
7. A non-transitory computer-readable storage medium storing computer instructions that cause a computer to perform the method of any one of claims 1 to 4.
CN201810088989.4A 2018-01-30 2018-01-30 Synchronous data interaction processing method and device Active CN108259618B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810088989.4A CN108259618B (en) 2018-01-30 2018-01-30 Synchronous data interaction processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810088989.4A CN108259618B (en) 2018-01-30 2018-01-30 Synchronous data interaction processing method and device

Publications (2)

Publication Number Publication Date
CN108259618A CN108259618A (en) 2018-07-06
CN108259618B true CN108259618B (en) 2021-07-27

Family

ID=62743370

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810088989.4A Active CN108259618B (en) 2018-01-30 2018-01-30 Synchronous data interaction processing method and device

Country Status (1)

Country Link
CN (1) CN108259618B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109741055A (en) * 2018-12-15 2019-05-10 平安科技(深圳)有限公司 Blacklist call method, device, server and storage medium
CN109587176B (en) * 2019-01-22 2021-08-10 网易(杭州)网络有限公司 Multi-user voice communication control method and device, storage medium and electronic equipment
CN110826977A (en) * 2019-09-18 2020-02-21 平安科技(深圳)有限公司 Data updating method and device, computer equipment and storage medium
CN110782240B (en) * 2019-10-12 2022-09-09 未鲲(上海)科技服务有限公司 Business data processing method and device, computer equipment and storage medium
CN111914012B (en) * 2020-08-12 2024-07-19 深圳市汉云科技有限公司 Data extraction method, device, equipment and storage medium
CN112631633B (en) * 2021-01-07 2024-07-19 南方电网数字电网研究院有限公司 Function module upgrading method and device based on double-core intelligent ammeter

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103297529A (en) * 2013-06-06 2013-09-11 浙江大学 Timestamp-based tree structure data synchronization method
CN103327037A (en) * 2012-03-20 2013-09-25 中兴通讯股份有限公司 Data synchronizing method and device
CN104468788A (en) * 2014-12-08 2015-03-25 成都依诺信息技术有限公司 Multi-net and multi-terminal data synchronization method
CN104618498A (en) * 2015-02-13 2015-05-13 深圳市创梦天地科技有限公司 Data resource synchronizing method and server
CN105208104A (en) * 2015-08-26 2015-12-30 浪潮(北京)电子信息产业有限公司 Remote mirroring data consistency detection method and device
CN106060004A (en) * 2016-05-09 2016-10-26 深圳市永兴元科技有限公司 Database access method and database agent node

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140012830A1 (en) * 2012-07-09 2014-01-09 Sap Ag Data verification system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103327037A (en) * 2012-03-20 2013-09-25 中兴通讯股份有限公司 Data synchronizing method and device
CN103297529A (en) * 2013-06-06 2013-09-11 浙江大学 Timestamp-based tree structure data synchronization method
CN104468788A (en) * 2014-12-08 2015-03-25 成都依诺信息技术有限公司 Multi-net and multi-terminal data synchronization method
CN104618498A (en) * 2015-02-13 2015-05-13 深圳市创梦天地科技有限公司 Data resource synchronizing method and server
CN105208104A (en) * 2015-08-26 2015-12-30 浪潮(北京)电子信息产业有限公司 Remote mirroring data consistency detection method and device
CN106060004A (en) * 2016-05-09 2016-10-26 深圳市永兴元科技有限公司 Database access method and database agent node

Also Published As

Publication number Publication date
CN108259618A (en) 2018-07-06

Similar Documents

Publication Publication Date Title
CN108259618B (en) Synchronous data interaction processing method and device
KR102167613B1 (en) Message push method and device
US10476833B2 (en) Warning method and apparatus, and processing server
CN108989052B (en) Transaction request processing method and system
CN108366176B (en) Charging method, device and system for terminal application
CN107248995B (en) Account verification method and device
WO2014152076A1 (en) Retry and snapshot enabled cross-platform synchronized communication queue
CN108696831B (en) Short message sending method and device
CN108874947B (en) Data processing system and data processing method
CN107872492B (en) Method and device for supporting multi-user editing of data object at server
CN116015824A (en) Unified authentication method, equipment and medium for platform
CN107172112B (en) Computer file transmission method and device
US10680930B2 (en) Method and apparatus for communication in virtual network
CN108521342B (en) Cluster management method and device
CN113342541A (en) Message consumption method and device, computing equipment and storage medium
CN110008681B (en) Access control method, device and system
CN111190754A (en) Block chain event notification method and block chain system
CN112532458B (en) Cooperative configuration method and device for Internet of things equipment and electronic equipment
CN111932326B (en) Data processing method based on block chain network and related equipment
CN111092864B (en) Session protection method, device, equipment and readable storage medium
CN106790150B (en) Session maintaining method and device
CN111858100A (en) BMC message transmission method and related device
CN112822172A (en) Login verification method and device, electronic equipment and storage medium
CN108156587A (en) The method for pushing and system of a kind of multimedia short message
CN114584328B (en) API interface access method, computer device and computer storage medium

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20190731

Address after: 100083 No. 40, Haidian District, Beijing, Xueyuan Road

Applicant after: China information and Communication Research Institute

Address before: 100095 Building 21 Gaolizhang Road, Cuihu Science Park, Zhongguancun, Haidian District, Beijing

Applicant before: Beijing Taier infa network technology limited liability company

GR01 Patent grant
GR01 Patent grant