A data intercommunication method and system based on instant messaging

By establishing an instant messaging system for federated nodes within the enterprise, the problem of low data exchange efficiency and high communication costs between enterprises is solved, data exchange across data centers is realized, data security and privatization requirements are ensured, and communication efficiency is improved. and reduce costs.

CN116032873BActive Publication Date: 2024-09-03GUANGDONG FENGYU INFORMATION TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310007340.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-01-04
Publication Date
2024-09-03
Estimated Expiration
2043-01-04

AI Technical Summary

Technical Problem

The existing instant messaging system has low efficiency and high communication cost when exchanging data between enterprises. It cannot guarantee data privacy and security, and cannot meet the data privatization needs of enterprises.

Method used

By establishing interconnected data centers and federated nodes within each enterprise, using the service interface of the federated node to store communication data as events and classifying them, perform data security processing and analysis, determine and merge conflicting communication data, and achieve cross-data center Instant messaging system data interoperability to ensure data security and integrity.

Benefits of technology

It improves the efficiency of instant communication between enterprises, reduces communication costs, meets the data privatization needs of enterprises, and ensures data privacy and security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116032873B
    Figure CN116032873B
Patent Text Reader

Abstract

The present invention proposes a data intercommunication method and system based on instant messaging, which relates to the technical field of communication data transmission. First, the federation nodes of the data centers within each enterprise are federated, and then the service interface of the federation node is called to store the communication data to be synchronized, and the communication data is described as events, the events are classified and stored, and then the data security processing of the unsynchronized events is performed, and the events are transmitted to other federation nodes that receive the events. After parsing and screening, the remaining events are stored, the communication data of the remaining events are restored, and the conflicts are merged by judging whether there are conflicts in the communication data. Finally, the communication data restored by other federation nodes are synchronized, and the communication data is delivered based on the needs of the participants of the communication data as the delivery conditions, so as to complete the data intercommunication of the data centers within each enterprise, improve the instant messaging efficiency of each enterprise, reduce the communication cost between enterprises, and ensure the privacy and security of data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of communication data transmission, and in particular to a data intercommunication method and system based on instant messaging. Background Art

[0002] Instant messaging is a real-time communication method that transmits data over the Internet. Enterprises can communicate with each other through instant messaging. As enterprises pay more attention to data privacy and security, more and more enterprises need to conduct internal private communication and private data storage. Therefore, when enterprises conduct instant messaging, all transmitted data needs to be stored locally.

[0003] At present, most companies will purchase an instant messaging system and build an internal data center to store relevant data to meet the requirements of internal communication and data storage security. Even if all companies use the same instant messaging system, each company builds an independent data center within the company. The internal data center data is not interoperable, and effective communication between companies cannot be carried out, resulting in communication barriers and increased communication costs. To solve the above problems, each company builds a message center based on the independently built data center. The data centers of each company achieve data interoperability and instant messaging across data centers through the centralized message center. However, in order to ensure the integrity of the message, the message center will store the interoperable data, which cannot meet the data privatization needs of the company and cause data privacy security issues. Existing patent documents disclose a data intercommunication method, including an interconnected service management platform and federated computing nodes. The service management platform is used to perform access management and multi-platform information synchronization on the federated computing nodes of each enterprise. The federated computing nodes are used for data publishing, data subscription and data calculation. Through the information synchronization mechanism with the service management platform, information and transaction synchronization within and between systems is achieved. However, each data intercommunication between enterprises must be completed through the service management platform to perform access management and information synchronization on the federated computing nodes of each enterprise, resulting in low efficiency of instant communication between enterprises, and the service management platform needs to be maintained regularly, resulting in high communication costs. Summary of the invention

[0004] In order to solve the problems of low efficiency, high communication cost and inability to guarantee data privacy and security in the current data intercommunication methods of instant messaging among enterprises, the present invention proposes a data intercommunication method based on instant messaging, which improves the instant messaging efficiency of each enterprise, reduces the communication cost between enterprises, guarantees data privacy and security, and meets the data privatization needs of enterprises.

[0005] In order to achieve the above technical effects, the technical solution of the present invention is as follows:

[0006] A data intercommunication method based on instant messaging, the method comprising the following steps:

[0007] S1. Establish data centers within each enterprise. Each data center within each enterprise is equipped with an interconnected instant messaging system and at least one federation node with a service interface. The federation nodes form a federation.

[0008] S2. The instant messaging system of any data center within an enterprise calls the service interface of the federated node according to the service interface protocol of the federated node, and stores the communication data required for synchronization during the communication process. The federated node describes the communication data as events for recording information through the service interface, classifies the events and stores them in the event database of the data center where the federated node is located;

[0009] S3. Establish connections between the federated node and other federated nodes in the same federation, perform data security processing on unsynchronized events, and transmit the events after data security processing to other federated nodes that receive the events;

[0010] S4. Parse the events received by other federated nodes, screen the parsed events, remove duplicate events, record the remaining events as valid events and store them in the event database of the data center where the other federated nodes are located;

[0011] S5. Based on the information recorded in the valid event, the event data restoration operation of other federated nodes is used to restore the communication data of the valid event, and it is determined whether there is a conflict in the communication data during the event data restoration operation. If so, the conflicting communication data is merged and step S6 is executed; otherwise, the conflicting communication data is not merged and step S6 is executed;

[0012] S6. Use the communication system where other federated nodes are located to synchronize the communication data restored by other federated nodes, and determine whether the communication data restored by other federated nodes is synchronized successfully. If so, synchronize and update the communication data restored by other federated nodes, and deliver the communication data based on the needs of the participants of the communication data, so as to complete the data communication between the data centers within each enterprise; otherwise, continue to determine whether the communication system where other federated nodes are located has successfully synchronized the communication data restored by other federated nodes.

[0013] In this technical solution, first, the federation nodes of the data centers within each enterprise form a federation. The federation and the federation nodes are in a subordinate relationship, which can meet the flexible and changing characteristics of the cooperation relationship between enterprises. Then, the service interface of the federation node is called to store the communication data that needs to be synchronized during the communication process, and the communication data is described as events through the service interface. The events are classified and stored in the event database of the data center where the federation node is located. Then, data security processing is performed on the unsynchronized events, and the events are transmitted from the federation node that sends the events to other federation nodes that receive the events. The events received by other federation nodes are parsed and screened, and the remaining events are recorded as valid events and stored in the event database, which plays a role in localizing the event data and ensures the security of the data. Then, according to the valid The information recorded by the event is restored by the event restoration data operation of other federal nodes to restore the communication data of the valid event, and by judging whether there is a conflict in the communication data, the conflict is selected to merge, so as to facilitate the recording of all actions of the communication data change, so that the event can be traced, and the integrity and traceability of the communication data are ensured; finally, the communication system where other federal nodes are located is used to synchronize the communication data restored by other federal nodes, and the communication data is delivered based on the needs of the participants of the communication data, so as to complete the data intercommunication between data centers within each enterprise, realize the data intercommunication between instant messaging systems across data centers between enterprises, break the communication barriers brought by cross-data centers, improve the efficiency of instant messaging of each enterprise, reduce the communication costs between enterprises, ensure data privacy security, and meet the data privatization needs of enterprises.

[0014] Preferably, a federated node is subordinate to only one federation, and a federated node represents a middleware, which is based on a decentralized event tracing architecture, stores communication data locally, and has data reading and writing, asynchronous data replication, data deduplication and data merging functions.

[0015] Preferably, the communication data includes groups, messages and users; the events are defined by the middleware, including group creation and group member changes, and record the offset, logical clock, wall clock, business type and business data information when the event occurs; the federal node classifies the events according to the business type recorded in the event.

[0016] Preferably, in step S3, the federation node establishes a connection with other federation nodes in the same federation through a two-way authenticated connection.

[0017] Preferably, the specific operation of data security processing for unsynchronized events is: encrypting and serializing the unsynchronized events, and transmitting the encrypted and serialized events to other federated nodes that receive the events in an asynchronous transmission form.

[0018] Preferably, in step S4, the specific operation of parsing the events received by other federal nodes is: deserializing and decrypting the events received by other federal nodes; after the events are deserialized and decrypted, the deserialized and decrypted events are screened using the local logical clock and the logical clock of the event.

[0019] Preferably, in step S5, the specific method of the event restoration data operation is: playing back and restoring the communication data of the valid events in the order of the offsets when the events occurred.

[0020] Preferably, the logical clock of the event is used to determine whether there is a conflict in the communication data during the event restoration data operation process. If the two communication data during the event restoration data operation process occur at the same time, the logical clock identifies that there is a conflict in the communication data during the event restoration data operation process. Otherwise, the two communication data during the event restoration data operation process occur in sequence, and the logical clock identifies that there is no conflict in the communication data during the event restoration data operation process.

[0021] Preferably, in step S6, the communication systems where other federal nodes are located synchronize the communication data restored by other federal nodes in the order of event offsets through a push-pull method; if the communication systems where other federal nodes are located convert the communication data restored by other federal nodes into a reading format of the communication system for storage, then the communication systems where other federal nodes are located will successfully synchronize the communication data restored by other federal nodes; otherwise, the communication systems where other federal nodes are located will fail to synchronize the communication data restored by other federal nodes.

[0022] The present invention also proposes a data intercommunication system based on instant messaging, the system comprising:

[0023] A data center establishment module is used to establish a data center within each enterprise. Each data center within each enterprise is equipped with an interconnected instant messaging system and at least one federation node with a service interface. The federation nodes form a federation.

[0024] The event storage module is used for the instant messaging system of any data center within an enterprise. According to the service interface protocol of the federated node, the service interface of the federated node is called to store the communication data that needs to be synchronized during the communication process. The federated node describes the communication data as events for recording information through the service interface, classifies the events and stores them in the event database of the data center where the federated node is located.

[0025] A data security processing module is used to establish a connection between the federation node and other federation nodes in the same federation, perform data security processing on unsynchronized events, and transmit the events after data security processing to other federation nodes that receive the events;

[0026] The event parsing module is used to parse the events received by other federated nodes, screen the parsed events, remove duplicate events, record the remaining events as valid events and store them in the event database of the data center where other federated nodes are located;

[0027] The event restoration processing module is used to restore the communication data of the valid event using the event restoration data operation of other federated nodes according to the information recorded by the valid event, and to determine whether there is a conflict in the communication data during the event restoration data operation. If so, the conflicting communication data is merged and the communication data restored by other federated nodes is synchronized; otherwise, the conflicting communication data is not merged and the communication data restored by other federated nodes is synchronized;

[0028] The synchronization judgment module is used to synchronize the communication data restored by other federated nodes using the communication systems where other federated nodes are located, and judge whether the communication data restored by other federated nodes is synchronized successfully. If so, the communication data restored by other federated nodes is updated synchronously, and the communication data is delivered according to the needs of the participants of the communication data, so as to complete the data communication between the data centers within each enterprise; otherwise, continue to judge whether the communication systems where other federated nodes are located have successfully synchronized the communication data restored by other federated nodes.

[0029] Compared with the prior art, the technical solution of the present invention has the following beneficial effects:

[0030] The present invention proposes a data intercommunication method and system based on instant messaging. First, the federation nodes of the data centers within each enterprise form a federation. The federation and the federation nodes are in a subordinate relationship, which can meet the characteristics of flexible changes in the cooperation relationship between enterprises. Secondly, the communication data is described as events through the service interface, and the events are classified and stored in the event database of the data center where the federation nodes are located. Then, data security processing is performed on the unsynchronized events, and the events are transmitted from the federation node that sends the events to other federation nodes that receive the events. The events received by other federation nodes are parsed and screened, and the remaining events are stored in the event database, which plays a role in localizing the event data and ensures the security of the data. Then, according to the information recorded by the effective events, the event data is stored in the event database. The event restoration data operation of other federal nodes restores the communication data of valid events, and chooses to merge conflicts by judging whether there are conflicts in the communication data, so as to record all actions of communication data change, so that events can be traced, ensuring the integrity and traceability of communication data; finally, the communication system where other federal nodes are located is used to synchronize the communication data restored by other federal nodes, and the communication data is delivered based on the needs of the participants of the communication data, so as to complete the data intercommunication between data centers within each enterprise, realize the data intercommunication between instant messaging systems across data centers between enterprises, break the communication barriers brought by cross-data centers, improve the efficiency of instant messaging of each enterprise, reduce the communication costs between enterprises, ensure data privacy and security, and meet the data privatization needs of enterprises. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] Figure 1 A schematic diagram showing a flow chart of a data intercommunication method based on instant messaging proposed in an embodiment of the present invention;

[0032] Figure 2 A structural connection diagram of two data centers within an enterprise proposed in an embodiment of the present invention is shown;

[0033] Figure 3 It shows the structural connection diagram of three enterprise internal data centers proposed in the embodiment of the present invention;

[0034] Figure 4 A schematic diagram showing data transmission between two enterprise internal data centers proposed in an embodiment of the present invention;

[0035] Figure 5 A structural diagram of a data intercommunication system based on instant messaging proposed in an embodiment of the present invention. DETAILED DESCRIPTION

[0036] The drawings are for illustrative purposes only and should not be construed as limiting the present patent;

[0037] In order to better illustrate the present embodiment, some parts of the drawings may be omitted, enlarged or reduced, and do not represent actual sizes. The description of the directions of parts such as "upper" and "lower" does not limit the present patent;

[0038] It is understandable to those skilled in the art that some well-known contents may be omitted in the drawings;

[0039] The positional relationships described in the drawings are only for illustrative purposes and should not be construed as limiting the present patent.

[0040] The technical solution of the present invention is further described below in conjunction with the accompanying drawings and embodiments.

[0041] Example 1

[0042] like Figure 1 As shown, this embodiment proposes a data intercommunication method based on instant messaging, and the method includes the following steps:

[0043] S1. Establish data centers within each enterprise. Each data center within each enterprise is equipped with an interconnected instant messaging system and at least one federation node with a service interface. The federation nodes form a federation.

[0044] In step S1, federation is a logical concept, the purpose of which is to circumvent the Byzantine Generals Problem, which refers to how the nodes distributed in the network should reach a consensus in the absence of a trusted central node and a trusted channel; see Figure 1 and Figure 2 , a federation node is subordinate to only one federation, and a federation node represents a middleware. This step establishes the data center inside enterprise A and the data center inside enterprise B, namely, the data center of enterprise A and the data center of enterprise B. The data center of enterprise A and the data center of enterprise B are both equipped with an instant messaging system connected to each other and a federation node with a service interface. The middleware of the data center of enterprise A and the middleware of the data center of enterprise B constitute a federation. In actual applications, each data center inside an enterprise has at least one federation node with a service interface. Multiple federation nodes constitute multiple federations. Data isolation between different federations is described in detail in the following sections. Figure 3For example, the data center of enterprise A is equipped with an interconnected instant messaging system and two federation nodes with service interfaces, the data center of enterprise B and the data center of enterprise C are both equipped with an interconnected instant messaging system and a federation node with a service interface, one of the middlewares in the data center of enterprise A and the middleware in the data center of enterprise B form a federation a, and another middleware in the data center of enterprise A and the middleware in the data center of enterprise C form a federation b. The four middlewares form two federations, and the data between federation a and federation b are isolated; the middleware is based on a decentralized event tracing architecture, stores communication data locally, and has data reading and writing, asynchronous data replication, data deduplication and data merging functions.

[0045] S2. The instant messaging system of any data center within an enterprise calls the service interface of the federated node according to the service interface protocol of the federated node, and stores the communication data required for synchronization during the communication process. The federated node describes the communication data as events for recording information through the service interface, classifies the events and stores them in the event database of the data center where the federated node is located;

[0046] In step S2, see Figure 4 Taking the data center of enterprise A and the data center of enterprise B as examples, the instant messaging system of the data center of enterprise A calls the service interface of the federated node in the data center of enterprise A to store the communication data that needs to be synchronized during the communication process of the data center of enterprise A. The federated node in the data center of enterprise A describes the communication data as events that record information through the service interface, classifies the events and stores them in the event database of the data center of enterprise A; the communication data includes groups, messages and users; the events are defined by the middleware, including group creation and group member changes, and record the offset, logical clock, wall clock, business type and business data information when the event occurs; the federated node classifies the events according to the business type recorded by the event.

[0047] S3. Establish connections between the federated node and other federated nodes in the same federation, perform data security processing on unsynchronized events, and transmit the events after data security processing to other federated nodes that receive the events;

[0048] In step S3, see Figure 1 and Figure 4 Taking the data center of enterprise A and the data center of enterprise B as an example, the federation node of the data center of enterprise A establishes a connection with the federation node of the data center of enterprise B in the same federation through a two-way authentication mTLS connection.

[0049] S4. Parse the events received by other federated nodes, screen the parsed events, remove duplicate events, record the remaining events as valid events and store them in the event database of the data center where the other federated nodes are located;

[0050] In step S4, the other federated nodes refer to the federated nodes of the enterprise B data center.

[0051] S5. Based on the information recorded in the valid event, the event data restoration operation of other federated nodes is used to restore the communication data of the valid event, and it is determined whether there is a conflict in the communication data during the event data restoration operation. If so, the conflicting communication data is merged and step S6 is executed; otherwise, the conflicting communication data is not merged and step S6 is executed;

[0052] In step S5, if there is a conflict in the communication data during the event restoration data operation, the wall clock of the event merges the conflict through the last write wins LWW strategy. When the actual merge conflict occurs, it is not limited to the last write wins LWW strategy, and other strategies for merging conflicts are also adopted to ensure the final consistency of the communication data between federated nodes and the strong consistency within the federated nodes.

[0053] S6. Use the communication system where other federated nodes are located to synchronize the communication data restored by other federated nodes, and determine whether the communication data restored by other federated nodes is synchronized successfully. If so, synchronize and update the communication data restored by other federated nodes, and deliver the communication data based on the needs of the participants of the communication data, so as to complete the data communication between the data centers within each enterprise; otherwise, continue to determine whether the communication system where other federated nodes are located has successfully synchronized the communication data restored by other federated nodes.

[0054] In step S6, if the communication data is a group message, the participants of the communication data are the group members; if the communication data is a user single chat message, the participants of the communication data are the two users; after the communication data restored by other federated nodes is synchronized successfully, the offset of the local event message needs to be updated. If it fails, it will be retried according to the local offset.

[0055] A data intercommunication method based on instant messaging proposed in this embodiment realizes data intercommunication between instant messaging systems across data centers between enterprises, breaks down the communication barriers brought about by cross-data centers, improves the communication efficiency between cooperating enterprises, and reduces the hidden costs caused by inconvenient communication; the subordinate relationship between the federation and the federation node proposed in this embodiment can meet the characteristics of flexible changes in the cooperative relationship between enterprises; this embodiment adopts an event tracing method to record all actions of communication data changes, ensuring the integrity and traceability of communication data. At the same time, the middleware also provides node two-way authentication mTLS connection method connection, event conflict check and merge conflict functions, ensuring data security and reducing development costs; the middleware representing the federation node in this embodiment is a decentralized architecture. The middleware is deployed in the data center within each enterprise, and its communication data is stored locally. While solving the problem of data intercommunication between instant messaging systems across data centers, it can also meet the data privatization of the enterprise or the data privacy security regulations of the country or region where it is located.

[0056] Example 2

[0057] See also Figure 1 and Figure 4 In step S3, the federated node establishes a connection with other federated nodes in the same federation through a two-way authentication connection; the specific operation of data security processing for unsynchronized events is: encrypting and serializing the unsynchronized events, and transmitting the encrypted and serialized events to other federated nodes that receive the events in an asynchronous transmission form.

[0058] In step S4, the specific operation of parsing the events received by other federal nodes is: deserializing and decrypting the events received by other federal nodes; after the events are deserialized and decrypted, the deserialized and decrypted events are screened using the local logical clock and the logical clock of the event.

[0059] In step S5, the specific method of the event restoration data operation is: playing back and restoring the communication data of the valid events in the order of the offsets when the events occurred.

[0060] The logical clock of the event is used to determine whether there is a conflict in the communication data during the event restoration data operation process. If the two communication data during the event restoration data operation process occur at the same time, the logical clock identifies that there is a conflict in the communication data during the event restoration data operation process. Otherwise, the two communication data during the event restoration data operation process occur in sequence, and the logical clock identifies that there is no conflict in the communication data during the event restoration data operation process.

[0061] In step S6, the communication systems where other federal nodes are located synchronize the communication data restored by other federal nodes in the order of event offsets through a push-pull method; if the communication systems where other federal nodes are located convert the communication data restored by other federal nodes into a reading format of the communication system for storage, then the communication systems where other federal nodes are located will successfully synchronize the communication data restored by other federal nodes; otherwise, the communication systems where other federal nodes are located will fail to synchronize the communication data restored by other federal nodes.

[0062] Example 3

[0063] like Figure 5 As shown, this embodiment proposes a data intercommunication system based on instant messaging, and the system includes:

[0064] The data center establishment module 11 is used to establish a data center within each enterprise. The data center within each enterprise is equipped with an interconnected instant messaging system and at least one federation node with a service interface, and the federation nodes form a federation;

[0065] The event storage module 12 is used for the instant messaging system of the data center within any enterprise to call the service interface of the federated node according to the service interface protocol of the federated node, store the communication data required to be synchronized during the communication process, and the federated node describes the communication data as events for recording information through the service interface, classifies the events and stores them in the event database of the data center where the federated node is located;

[0066] The data security processing module 13 is used to establish a connection between the federation node and other federation nodes in the same federation, perform data security processing on unsynchronized events, and transmit the events after data security processing to other federation nodes receiving the events;

[0067] An event parsing module 14 is used to parse the events received by other federated nodes, screen the parsed events, remove duplicate events, record the remaining events as valid events and store them in the event database of the data center where the other federated nodes are located;

[0068] The event restoration processing module 15 is used to restore the communication data of the valid event by using the event restoration data operation of other federated nodes according to the information recorded by the valid event, and to determine whether the communication data in the event restoration data operation process conflicts. If so, the conflicting communication data is merged and the communication data restored by other federated nodes is synchronized; otherwise, the conflicting communication data is not merged and the communication data restored by other federated nodes is synchronized;

[0069] The synchronization judgment module 16 is used to synchronize the communication data restored by other federated nodes using the communication systems where other federated nodes are located, and judge whether the communication data restored by other federated nodes is synchronized successfully. If so, the communication data restored by other federated nodes is updated synchronously, and the communication data is delivered according to the needs of the participants of the communication data, so as to complete the data communication between the data centers within each enterprise; otherwise, it continues to judge whether the communication systems where other federated nodes are located have successfully synchronized the communication data restored by other federated nodes.

[0070] In this embodiment, first, the federation nodes of the data centers within each enterprise form a federation. The federation and the federation nodes are in a subordinate relationship, which can meet the flexible and changing characteristics of the cooperation relationship between enterprises. Then, the service interface of the federation node is called to store the communication data that needs to be synchronized during the communication process, and the communication data is described as events through the service interface. The events are classified and stored in the event database of the data center where the federation node is located. Then, data security processing is performed on the unsynchronized events, and the events are transmitted from the federation node that sends the events to other federation nodes that receive the events. The events received by other federation nodes are parsed and screened, and the remaining events are recorded as valid events and stored in the event database, which plays a role in localizing the event data and ensures the security of the data. Then, according to the valid The information recorded by the event is restored by the event restoration data operation of other federal nodes to restore the communication data of the valid event, and by judging whether there is a conflict in the communication data, the conflict is selected to merge, so as to facilitate the recording of all actions of the communication data change, so that the event can be traced, and the integrity and traceability of the communication data are ensured; finally, the communication system where other federal nodes are located is used to synchronize the communication data restored by other federal nodes, and the communication data is delivered based on the needs of the participants of the communication data, so as to complete the data intercommunication between data centers within each enterprise, realize the data intercommunication between instant messaging systems across data centers between enterprises, break the communication barriers brought by cross-data centers, improve the efficiency of instant messaging of each enterprise, reduce the communication costs between enterprises, ensure data privacy security, and meet the data privatization needs of enterprises.

[0071] Obviously, the above embodiments of the present invention are only examples for clearly illustrating the present invention, and are not intended to limit the embodiments of the present invention. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the embodiments here. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the claims of the present invention.

Claims

1. A data intercommunication method based on instant messaging, characterized in that: The method comprises the following steps: S1. Establish data centers within each enterprise. Each data center within each enterprise is equipped with an interconnected instant messaging system and at least one federation node with a service interface. The federation nodes form a federation. S2. The instant messaging system of any data center within an enterprise calls the service interface of the federated node according to the service interface protocol of the federated node, and stores the communication data required for synchronization during the communication process. The federated node describes the communication data as events for recording information through the service interface, classifies the events and stores them in the event database of the data center where the federated node is located; S3. Establish connections between the federated node and other federated nodes in the same federation, perform data security processing on unsynchronized events, and transmit the events after data security processing to other federated nodes that receive the events; S4. Parse the events received by other federated nodes, screen the parsed events, remove duplicate events, record the remaining events as valid events and store them in the event database of the data center where the other federated nodes are located; S5. Based on the information recorded in the valid event, the event restoration data operation of other federated nodes is used to restore the communication data of the valid event, and it is determined whether there is a conflict in the communication data during the event restoration data operation. If so, the conflicting communication data is merged and step S6 is executed; otherwise, the conflicting communication data is not merged and S6 is executed; wherein the specific method of the event restoration data operation is: replaying and restoring the communication data of the valid event in the order of the offset when the event occurs; S6. Use the communication system where other federated nodes are located to synchronize the communication data restored by other federated nodes, and determine whether the communication data restored by other federated nodes is synchronized successfully. If so, synchronize and update the communication data restored by other federated nodes, and deliver the communication data based on the needs of the participants of the communication data, so as to complete the data communication between the data centers within each enterprise; otherwise, continue to determine whether the communication system where other federated nodes are located has successfully synchronized the communication data restored by other federated nodes.

2. The data intercommunication method based on instant messaging according to claim 1, characterized in that: A federated node is subordinate to only one federation, and a federated node represents a middleware. The middleware is based on a decentralized event tracing architecture, stores communication data locally, and has data reading and writing, asynchronous data replication, data deduplication and data merging functions.

3. The data intercommunication method based on instant messaging according to claim 2, characterized in that: In step S2, the communication data includes groups, messages and users; the events are defined by the middleware, including group creation and group member changes, and the offset, logical clock, wall clock, service type and service data information when the event occurs are recorded; The federation node classifies events according to the business type of the event record.

4. The data intercommunication method based on instant messaging according to claim 3, characterized in that: In step S3, the federation node establishes a connection with other federation nodes in the same federation through a two-way authentication connection.

5. The data intercommunication method based on instant messaging according to claim 4, characterized in that: The specific operation of data security processing for unsynchronized events is: encrypting and serializing the unsynchronized events, and transmitting the encrypted and serialized events to other federated nodes that receive the events in the form of asynchronous transmission.

6. The data intercommunication method based on instant messaging according to claim 5, characterized in that: In step S4, the specific operation of parsing the events received by other federal nodes is: deserializing and decrypting the events received by other federal nodes; after the events are deserialized and decrypted, the deserialized and decrypted events are screened using the local logical clock and the logical clock of the event.

7. The data intercommunication method of instant messaging according to claim 6, characterized in that: The logical clock of the event is used to determine whether there is a conflict in the communication data during the event restoration data operation process. If the two communication data during the event restoration data operation process occur at the same time, the logical clock identifies that there is a conflict in the communication data during the event restoration data operation process. Otherwise, the two communication data during the event restoration data operation process occur in sequence, and the logical clock identifies that there is no conflict in the communication data during the event restoration data operation process.

8. The data intercommunication method of instant messaging according to claim 7, characterized in that: In step S6, the communication systems where other federal nodes are located synchronize the communication data restored by other federal nodes in the order of event offsets through a push-pull method; if the communication systems where other federal nodes are located convert the communication data restored by other federal nodes into a reading format of the communication system for storage, then the communication systems where other federal nodes are located will successfully synchronize the communication data restored by other federal nodes; otherwise, the communication systems where other federal nodes are located will fail to synchronize the communication data restored by other federal nodes.

9. A data intercommunication system based on instant messaging, characterized in that: The system comprises: A data center establishment module is used to establish a data center within each enterprise. Each data center within each enterprise is equipped with an interconnected instant messaging system and at least one federation node with a service interface. The federation nodes form a federation. The event storage module is used for the instant messaging system of any data center within an enterprise. According to the service interface protocol of the federated node, the service interface of the federated node is called to store the communication data that needs to be synchronized during the communication process. The federated node describes the communication data as events for recording information through the service interface, classifies the events and stores them in the event database of the data center where the federated node is located. A data security processing module is used to establish a connection between the federation node and other federation nodes in the same federation, perform data security processing on unsynchronized events, and transmit the events after data security processing to other federation nodes that receive the events; The event parsing module is used to parse the events received by other federated nodes, screen the parsed events, remove duplicate events, record the remaining events as valid events and store them in the event database of the data center where other federated nodes are located; The event restoration processing module is used to restore the communication data of the effective event by using the event restoration data operation of other federated nodes according to the information recorded by the effective event, and to determine whether there is a conflict in the communication data during the event restoration data operation. If so, the conflicting communication data is merged and the communication data restored by other federated nodes is synchronized; otherwise, the conflicting communication data is not merged and the communication data restored by other federated nodes is synchronized; wherein the specific method of the event restoration data operation is: replaying and restoring the communication data of the effective event in the order of the offset when the event occurs; The synchronization judgment module is used to synchronize the communication data restored by other federated nodes using the communication systems where other federated nodes are located, and judge whether the communication data restored by other federated nodes is synchronized successfully. If so, the communication data restored by other federated nodes is updated synchronously, and the communication data is delivered according to the needs of the participants of the communication data, so as to complete the data communication between the data centers within each enterprise; otherwise, continue to judge whether the communication systems where other federated nodes are located have successfully synchronized the communication data restored by other federated nodes.