CN112583930B - Data forwarding synchronization method, system and device for multi-independent system interaction - Google Patents

Data forwarding synchronization method, system and device for multi-independent system interaction Download PDF

Info

Publication number
CN112583930B
CN112583930B CN202011556273.6A CN202011556273A CN112583930B CN 112583930 B CN112583930 B CN 112583930B CN 202011556273 A CN202011556273 A CN 202011556273A CN 112583930 B CN112583930 B CN 112583930B
Authority
CN
China
Prior art keywords
response
request
data
identifier
unique identifier
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
CN202011556273.6A
Other languages
Chinese (zh)
Other versions
CN112583930A (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.)
Sichuan Andi Technology Industrial Co Ltd
Original Assignee
Sichuan Andi Technology Industrial Co 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 Sichuan Andi Technology Industrial Co Ltd filed Critical Sichuan Andi Technology Industrial Co Ltd
Priority to CN202011556273.6A priority Critical patent/CN112583930B/en
Publication of CN112583930A publication Critical patent/CN112583930A/en
Application granted granted Critical
Publication of CN112583930B publication Critical patent/CN112583930B/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/14Session management
    • H04L67/141Setup of application sessions
    • 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
    • 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

Abstract

A data forwarding synchronization method, system and device for multi-independent system interaction, the method includes steps: blocking according to a request initiated by the system A; creating a unique identifier and a data updating identifier; during creation, setting a data updating identifier as false as default; establishing association between the unique identifier and the response object; when the response object is established, the response object is defaulted to be a null object; initiating a request to system B with the unique identifier; if the request is overtime, finding a response object according to the unique identifier, and changing the data updating identifier into true; if the time is not exceeded and the response of the system B is obtained, finding a response object according to the unique identifier, updating the response object to be the system B, and changing the data updating identifier to true; when a response object identified as true for the data update is detected, and a response is made to system A. By using the thread-safe object storage and positioning response objects, data forwarding and synchronous response between multiple independent systems or between distributed systems are realized.

Description

Data forwarding synchronization method, system and device for multi-independent system interaction
Technical Field
The present invention relates to data interaction in a multi-party system, and more particularly, to a method, system and apparatus for data forwarding synchronization in a multi-independent system interaction.
Background
As more and more information systems are used by each unit, there is a barrier to data exchange between these independent systems used by each unit, but there are many times that data exchange is required between the independent systems, and there is no effective means for solving this problem. Therefore, a method is needed to implement the forwarding and synchronization of two-way or multi-way data between these independent systems.
Disclosure of Invention
The present invention mainly addresses the above-mentioned deficiencies and drawbacks of the related art and provides a method, system and apparatus for data forwarding synchronization for multi-independent system interaction, where data forwarding and synchronization between multiple independent systems are responsible for forwarding and synchronizing data, and data forwarding and synchronization response between multiple independent systems or between distributed systems are implemented by using thread-safe object storage and positioning response objects.
In order to achieve the above object, the present invention employs the following techniques:
a data forwarding synchronization method for multi-independent system interaction comprises the following steps:
blocking according to a request initiated by the system A;
creating a unique identifier and a data updating identifier; during creation, setting a data updating identifier as false as default;
establishing association between the unique identifier and the response object; when the response object is established, the response object is defaulted to be a null object;
initiating a request to system B with the unique identifier;
if the request is overtime, finding a response object according to the unique identifier, and changing the data updating identifier into true;
if the time is not exceeded and the response of the system B is obtained, finding a response object according to the unique identifier, updating the response object to be the system B, and changing the data updating identifier to true;
when a response object identified as true for the data update is detected, and a response is made to system A.
Further, the request initiated by the system a is a request initiated by the forward API, the request to the system B is a request initiated by the forward API, the response of the system B is a response initiated by the return API, and the response to the system a is a response initiated by the return API.
A data forwarding synchronization system for multi-independent system interaction is arranged between the multi-independent systems as an intermediate layer;
the data forwarding synchronization system is used for carrying out system blocking according to a request initiated by the system A;
and is used for creating a unique identifier and a data update identifier; during creation, setting a data updating identifier as false as default;
and for establishing an association of the unique identifier and the responsive object; when the response object is established, the response object is defaulted to be a null object;
and is used to initiate a request to system B with the unique identifier:
if the request is overtime, finding a response object according to the unique identifier, and changing the data updating identifier into true;
if the time is not exceeded and the response of the system B is obtained, finding a response object according to the unique identifier, updating the response object to be the system B, and changing the data updating identifier to true;
and is used to respond to system a upon detecting a response object identified as true by the data update.
A data forwarding synchronization apparatus for multiple independent system interaction, comprising:
the blocking module is used for blocking according to a request initiated by the system A;
the identification module is used for creating a unique identification and a data updating identification; during creation, setting a default of a data updating identifier as false;
the association module is used for establishing the association between the unique identifier and the response object; when the response object is established, the response object defaults to be an empty object;
the request module is used for initiating a request to the system B by the unique identifier;
the first updating module is used for finding a response object according to the unique identifier when the request is overtime, and changing the data updating identifier into true;
the second updating module is used for acquiring the response of the system B when the request is not overtime, finding a response object according to the unique identifier, updating the response object to be the system B, and changing the data updating identifier to true;
and the response module is used for responding to the system A when the response object identified as true by the data update is detected.
An electronic device, comprising: at least one processor and memory; wherein the memory stores computer execution instructions; execution of the computer-executable instructions stored in the memory at the at least one processor causes the at least one processor to perform the data forwarding synchronization method for multiple independent system interactions described above.
A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, controls an apparatus in which the storage medium is located to carry out the method for data forwarding synchronization for multiple independent system interactions as described above.
The invention has the beneficial effects that: the system is characterized in that data is forwarded and synchronized among a plurality of independent systems, and data forwarding and synchronous response among the independent systems or among distributed systems are realized by using an object storage and positioning response object with thread safety.
Drawings
The drawings described herein are for illustrative purposes only of selected embodiments and not all possible implementations, and are not intended to limit the scope of the present disclosure.
Fig. 1 is a flowchart of a data forwarding synchronization method according to an embodiment of the present application.
Fig. 2 is a diagram of an interaction relationship between a data forwarding synchronization system and multiple systems according to an embodiment of the present application.
Fig. 3 is a block diagram of a data forwarding synchronization apparatus according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the following detailed description of the embodiments of the present invention is provided with reference to the accompanying drawings, but the described embodiments of the present invention are a part of the embodiments of the present invention, not all of the embodiments of the present invention.
The data processing steps provided by the invention are as follows:
step 1, a system A initiates a request.
And 2, blocking the system and continuing to the next step.
And 2, creating a unique identifier Seq _ Number and a data updating identifier Flag (default false) by the system.
And 3, establishing association between the Seq _ Number and a response object (empty object).
And 4, the system initiates a request to the system B with the Seq _ Number.
And step 41, requesting overtime, finding a response object according to the Seq _ Number, and directly modifying Flag to true.
And step 42, acquiring the response of the system B, finding and updating the response object according to the Seq _ Number, and modifying the Flag to true.
And 5, detecting a response object with Flag being true by the system, and responding to the system A.
Example one
In this embodiment, as shown in fig. 1, a data forwarding synchronization method for multiple independent system interactions includes the following steps:
blocking according to a request initiated by the system A;
creating a unique identifier Seq _ Number and a data update identifier Flag; during creation, setting a data updating mark Flag as false as default;
establishing the association between the unique identifier Seq _ Number and the response object; when the response object is established, the response object is defaulted to be a null object;
initiating a request for a system B by using the on-band unique identifier Seq _ Number;
if the request is overtime, finding a response object according to the unique identifier Seq _ Number, and changing the data updating identifier Flag into true;
if the time is not exceeded and the response of the system B is obtained, finding a response object according to the unique identifier Seq _ Number, updating the response object to be the system B, and changing the data updating identifier Flag to true;
and when detecting the response object with the data update identification Flag being true, responding to the system A.
Specifically, the request initiated by the system a is a request initiated by the forward API, the request to the system B is a request initiated by the forward API, the response of the system B is a response initiated by the return API, and the response to the system a is a response initiated by the return API.
Example two
A data forwarding synchronization system for multi-independent system interaction is arranged between the multi-independent systems as an intermediate layer, as shown in FIG. 2.
The data forwarding synchronization system executes the following procedure as shown in fig. 1:
the data forwarding synchronization system performs system blocking according to a request initiated by the system A. The request initiated by system a is a request initiated through the forward API.
The data forwarding synchronization system creates a unique identifier Seq _ Number and a data updating identifier Flag; when creating, the data update Flag is set to false as a default.
The data forwarding synchronization system establishes the association between the unique identifier Seq _ Number and the response object; when established, the responding object defaults to an empty object.
The unique identifier Seq _ Number on the data forwarding synchronization system initiates a request to the system B through a forward API:
if the request is overtime, the data forwarding synchronization system finds a response object according to the unique identifier Seq _ Number, and changes the data updating identifier Flag into true;
if the time is not out and the response sent by the system B through the returned API is obtained, the data forwarding synchronization system finds the response object according to the unique identifier Seq _ Number, updates the response object to the system B and changes the data updating identifier Flag to true.
When detecting the response object with the data update identification Flag being true, the data forwarding synchronization system initiates a response to the system a through the return API.
EXAMPLE III
The present embodiment provides a data forwarding synchronization apparatus for multiple independent system interaction, as shown in fig. 3, including: the device comprises a blocking module, an identification module, a correlation module, a request module, a first updating module and a second updating module.
The blocking module blocks the system according to a request initiated by the system A. The request initiated by system a is a request initiated through the forward API.
The identification module creates a unique identification Seq _ Number and a data updating identification Flag; when creating, the data update Flag is set to false as a default.
The association module establishes the association between the unique identifier Seq _ Number and the response object; when established, the responding object defaults to an empty object.
The request module with the unique identifier Seq _ Number initiates a request to the system B through the forward API:
when the request is overtime, the first updating module finds a response object according to the unique identifier Seq _ Number, and changes the data updating identifier Flag into true; (ii) a
And if the request is not over, the second updating module obtains a response sent by the system B through a returned API, finds a response object according to the unique identifier Seq _ Number, updates the response object to the system B, and changes the data updating identifier Flag to true.
And when detecting the response object with the data update identification Flag being true, the response module initiates a response to the system A through the return API.
Example four
This example provides an electronic device, including: at least one processor and memory; wherein the memory stores computer execution instructions; the execution of the computer-executable instructions stored in the memory on the at least one processor causes the at least one processor to perform the data forwarding synchronization method for multiple independent system interactions of embodiment one.
EXAMPLE five
The present example provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the apparatus in the storage medium is controlled to execute the data forwarding synchronization method for multiple independent system interaction according to the first embodiment.
The above is only a preferred embodiment of the present invention and is not intended to limit the present invention, and it is apparent that those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (7)

1. A data forwarding synchronization method for multi-independent system interaction is characterized by comprising the following steps:
blocking according to a request initiated by the system A;
creating a unique identifier and a data updating identifier; during creation, setting a default of a data updating identifier as false;
establishing association between the unique identifier and the response object; when the response object is established, the response object is defaulted to be a null object;
initiating a request to system B with the unique identifier;
if the request is overtime, finding a response object according to the unique identifier, and changing the data updating identifier into true;
if the time is not exceeded and the response of the system B is obtained, finding a response object according to the unique identification, updating the response object to be the system B, and changing the data updating identification to true;
when a response object identified as true for the data update is detected, and a response is made to system A.
2. The data forwarding synchronization method for multiple independent system interactions according to claim 1, wherein the request initiated by system a is a request initiated through a forward API, the request to system B is a request initiated through a forward API, the response of system B is a response initiated through a return API, and the response to system a is a response initiated through a return API.
3. A data forwarding synchronization system for multi-independent system interaction is characterized in that the data forwarding synchronization system is arranged between the multi-independent systems as an intermediate layer;
the data forwarding synchronization system is used for carrying out system blocking according to a request initiated by the system A;
and is used for creating a unique identifier and a data update identifier; during creation, setting a default of a data updating identifier as false;
and for establishing an association of the unique identifier and the responsive object; when the response object is established, the response object is defaulted to be a null object;
and is used to initiate a request to system B with the unique identifier:
if the request is overtime, finding a response object according to the unique identifier, and changing the data updating identifier into true;
if the time is not exceeded and the response of the system B is obtained, finding a response object according to the unique identifier, updating the response object to be the system B, and changing the data updating identifier to true;
and is used to respond to system a when a response object identified as true for the data update is detected.
4. The data forwarding synchronization system for multiple independent system interactions according to claim 3, wherein the request initiated by system A is a request initiated through a forward API, the request to system B is a request initiated through a forward API, the response by system B is a response initiated through a return API, and the response to system A is a response initiated through a return API.
5. A data forwarding synchronization apparatus for multiple independent system interactions, comprising:
the blocking module is used for blocking according to a request initiated by the system A;
the identification module is used for creating a unique identification and a data updating identification; during creation, setting a data updating identifier as false as default;
the association module is used for establishing the association between the unique identifier and the response object; when the response object is established, the response object is defaulted to be a null object;
the request module is used for initiating a request to the system B with the unique identifier;
the first updating module is used for finding a response object according to the unique identifier when the request is overtime, and changing the data updating identifier into true;
the second updating module is used for acquiring the response of the system B when the request is not overtime, finding a response object according to the unique identifier, updating the response object to be the system B, and changing the data updating identifier to true;
and the response module is used for responding to the system A when the response object identified as true by the data update is detected.
6. An electronic device, comprising: at least one processor and memory; wherein the memory stores computer-executable instructions; computer-executable instructions stored in the memory for execution on the at least one processor cause the at least one processor to perform the method for data forwarding synchronization for multiple independent system interactions of claim 1 or 2.
7. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, controls an apparatus in which the storage medium is located to perform the data forwarding synchronization method for multiple independent system interactions according to claim 1 or 2.
CN202011556273.6A 2020-12-25 2020-12-25 Data forwarding synchronization method, system and device for multi-independent system interaction Active CN112583930B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011556273.6A CN112583930B (en) 2020-12-25 2020-12-25 Data forwarding synchronization method, system and device for multi-independent system interaction

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011556273.6A CN112583930B (en) 2020-12-25 2020-12-25 Data forwarding synchronization method, system and device for multi-independent system interaction

Publications (2)

Publication Number Publication Date
CN112583930A CN112583930A (en) 2021-03-30
CN112583930B true CN112583930B (en) 2023-04-18

Family

ID=75140590

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011556273.6A Active CN112583930B (en) 2020-12-25 2020-12-25 Data forwarding synchronization method, system and device for multi-independent system interaction

Country Status (1)

Country Link
CN (1) CN112583930B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102404404A (en) * 2011-09-07 2012-04-04 航天科工仿真技术有限责任公司 Distributed WEB application and remote equipment message communication method
CN104283966A (en) * 2014-10-22 2015-01-14 浪潮(北京)电子信息产业有限公司 Data distribution algorithm and device of cloud storage system
CN108140031A (en) * 2015-10-02 2018-06-08 谷歌有限责任公司 Equity can synchronize storage system

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101655806B (en) * 2009-09-25 2012-05-23 马丰文 Interaction method of software system build-in component data
US9582561B2 (en) * 2013-07-16 2017-02-28 Sap Se Size-based data synchronization
US10057217B2 (en) * 2014-07-15 2018-08-21 Sap Se System and method to secure sensitive content in a URI
CN109510846B (en) * 2017-09-14 2020-11-03 北京金山云网络技术有限公司 API calling system, method and device, electronic equipment and storage medium
CN108512903B (en) * 2018-02-27 2021-04-23 深圳乐信软件技术有限公司 Abnormal information processing method and device, storage medium and API gateway
CN109063511A (en) * 2018-08-16 2018-12-21 深圳云安宝科技有限公司 Data access control method, device, proxy server and medium based on Web API
CN110765610B (en) * 2019-10-21 2023-11-24 中广核工程有限公司 PDM integration method, PDM integration device, computer equipment and storage medium
CN111666578B (en) * 2020-06-08 2023-06-30 北京百度网讯科技有限公司 Data management method, device, electronic equipment and computer readable storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102404404A (en) * 2011-09-07 2012-04-04 航天科工仿真技术有限责任公司 Distributed WEB application and remote equipment message communication method
CN104283966A (en) * 2014-10-22 2015-01-14 浪潮(北京)电子信息产业有限公司 Data distribution algorithm and device of cloud storage system
CN108140031A (en) * 2015-10-02 2018-06-08 谷歌有限责任公司 Equity can synchronize storage system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Jing Du等.Zero latency: Real-time synchronization of BIM data in virtual reality for collaborative decision-making.《Automation in Construction》.2018,全文. *
窦万峰.基于多版本协同设计系统的对象标识机制.《万方》.2004,全文. *

Also Published As

Publication number Publication date
CN112583930A (en) 2021-03-30

Similar Documents

Publication Publication Date Title
CN108449405B (en) Event reminding method and device, computer equipment and storage medium
CN106899648B (en) Data processing method and equipment
CN103475899B (en) Data distributing method and device
CN108108463B (en) Synchronous task processing method and device based on time slice scheduling
CN107071007B (en) Method, device and client for obtaining configuration resources
CN109361525B (en) Method, device, control terminal and medium for restarting distributed deployment of multiple services
US10946525B2 (en) Robot control system and robot control method
CN113656176B (en) Cloud equipment distribution method, device and system, electronic equipment, medium and product
CN104243208A (en) Port expansion and message processing method, device and network device
CN111930515B (en) Data acquisition and distribution method, device, server and storage medium
CN112583930B (en) Data forwarding synchronization method, system and device for multi-independent system interaction
US6477586B1 (en) Remote procedure calls in distributed systems
CN114884962A (en) Load balancing method and device and electronic equipment
CN110071968B (en) Block chain based message storage method and device
US20240036909A1 (en) Method, system, and device for modifying internal configuration of virtual machine
CN111352350A (en) Method and device for determining execution of smart home scene
US20150098417A1 (en) Creating, joining, finding, discovering, restoring and relocating process-based channels
WO2019000791A1 (en) Method and apparatus for remote process calling using asynchronous mode
US10725693B2 (en) Data processing method and apparatus
US6529962B1 (en) Preserving thread identity during remote calls
CN106028303B (en) Intelligent device discovery method and device
CN109272315B (en) Intelligent terminal, identification method and identification system for data interaction
CN112153093B (en) Cluster-based task scheduling method, device, equipment and readable storage medium
CN114006946A (en) Method, device and equipment for processing homogeneous resource request and storage medium
CN104407846B (en) Information processing method and device

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