CN-116305180-B - Distributed twin data interaction method, system and storage medium
Abstract
The invention relates to a distributed twin data interaction method, a system and a storage medium, wherein the method is applied to the distributed twin data interaction system, the system comprises a front end, a twin data middleware and a rear end, the method comprises the following steps that S1, the front end sends a data request to the twin data middleware, S2, the twin data middleware resets an address in a received data request to be a standard address and performs address matching, if matching is successful, the step S3 is entered, otherwise, abnormal information is returned to the front end, S3, the twin data middleware performs authentication verification on the data request and then encrypts and forwards the data request to the rear end, the rear end returns corresponding data according to the data request, and S4, the twin data middleware performs abnormal judgment on the returned data and performs standardized processing and returns the data to the front end. The problems of complex data format, high butt joint difficulty, high investigation cost, low interaction safety and the like during front-end and rear-end twin data interaction are solved.
Inventors
- WU JUJING
- SHEN YIYAN
Assignees
- 厦门市盛迅信息技术股份有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20221229
Claims (7)
- 1. The distributed twin data interaction method is characterized by being based on a distributed twin data interaction system, wherein the twin data interaction system comprises a front end, a twin data middleware and a back end, and comprises the following steps of: s1, the front end sends a data request to the twin data middleware; s2, resetting the address in the received data request to a standard address by the twin data middleware and performing address matching, if the matching is successful, entering a step S3, otherwise, returning abnormal information to the front end; S3, the twin data middleware performs authentication verification on the data request, encrypts and forwards the data request to the rear end, and the rear end returns corresponding data according to the data request; s4, the twin data middleware carries out abnormality judgment on returned data and returns the data to the front end after standardized processing, and the step S2 comprises the following steps: S201, resetting an address in the front-end data request to be a port service address of the twin data middleware; s202, identifying a corresponding service system address according to the address in the data request and matching the service system routing address; the step S4 specifically includes: S401, carrying out abnormality judgment on the data returned by the rear end, if the data is abnormal, entering a step S402, otherwise, entering a step S403; s402, carrying out data exception grading processing according to data exceptions and feeding back to the front end of the data request; s403, decrypting the data returned by the back end and then forwarding the decrypted data to the front end of the data request.
- 2. The distributed twin data interaction method of claim 1, wherein the step of authenticating comprises: S301 judges whether identity authentication is needed according to the data request, if so, step 302 is entered, otherwise, the data is directly forwarded to the back end; s302 searches whether the corresponding identity information is cached, if yes, the step S303 is entered, otherwise, the step S304 is entered; S303, the corresponding identity information I is taken out and forwarded to the back end; S304, forwarding the data request to the back end, acquiring corresponding identity information and storing the corresponding identity information.
- 3. The distributed twin data interaction method as defined in claim 1, wherein step S3 further comprises: if the data request needs to call a plurality of back-end interfaces, combining the plurality of back-end interfaces into an interface call chain and forwarding the interface call chain to the back-end; And acquiring returned data of all the rear-end interfaces through an interface call chain, and uniformly returning the data to the front-end.
- 4. The distributed twin data interaction method according to claim 1, wherein the step S4 includes: And judging whether the data returned by the back end needs to be saved in a reserved file, if so, storing in the reserved file, and if not, directly returning to the front end.
- 5. The distributed twin data interaction method as defined in claim 1, wherein step S4 further comprises: and carrying out standardization processing on the data returned by the back end and returning the data to the front end.
- 6. A distributed twin data interaction system, which is characterized in that a distributed twin data interaction method as claimed in any one of claims 1-5 can be implemented, and the distributed twin data interaction system comprises a front end, a twin data middleware and a back end, wherein the twin data middleware comprises: the address routing distribution module is used for resetting the received front-end data request to be a standard address and performing address matching, and is particularly used for resetting the address in the front-end data request to be the port service address of the twin data middleware; The identity authority checking module is used for carrying out authentication check on the data request; the data encryption processing module is used for encrypting and forwarding the data request to the back end; The data standard processing module is used for carrying out standard processing on the data after the abnormality judgment and decryption and returning the data to the front end, and the twin data middleware comprises: the data cache module is used for storing corresponding identity information; The system comprises an exception information processing module, a data processing module and a data processing module, wherein the exception information processing module is used for performing exception judgment on the data request of the front end and corresponding data returned by the back end; the data log storage module is used for judging whether the data returned by the rear end needs to be saved and stored in a reserved file or not; And the content information decryption module is used for decrypting the data returned by the back end.
- 7. A distributed twin data interaction storage medium comprising a computer program stored on the storage medium which, when executed by a processor, performs a distributed twin data interaction method as claimed in any one of claims 1 to 5.
Description
Distributed twin data interaction method, system and storage medium Technical Field The invention relates to the field of distributed data interaction, in particular to a distributed twin data interaction method, a system and a storage medium. Background The data visualization/twinning product utilizes graphics, image processing, computer vision and user interface, modeling and presentation of stereo, surface, attribute and animation, and performs visual interpretation of the data to complete mapping of the real world in the virtual space. Compared with the traditional report, the method has innovations and step-crossing breakthroughs in the data expression rich levels (two-dimensional, three-dimensional and combined with space geographic information), modes (color, height and size) and enhanced visual effects. The data is better presented, the amateur state behind the data is mapped, and the target user is helped to know the state of the self business from the data layer. The data visualization/twinning product is a front-end application of data presentation and is a collection place of numerous data. The temporary data is characterized by diversification (such as sensing perception, production data, event alarm and the like), multidimensional (history, real-time and future), and diversified service systems (new and old systems, multiple data manufacturers and multiple language versions). The specific problems are as follows: 1. the project faces various data formats provided by various data manufacturers, has large docking difficulty, high communication cost and low development efficiency, and has high inquiry problem cost once problems occur in the operation and maintenance stage. 2. Under the condition of interface identity authentication, identity information is stored in a front-end system and is easily acquired by other people, so that unsafe factors are formed. 3. If the front-end system directly acquires data from a data manufacturer, the front-end application is directly affected due to data abnormality caused by the system problem of the data manufacturer, and a fault tolerance mechanism is lacked. 4. The front-end system directly acquires data from a data manufacturer, and lacks an access log file on a data access link. 5. After the data is obtained, the data needs to be filtered/cleaned/decrypted/combined, and if mature technical tools or schemes are needed to be utilized, the front-end application has difficulty in integrating the capabilities into the link. The invention aims at solving the problems existing in the prior art and designing a distributed twin data interaction method, a distributed twin data interaction system and a distributed twin data interaction storage medium. Disclosure of Invention Aiming at the problems in the prior art, the invention aims to provide a distributed twin data interaction method, a distributed twin data interaction system and a distributed twin data interaction storage medium, which can effectively solve the problems in the prior art. The invention provides a distributed twin data interaction method, which is based on a distributed twin data interaction system, wherein the twin data interaction system comprises a front end, a twin data middleware and a rear end, and the method comprises the following steps: s1, the front end sends a data request to the twin data middleware; s2, resetting the address in the received data request to a standard address by the twin data middleware and performing address matching, if the matching is successful, entering a step S3, otherwise, returning abnormal information to the front end; S3, the twin data middleware performs authentication verification on the data request, encrypts and forwards the data request to the rear end, and the rear end returns corresponding data according to the data request; S4, the twin data middleware performs abnormality judgment on the returned data, performs standardization processing and returns the data to the front end. The step S2 specifically includes: S201, resetting an address in the front-end data request to be a port service address of the twin data middleware; s202, corresponding service system addresses are identified according to the addresses in the data request, and service system routing address matching is carried out. The authentication verification step specifically comprises the following steps: S301 judges whether identity authentication is needed according to the data request, if so, step 302 is entered, otherwise, the data is directly forwarded to the back end; s302 searches whether the corresponding identity information is cached, if yes, the step S303 is entered, otherwise, the step S304 is entered; S303, the corresponding identity information I is taken out and forwarded to the back end; S304, forwarding the data request to the back end, acquiring corresponding identity information and storing the corresponding identity information. Wherein, the step S3 further includes: