CN111314416B - Data synchronization method, device, system, equipment and storage medium - Google Patents

Data synchronization method, device, system, equipment and storage medium Download PDF

Info

Publication number
CN111314416B
CN111314416B CN201911397158.6A CN201911397158A CN111314416B CN 111314416 B CN111314416 B CN 111314416B CN 201911397158 A CN201911397158 A CN 201911397158A CN 111314416 B CN111314416 B CN 111314416B
Authority
CN
China
Prior art keywords
data
synchronous
partition
synchronization
database
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
CN201911397158.6A
Other languages
Chinese (zh)
Other versions
CN111314416A (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.)
Guangzhou Baiguoyuan Network Technology Co Ltd
Original Assignee
Guangzhou Baiguoyuan Network Technology 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 Guangzhou Baiguoyuan Network Technology Co Ltd filed Critical Guangzhou Baiguoyuan Network Technology Co Ltd
Priority to CN201911397158.6A priority Critical patent/CN111314416B/en
Publication of CN111314416A publication Critical patent/CN111314416A/en
Application granted granted Critical
Publication of CN111314416B publication Critical patent/CN111314416B/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
    • 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/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/55Push-based network services

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention discloses a data synchronization method, a device, a system, equipment and a storage medium, wherein the data synchronization method comprises the following steps: the first partition WebSocket server receives a data synchronization request sent by a client of the first partition and stores synchronization data into a database; and generating a synchronous configuration request containing storage information and sending the synchronous configuration request to the etcd distributed storage cluster, sending the synchronous message containing the storage information to the second partition WebSocket server according to the generated synchronous message, acquiring synchronous data from the database by the second partition WebSocket server according to the storage information in the synchronous message, and pushing the synchronous data to the client side located in the second partition. Because the partition server is the WebSocket server, the synchronous data can be actively pushed to the client of each partition when the etcd distributed storage cluster subscribes to the synchronous message, the real-time performance of data synchronization is high, the client does not need to send a request, the processing pressure of the server is relieved, and the transmission resources are saved.

Description

Data synchronization method, device, system, equipment and storage medium
Technical Field
The embodiments of the present invention relate to the field of data transmission technologies, and in particular, to a data synchronization method, a data synchronization apparatus, a data synchronization system, a data synchronization device, and a storage medium.
Background
A single-page Web application (SPA) limits all Web activities to one Web page, and once the Web page is loaded, the SPA does not reload or jump the page due to the operation of the user, but dynamically transforms HTML content by using JavaScript, thereby providing smooth user experience.
In the distributed cluster, users access the corresponding partition cluster according to the user partitions, and when a user of a certain user partition modifies the general data in the front-end SPA used by the user, the modified data needs to be synchronized into the front-end SPAs used by users of other user partitions, namely, the data needs to be synchronized across the partition clusters.
The communication of Web application is based on HTTP protocol, a request is initiated by a browser, a server cannot actively push, and data is synchronized in the Web application in the prior art in a short round robin mode and a long round robin mode, wherein short polling refers to that the browser sends HTTP requests to the server at preset time intervals to obtain the latest data, and after the server receives the request initiated by the browser, the server does not directly respond, but firstly hangs the request, then judges whether the data of the server is updated or not, responds if the data of the server is updated, and returns the response after a certain time if the data of the server is not updated.
In summary, synchronizing data in a short round robin manner easily causes a large number of clients to continuously send HTTP requests to a server, which undoubtedly increases the server pressure and reduces the speed of processing requests by the server, and meanwhile, due to the interval time between request sending, the real-time performance of data synchronization is poor, and different partition servers cannot know that data synchronization is needed; and suspending requests by synchronizing data in a long round-robin manner leads to resource waste, each request follows an HTTP protocol, and an HTTP header is brought each time, which causes waste in transmission, and different partition servers also cannot know that data synchronization is required.
Disclosure of Invention
The embodiment of the invention provides a data synchronization method, a data synchronization device, a data synchronization system, equipment and a storage medium, and aims to solve the problems that in the prior art, data synchronization is poor in real-time performance and cannot be achieved across partitions.
In a first aspect, an embodiment of the present invention provides a data synchronization method, including:
the method comprises the steps that a first partition WebSocket server receives a data synchronization request sent by a synchronization client located in a first partition, wherein the data synchronization request carries synchronization data;
storing the synchronization data in a database;
acquiring storage information of the synchronous data in the database;
generating a synchronous configuration request containing the storage information;
and sending the synchronous configuration request to an etcd distributed storage cluster, wherein the etcd distributed storage cluster is used for generating a synchronous message containing the storage information according to the synchronous configuration request and sending the synchronous message to a second partition WebSocket server, and the second partition WebSocket server is used for acquiring the synchronous data from the database according to the storage information in the synchronous message and pushing the synchronous data to a client located in a second partition.
In a second aspect, an embodiment of the present invention provides a data synchronization method, including:
the method comprises the steps that an etcd distributed storage cluster receives a synchronous configuration request sent by a first partition WebSocket server, wherein the synchronous configuration request carries storage information;
generating a synchronization message containing the storage information;
and sending the synchronous message to a second partition WebSocket server, wherein the second partition WebSocket server is used for acquiring synchronous data from a database according to the storage information in the synchronous message and pushing the synchronous data to a client side located in a second partition.
In a third aspect, an embodiment of the present invention provides a data synchronization method, including:
the second partition WebSocket server receives a synchronous message sent by the etcd distributed storage cluster, wherein the synchronous message carries storage information;
reading synchronous data from a database according to the storage information;
and pushing the synchronous data to a client positioned in a second partition, wherein the client user of the second partition adopts the synchronous data to synchronize data on a local client.
In a fourth aspect, an embodiment of the present invention provides a data synchronization apparatus, including:
a data synchronization request receiving module, configured to receive a data synchronization request sent by a synchronization client in a first partition, where the data synchronization request carries synchronization data;
the synchronous data storage module is used for storing the synchronous data into a database;
the storage information acquisition module is used for acquiring the storage information of the synchronous data in the database;
a synchronous configuration request generating module, configured to generate a synchronous configuration request including the storage information;
and the synchronous configuration request sending module is used for sending the synchronous configuration request to an etcd distributed storage cluster, the etcd distributed storage cluster is used for generating a synchronous message containing the storage information according to the synchronous configuration request and sending the synchronous message to a second partition WebSocket server, and the second partition WebSocket server is used for acquiring the synchronous data from the database according to the storage information in the synchronous message and pushing the synchronous data to a client side located in a second partition.
In a fifth aspect, an embodiment of the present invention provides a data synchronization apparatus, including:
the device comprises a synchronous configuration request receiving module, a synchronous configuration request receiving module and a synchronous configuration request transmitting module, wherein the synchronous configuration request receiving module is used for receiving a synchronous configuration request transmitted by a first partition WebSocket server, and the synchronous configuration request carries storage information;
a synchronization message generation module for generating a synchronization message containing the storage information;
and the synchronous message sending module is used for sending the synchronous message to a second partition WebSocket server, and the second partition WebSocket server is used for acquiring synchronous data from a database according to the storage information in the synchronous message and pushing the synchronous data to a client side located in a second partition.
In a sixth aspect, an embodiment of the present invention provides a data synchronization apparatus, including:
a synchronous message receiving module, configured to receive a synchronous message sent by the etcd distributed storage cluster, where the synchronous message carries storage information;
the synchronous data acquisition module is used for reading synchronous data from a database according to the storage information;
and the synchronous data pushing module is used for pushing the synchronous data to the client side positioned in the second partition, and the client side user of the second partition adopts the synchronous data to synchronize the data on the local client side.
In a seventh aspect, an embodiment of the present invention provides a data synchronization system, including an etcd distributed storage cluster, a first partition WebSocket server and a second partition WebSocket server, where the first partition WebSocket server communicates with a client located in a first partition, and the second partition WebSocket server communicates with a client located in a second partition;
the first partition WebSocket server is configured to execute the data synchronization method provided by the first aspect of the embodiment of the present invention, the etcd distributed storage cluster is configured to execute the data synchronization method provided by the second aspect of the embodiment of the present invention, and the second partition WebSocket server is configured to execute the data synchronization method provided by the third aspect of the embodiment of the present invention.
In an eighth aspect, an embodiment of the present invention provides an apparatus, where the apparatus includes:
one or more processors;
a storage device to store one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors implement the data synchronization method according to any embodiment of the present invention
In a ninth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the data synchronization method according to any embodiment of the present invention.
In the embodiment of the invention, after receiving a data synchronization request sent by a synchronization client of a first partition and storing synchronization data carried in the data synchronization request in a database, a first partition WebSocket server can generate a synchronization configuration request containing storage information and send the synchronization configuration request to an etcd distributed storage cluster, so that the etcd distributed storage cluster can generate a synchronization message containing the storage information according to the synchronization configuration request and send the synchronization message to a second partition WebSocket server, the second partition WebSocket server is used for acquiring the synchronization data from the database according to the storage information in the synchronization message so as to push the synchronization data to a client located in the second partition, thereby realizing data synchronization of each partition in the distributed cluster, and the WebSocket server acquires the synchronization data from the database and actively pushes the synchronization data to the client of each partition needing synchronization when the etcd distributed storage cluster subscribes to the synchronization message, so that the real-time of data synchronization is high, the request is not required to be sent by the client, the request does not need to be hung up, and the transmission pressure of the server is reduced.
Drawings
Fig. 1 is a flowchart illustrating steps of a data synchronization method according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating steps of a data synchronization method according to a second embodiment of the present invention;
fig. 3 is a flowchart illustrating steps of a data synchronization method according to a third embodiment of the present invention;
fig. 4 is a flowchart illustrating steps of a data synchronization method according to a fourth embodiment of the present invention;
fig. 5 is a flowchart illustrating steps of a data synchronization method according to a fifth embodiment of the present invention;
FIG. 6 is a schematic diagram of the connections of an exemplary data synchronization system of the present invention;
FIG. 7 is a flow chart of the steps of a data synchronization method of the present invention;
fig. 8 is a block diagram of a data synchronization apparatus according to a sixth embodiment of the present invention;
fig. 9 is a block diagram of a data synchronization apparatus according to a seventh embodiment of the present invention;
fig. 10 is a block diagram of a data synchronization apparatus according to an eighth embodiment of the present invention;
fig. 11 is a block diagram of a data synchronization system according to a ninth embodiment of the present invention;
fig. 12 is a block diagram of a device according to a tenth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of steps of a data synchronization method provided in an embodiment of the present invention, where the embodiment of the present invention is applicable to a case of performing data synchronization on clients of multiple partitions, and the method may be executed by a data synchronization apparatus implemented in the present invention, where the data synchronization apparatus may be implemented by hardware or software and is integrated in a WebSocket server of a first partition, and specifically, as shown in fig. 1, the data synchronization method in the embodiment of the present invention may include the following steps:
s101, a first partition WebSocket server receives a data synchronization request sent by a synchronization client located in a first partition, wherein the data synchronization request carries synchronization data.
The embodiment of the invention can be applied to data synchronization of each client in a distributed cluster, the distributed cluster can be a group of computers which are loosely or tightly connected to work together, and each computer can be provided with various application clients.
In the distributed cluster, a closest processing System cluster is generally allocated to a user according to a geographical position of the user, for example, a user of each user partition is connected to the distributed cluster through a corresponding partition server, specifically, in the embodiment of the present invention, for a certain front-end SPA located in a first user partition, after the user located in the first user partition modifies general data in the front-end SPA, the general data needs to be synchronized to all front-end SPAs of the distributed cluster, specifically, when the user located in the first user partition modifies general data in the front-end SPA, the front-end SPA generates a data synchronization request including synchronous data, and sends the data synchronization request to a first partition WebSocket server, and the first partition WebSocket server receives the data synchronization request sent by the front-end SPA, where the WebSocket is a network transmission protocol, can perform full communication over a single TCP connection, and is located in an Open System connection (HTTP) model, and can not support WebSocket connection establishment and push a WebSocket connection after active data transmission protocol is established.
S102, storing the synchronous data into a database.
Specifically, the database may be a distributed storage database, or may be a local database of the first partition WebSocket server, and after receiving the data synchronization request, the first partition WebSocket server parses the data synchronization request to obtain synchronization data carried in the data synchronization request, and stores the synchronization data in a storage path specified by the database, where the storage path may be a storage path of the local database of the first partition WebSocket server, or may be a storage path of the distributed storage database on the network.
S103, obtaining the storage information of the synchronous data in the database.
Specifically, the first partition WebSocket server may record a storage path of the synchronization data, for example, a storage log may be generated each time the synchronization data is stored, and the storage path of the synchronization data in the database may be obtained through the storage log.
And S104, generating a synchronous configuration request containing the storage information.
In the embodiment of the invention, the first partition WebSocket server is connected with the etcd distributed storage cluster, the etcd distributed storage cluster can be a cluster or a system for providing distributed key value storage service, and the etcd distributed storage cluster can store key data for the whole distributed cluster, is mainly used for sharing configuration and service discovery and assists normal operation of the distributed cluster.
Specifically, in the embodiment of the present invention, the etcd distributed storage cluster is a cluster that can provide a synchronization message, that is, a storage service of a synchronization message required by each partition WebSocket server when data synchronization is provided, and after the first partition WebSocket server stores the synchronization data, the first partition WebSocket server may generate a synchronization configuration request including storage information of the synchronization data, version information of the synchronization data, or update time, so as to configure the synchronization message of the synchronization data in the etcd distributed storage cluster.
And S105, sending the synchronous configuration request to the etcd distributed storage cluster.
After the first partition WebSocket server stores the synchronous data and generates the synchronous configuration request, the synchronous configuration request is sent to the etcd distributed storage cluster, so that the etcd distributed storage cluster generates a synchronous message containing storage information of the synchronous data, version information of the synchronous data or updating time and other storage information according to the synchronous configuration request, after the etcd distributed storage cluster sends the synchronous message to the second partition WebSocket server, the second partition WebSocket server can obtain the synchronous data from the database according to the storage information in the synchronous message and push the synchronous data to a client located in the second partition, so that the client of the second partition updates local data of the client by adopting the synchronous data, and therefore the client data synchronization of the first partition and the second partition is achieved.
In the embodiment of the invention, the first partition WebSocket server can generate the synchronous configuration request containing the storage information and send the synchronous configuration request to the etcd distributed storage cluster after receiving the data synchronization request sent by the synchronous client of the first partition and storing the synchronous data carried in the data synchronization request into the database, so that the etcd distributed storage cluster can generate the synchronous message containing the storage information according to the synchronous configuration request and send the synchronous message to the second partition WebSocket server, and the second partition WebSocket server is used for acquiring the synchronous data from the database according to the storage information in the synchronous message so as to push the synchronous data to the client located in the second partition, thereby realizing the data synchronization of each partition in the distributed cluster.
Example two
Fig. 2 is a flowchart of steps of a data synchronization method according to a second embodiment of the present invention, where the second embodiment of the present invention is optimized based on the first embodiment, specifically, as shown in fig. 2, the data synchronization method according to the second embodiment of the present invention may include the following steps:
s201, a first partition WebSocket server receives a data synchronization request sent by a synchronization client located in a first partition, wherein the data synchronization request carries synchronization data.
S202, storing the synchronous data into a database.
S203, obtaining the storage information of the synchronous data in the database.
And S204, generating a synchronous configuration request containing the storage information.
S205, sending the synchronous configuration request to an etcd distributed storage cluster, wherein the etcd distributed storage cluster is used for generating a synchronous message containing the storage information according to the synchronous configuration request and sending the synchronous message to a second partition WebSocket server, and the second partition WebSocket server is used for acquiring the synchronous data from the database according to the storage information in the synchronous message and pushing the synchronous data to a client located in a second partition.
The above steps S201 to S205 can refer to the implementation one, and will not be described in detail here.
S206, pushing the synchronous data to the client to be synchronized in the first partition.
In the embodiment of the present invention, the same partition may include multiple clients, and when one of the clients modifies the common data and needs to perform data synchronization on all the clients in the distributed cluster, the client that modifies the common data is a synchronization client, and the other clients that need data synchronization are clients to be synchronized, where the clients to be synchronized include clients of the same partition and clients of other partitions.
The first partition WebSocket server receives the data synchronization request sent by the synchronization client located in the first partition, and after the synchronization data in the data synchronization request is stored, the synchronization data can be pushed to the client to be synchronized under the first partition, so that the client to be synchronized and the synchronization client perform data synchronization.
In the embodiment of the invention, the first partition WebSocket server generates the synchronous configuration request containing the storage information and sends the synchronous configuration request to the etcd distributed storage cluster, so that the etcd distributed storage cluster can generate the synchronous message containing the storage information according to the synchronous configuration request and send the synchronous message to the second partition WebSocket server, the second partition WebSocket server is used for acquiring the synchronous data from the database according to the storage information in the synchronous message and pushing the synchronous data to the client side located in the second partition, and therefore, the data synchronization of each partition in the distributed cluster is realized.
Furthermore, the first partition WebSocket server can push the synchronous data to the client to be synchronized in the first partition, so that data synchronization of the client in the same partition is realized, the client does not need to send a request, and the server does not need to suspend the request, thereby improving the real-time performance of data synchronization, reducing the processing pressure of the server, and saving transmission resources.
EXAMPLE III
Fig. 3 is a flowchart of steps of a data synchronization method provided in a third embodiment of the present invention, where the third embodiment of the present invention is applicable to a case of performing data synchronization on clients of multiple partitions, and the method may be executed by a data synchronization device implemented by the present invention, where the data synchronization device may be implemented by hardware or software and is integrated in an etcd distributed storage cluster, and specifically, as shown in fig. 3, the data synchronization method according to the third embodiment of the present invention may include the following steps:
s301, the etcd distributed storage cluster receives a synchronous configuration request sent by the first partition WebSocket server, and the synchronous configuration request carries storage information.
Specifically, in the embodiment of the present invention, the etcd distributed storage cluster provides a storage cluster of synchronization messages, that is, provides a storage service of the synchronization messages required by each partition WebSocket server during data synchronization.
In the embodiment of the invention, the etcd distributed storage cluster is in communication connection with each partition WebSocket server, when the first partition WebSocket server receiving the data synchronization request of the client stores the synchronization data in the data synchronization request, the first partition WebSocket server can generate the synchronization configuration request containing the storage information of the synchronization data, the version information of the synchronization data or the update time, and send the synchronization configuration request to the etcd distributed storage cluster, and the etcd distributed storage cluster can receive the synchronization configuration request.
S302, generating a synchronous message containing the storage information.
Specifically, a synchronization message including a storage path of the synchronization data in the database may be generated, and a synchronization message including version information, update time, and the like of the synchronization data may also be generated.
And S303, sending the synchronization message to a second partition WebSocket server, wherein the second partition WebSocket server is used for acquiring synchronization data from a database according to the storage information in the synchronization message and pushing the synchronization data to a client side located in a second partition.
In the embodiment of the invention, each partition WebSocket server can subscribe the synchronization message on the etcd distributed storage cluster, when the synchronization message on the etcd distributed storage cluster changes and updates, the etcd distributed storage cluster can send the synchronization message to each partition WebSocket server subscribed with the message, so that each partition WebSocket server obtains the synchronization data from the database according to the storage information in the synchronization message and pushes the synchronization data to the client located in the second partition, for example, after the etcd distributed storage cluster sends the synchronization message to each partition WebSocket server, each partition WebSocket server can obtain the storage path, version information, update time and other storage information of the synchronization data from the synchronization message, so that each partition WebSocket server can read the synchronization data from the database according to the storage path and other storage information and push the synchronization data to each client of the partition, thereby realizing the data synchronization of the clients of different partitions.
In the embodiment of the invention, the etcd distributed storage cluster generates the synchronous message containing the storage information after receiving the synchronous configuration request sent by the first partition WebSocket server, and sends the synchronous message to the second partition WebSocket server, so that the second partition WebSocket server obtains the synchronous data from the database according to the storage information in the synchronous message and pushes the synchronous data to the client positioned in the second partition, thereby realizing the data synchronization of the clients of the first partition and the second partition without sending the request by the client of the second partition or hanging up the request by the server, reducing the processing pressure of the server and saving the transmission resources.
Example four
Fig. 4 is a flowchart of steps of a data synchronization method according to a fourth embodiment of the present invention, where the embodiment of the present invention is optimized based on the third embodiment, specifically, as shown in fig. 4, the data synchronization method according to the embodiment of the present invention may include the following steps:
s401, an etcd distributed storage cluster receives a synchronous configuration request sent by a first partition WebSocket server, wherein the synchronous configuration request carries storage information;
s402, generating the synchronous message containing the storage information.
S403, determining a second partition WebSocket server subscribed with the data synchronization service from the partition WebSocket server cluster.
In the embodiment of the invention, each partition WebSocket server can subscribe the synchronous message on the etcd distributed storage cluster, when the synchronous message of certain data on the etcd distributed storage cluster changes, for example, the key value of certain data storage changes, the data is indicated to be updated, and the partition WebSocket server which subscribes the data can be determined from the partition WebSocket servers of the distributed storage cluster.
S404, sending the synchronization message to a second partition WebSocket server subscribed with the data synchronization service.
Specifically, a key-vlue storage server may be set for each piece of general data at the front end of the SPA, and when the general data are modified, a synchronization message is generated, and a value of vlue changes, and the synchronization message is triggered to be sent to the partition WebSocket server that subscribes to the value of vlue, so that each partition WebSocket server obtains synchronization data from the database according to the storage information in the synchronization message, and pushes the synchronization data to the client located in the second partition, thereby implementing data synchronization of clients of different partitions.
In the embodiment of the invention, the etcd distributed storage cluster generates the synchronous message containing the storage information after receiving the synchronous configuration request sent by the first partition WebSocket server, and sends the synchronous message to the second partition WebSocket server subscribed with the data synchronization service, so that the second partition WebSocket server obtains the synchronous data from the database according to the storage information in the synchronous message and pushes the synchronous data to the client positioned in the second partition, thereby realizing the data synchronization of the client of the first partition and the client of the second partition without sending the request by the client of the second partition or hanging the request by the server, reducing the processing pressure of the server and saving the transmission resources.
EXAMPLE five
Fig. 5 is a flowchart of steps of a data synchronization method according to a fifth embodiment of the present invention, where the data synchronization method according to the fifth embodiment of the present invention is applicable to a case of performing data synchronization on clients of multiple partitions, and the data synchronization method may be executed by a data synchronization device implemented by the present invention, where the data synchronization device may be implemented by hardware and integrated in a WebSocket server of a second partition, and specifically, as shown in fig. 5, the data synchronization method according to the fifth embodiment of the present invention may include the following steps:
s501, the second partition WebSocket server receives a synchronous message sent by the etcd distributed storage cluster, wherein the synchronous message carries storage information.
In the embodiment of the invention, the first partition WebSocket server receives the data synchronization request sent by the synchronization client of the first partition, stores the synchronization data carried in the data synchronization request in the database, can generate the synchronization configuration request containing the storage information, and sends the synchronization configuration request to the etcd distributed storage cluster, so that the etcd distributed storage cluster can generate the synchronization message containing the storage information according to the synchronization configuration request, and sends the synchronization message to the second partition WebSocket server, and the second partition WebSocket server can receive the synchronization message, wherein the synchronization message comprises the storage information of the synchronization data.
And S502, reading synchronous data from a database according to the storage information.
Specifically, the storage information implemented by the present invention may include a storage path of the synchronization data, and may also include version information, update time, and the like of the synchronization data, and after receiving the synchronization message, the second partition WebSocket server may analyze the synchronization message to obtain a storage path of the synchronization data in the database, so that the second partition WebSocket server may read data in the storage path of the database as the synchronization data.
S503, pushing the synchronous data to a client side located in a second partition, wherein the client side user of the second partition adopts the synchronous data to synchronize data on a local client side.
In the embodiment of the invention, the second partition WebSocket server can actively push data to the client, and after reading the synchronous data, the second partition WebSocket server can push the read synchronous data to each client under the second partition, so that each client under the second partition synchronizes local data, and the data synchronization of the clients of the first partition and the second partition is realized.
In the embodiment of the invention, after receiving the synchronization message sent by the etcd distributed storage cluster, the second partition WebSocket server reads the synchronization data from the database according to the storage information in the synchronization message and pushes the synchronization data to the client under the second partition, so that the data synchronization of the client of the second partition and the client of the first partition is realized, the client of the second partition is not required to send a request, and the server is not required to suspend the request, thereby reducing the processing pressure of the server and saving the transmission resource.
In order to make the embodiment of the present invention more clearly understood, the following describes the data synchronization method according to the embodiment of the present invention with reference to fig. 6 and 7 by way of example:
as shown in fig. 6, which is a schematic connection diagram of a client of a first partition, a WebSocket server of the first partition, an etcd distributed storage cluster, a WebSocket server of a second partition, and a client of the second partition in the embodiment of the present invention, the WebSocket server of the first partition and the WebSocket server of the second partition may be servers with the same function, that is, both the WebSocket server of the first partition and the WebSocket server of the second partition may receive a data synchronization request of a client under a partition connected to the WebSocket server of the first partition and the WebSocket server of the second partition, and may also push the synchronization data to the client connected to the WebSocket server of the second partition.
As shown in fig. 7, in this example, a client in the first partition modifies common data and needs to synchronize the common data to a client in the second partition and other clients in the first partition, when the client in the first partition requests for synchronizing data, the WebSocket server in the first partition stores the synchronizing data in the database and pushes the synchronizing data to other clients in the first partition, so that the other clients in the first partition synchronize local data according to the synchronizing data, and meanwhile, the WebSocket server in the first partition updates data configuration on the etcd and generates a synchronization message on the etcd, and the etcd notifies all second partition socket servers subscribed to data synchronization service of the synchronization message, and all second partition WebSocket servers acquire the synchronizing data stored in the database and push the synchronizing data to the clients in the second partition, and the clients in the second partition synchronize local data according to the synchronization data. In fig. 6 and fig. 7, the first partition and the second partition are taken as examples to illustrate the data synchronization method according to the embodiment of the present invention, and in practical applications, the data synchronization method may further include multiple partitions, and the embodiment of the present invention does not limit the number of the partitions.
In the above example, because the WebSocket server of the first partition receives the data synchronization request sent by the client of the first partition, and stores the synchronization data carried in the data synchronization request in the database, updates the data configuration on the etcd distributed storage cluster to generate the synchronization message, and sends the synchronization message to the WebSocket server of the second partition, the WebSocket server of the second partition acquires the synchronization data from the database according to the synchronization message, so as to push the synchronization data to the client located in the second partition, thereby implementing data synchronization of each partition in the distributed cluster, and because the partition server is the WebSocket server, the WebSocket server acquires the synchronization data from the database and actively pushes the synchronization data to the client of each partition needing synchronization when the etcd distributed storage cluster subscribes to the synchronization message, the real-time performance of data synchronization is high, and the client does not need to send a request, and does not need to hang up a request, thereby reducing the processing pressure of the server, and saving transmission resources.
EXAMPLE six
Fig. 8 is a block diagram of a data synchronization apparatus according to a sixth embodiment of the present invention, and as shown in fig. 8, the data synchronization apparatus according to the sixth embodiment of the present invention may specifically include the following modules:
a data synchronization request receiving module 801, configured to receive a data synchronization request sent by a synchronization client in a first partition, where the data synchronization request carries synchronization data;
a synchronous data storage module 802, configured to store the synchronous data in a database;
a storage information obtaining module 803, configured to obtain storage information of the synchronization data in the database;
a synchronous configuration request generating module 804, configured to generate a synchronous configuration request including the storage information;
a synchronous configuration request sending module 805, configured to send the synchronous configuration request to an etcd distributed storage cluster, where the etcd distributed storage cluster is configured to generate a synchronous message including the storage information according to the synchronous configuration request, and send the synchronous message to a second partition WebSocket server, and the second partition WebSocket server is configured to obtain the synchronous data from the database according to the storage information in the synchronous message, and push the synchronous data to a client located in a second partition.
Optionally, the method further comprises:
and the synchronous data pushing module is used for pushing the synchronous data to the client to be synchronized in the first partition.
Optionally, the synchronous data storage module 802 includes:
and the storage submodule is used for storing the synchronous data into a storage path appointed by the database.
Optionally, the storage information acquiring module 803 includes:
and the storage path acquisition sub-module is used for acquiring the storage path of the synchronous data in the database.
Optionally, the storage information includes a storage path of the synchronization data in the database, and further includes version information or an update time.
The data synchronization device provided by the embodiment of the invention can execute the data synchronization method provided by the first embodiment and the second embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
EXAMPLE seven
Fig. 9 is a block diagram of a data synchronization apparatus according to a seventh embodiment of the present invention, and as shown in fig. 9, the data synchronization apparatus according to the seventh embodiment of the present invention may specifically include the following modules:
a synchronous configuration request receiving module 901, configured to receive a synchronous configuration request sent by a first partition WebSocket server, where the synchronous configuration request carries storage information;
a synchronization message generating module 902, configured to generate a synchronization message that includes the storage information;
and the synchronization message sending module 903 is configured to send the synchronization message to a second partition WebSocket server, where the second partition WebSocket server is configured to obtain synchronization data from a database according to storage information in the synchronization message, and push the synchronization data to a client located in a second partition.
Optionally, the synchronization message sending module 903 includes:
the second partition WebSocket server determining submodule is used for determining a second partition WebSocket server subscribed with the data synchronization service from the partition WebSocket server cluster;
and the synchronous message sending submodule is used for sending the synchronous message to a second partition WebSocket server subscribed with the data synchronization service.
The data synchronization device provided by the embodiment of the invention can execute the data synchronization method provided by the third embodiment and the fourth embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
Example eight
Fig. 10 is a block diagram of a structure of a data synchronization apparatus according to an eighth embodiment of the present invention, and as shown in fig. 10, the data synchronization apparatus according to the eighth embodiment of the present invention may specifically include the following modules:
a synchronization message receiving module 1001, configured to receive a synchronization message sent by the etcd distributed storage cluster, where the synchronization message carries storage information;
a synchronous data obtaining module 1002, configured to read synchronous data from a database according to the storage information;
a synchronous data pushing module 1003, configured to push the synchronous data to a client located in a second partition, where a client user of the second partition uses the synchronous data to synchronize data on a local client.
Optionally, the storage information includes a storage path, and the synchronization data obtaining module 1002 includes:
and the synchronous data reading sub-module is used for reading the data in the storage path of the database as synchronous data.
The data synchronization device provided by the embodiment of the invention can execute the data synchronization method provided by the fifth embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
Example nine
Fig. 11 is a structural block diagram of a data synchronization system provided in the ninth embodiment of the present invention, and as shown in fig. 11, the data synchronization system according to the ninth embodiment of the present invention includes an etcd distributed storage cluster 1100, a first partition WebSocket server 1101 and a second partition WebSocket server 1102, where the first partition WebSocket server 1101 communicates with a client 1103 located in a first partition, and the second partition WebSocket server 1102 communicates with a client 1104 located in a second partition.
The first partition WebSocket server 1101 is configured to execute the data synchronization method described in the first embodiment and the second embodiment of the present invention, the etcd distributed storage cluster 1100 is configured to execute the data synchronization method described in the third embodiment and the fourth embodiment of the present invention, and the second partition WebSocket server 1102 is configured to execute the data synchronization method described in the fifth embodiment of the present invention.
The data synchronization system provided by the embodiment of the invention can execute the data synchronization method provided by the first embodiment to the fifth embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
EXAMPLE ten
Referring to fig. 12, a schematic diagram of the structure of an apparatus in one example of the invention is shown. As shown in fig. 12, the device may be one of the first partition WebSocket server, the etcd distributed storage cluster, and the second partition WebSocket server in the embodiment of the present invention, and the device specifically may include: a processor 1200, a memory 1201, a display screen 1202 with touch functionality, an input device 1203, an output device 1204, and a communication device 1205. The number of the processors 1200 in the device may be one or more, and one processor 1200 is taken as an example in fig. 12. The processor 1200, the memory 1201, the display 1202, the input device 1203, the output device 1204, and the communication device 1205 of the apparatus may be connected by a bus or other means, and fig. 12 illustrates an example of a connection by a bus.
The memory 1201 is used as a computer-readable storage medium, and can be used for storing a software program, a computer-executable program, and a module, such as a program instruction/module corresponding to the data synchronization method according to embodiments one to two (for example, the data synchronization request receiving module 801, the synchronization data storage module 802, the storage information obtaining module 803, the synchronization configuration request generating module 804, and the synchronization configuration request sending module 805 in the data synchronization apparatus according to embodiment six) or a program instruction/module corresponding to the data synchronization method according to embodiments three to four (for example, the synchronization configuration request receiving module 901, the synchronization message generating module 902, and the synchronization message sending module 903 in the data synchronization apparatus according to embodiment seven), or a program instruction/module corresponding to the data synchronization method according to embodiment five (for example, the synchronization message receiving module 1001, the synchronization data obtaining module 1002, and the synchronization data pushing module 1003 in the data synchronization apparatus according to embodiment eight). The memory 1201 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating device, an application program required for at least one function; the storage data area may store data created according to use of the device, and the like. Further, the memory 1201 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the memory 1200 may further include memory located remotely from the processor 1200, which may be connected to devices through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The display screen 1202 is a display screen 1202 having a touch function, which may be a capacitive screen, an electromagnetic screen, or an infrared screen. Generally, the display screen 1202 is used for displaying data according to instructions of the processor 1200, and is also used for receiving touch operations applied to the display screen 1202 and sending corresponding signals to the processor 1200 or other devices. Optionally, when the display screen 1202 is an infrared screen, the display screen 1202 further includes an infrared touch frame, and the infrared touch frame is disposed around the display screen 1202, and may also be configured to receive an infrared signal and send the infrared signal to the processor 1200 or other devices.
The communication means 1205 for establishing a communication connection with other devices may be a wired communication means and/or a wireless communication means.
The input means 1203 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function controls of the device, and may also be a camera for acquiring images and a sound pickup device for acquiring audio data. The output device 1204 may include an audio device such as a speaker. The specific composition of the input device 1203 and the output device 1204 may be set according to actual conditions.
The processor 1200 executes various functional applications of the device and data processing by executing software programs, instructions, and modules stored in the memory 1201, that is, implements the above-described data synchronization method.
Specifically, in the embodiment, when the processor 1200 executes one or more programs stored in the memory 1201, the data synchronization method provided in the embodiment of the present invention is specifically implemented.
Embodiments of the present invention further provide a computer-readable storage medium, where instructions in the storage medium, when executed by a processor of a device, enable the device to perform the data synchronization method according to the foregoing method embodiments.
It should be noted that, as for the embodiments of the apparatus, the device, and the storage medium, since they are basically similar to the embodiments of the method, the description is relatively simple, and in relevant places, reference may be made to the partial description of the embodiments of the method.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention or portions thereof contributing to the prior art may be embodied in the form of a software product, which may be stored in a computer readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a robot, a personal computer, a server, or a network device, etc.) to execute the data synchronization method according to any embodiment of the present invention.
It should be noted that, in the data synchronization apparatus, each unit and each module included in the data synchronization apparatus are only divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be implemented; in addition, the specific names of the functional units are only for the convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by suitable instruction execution devices. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (14)

1. A method of data synchronization, comprising:
the method comprises the steps that a first partition WebSocket server receives a data synchronization request sent by a synchronization client located in a first partition, wherein the data synchronization request carries synchronization data;
storing the synchronization data in a database; the database is a distributed storage database or a local database of a first partitioned WebSocket server;
acquiring storage information of the synchronous data in the database;
generating a synchronous configuration request containing the storage information;
sending the synchronous configuration request to an etcd distributed storage cluster, wherein the etcd distributed storage cluster is used for generating a synchronous message containing the storage information according to the synchronous configuration request and sending the synchronous message to a second partition WebSocket server, and the second partition WebSocket server is used for acquiring the synchronous data from the database according to the storage information in the synchronous message and pushing the synchronous data to a client located in a second partition;
the method further comprises the following steps:
and pushing the synchronous data to a client to be synchronized positioned in the first partition, wherein the client to be synchronized is used for synchronizing local data according to the synchronous data.
2. The data synchronization method of claim 1, wherein the storing the synchronization data in a database comprises:
and storing the synchronous data into a storage path designated by a database.
3. The data synchronization method according to claim 2, wherein the obtaining of the storage information of the synchronization data in the database comprises:
and acquiring a storage path of the synchronous data in the database.
4. The data synchronization method according to any one of claims 1 to 3, wherein the storage information includes a storage path of the synchronization data in the database, and further includes version information or update time.
5. A method of data synchronization, comprising:
the method comprises the steps that an etcd distributed storage cluster receives a synchronous configuration request sent by a first partition WebSocket server, wherein the synchronous configuration request carries storage information of synchronous data stored in a database; the synchronous data are synchronous data carried in a data synchronization request sent by a synchronous client of the first partition to the WebSocket server of the first partition;
generating a synchronization message containing the storage information;
sending the synchronous message to a second partition WebSocket server, wherein the second partition WebSocket server is used for acquiring synchronous data from a database according to the storage information in the synchronous message and pushing the synchronous data to a client side located in a second partition;
the database is a distributed storage database or a local database of a first partitioned WebSocket server;
the method further comprises the following steps: and the synchronous data is pushed to a client to be synchronized positioned in the first partition, and the client to be synchronized is used for synchronizing local data according to the synchronous data.
6. The data synchronization method according to claim 5, wherein the sending the synchronization message to a second partition WebSocket server includes:
determining a second partition WebSocket server subscribed with the data synchronization service from the partition WebSocket server cluster;
and sending the synchronization message to a second partition WebSocket server subscribed with the data synchronization service.
7. A method of data synchronization, comprising:
a second partition WebSocket server receives a synchronous message sent by an etcd distributed storage cluster, wherein the synchronous message carries storage information; the storage information is storage information of synchronous data stored in a database, wherein the synchronous configuration request sent by the first partition wedSocket server received by the etcd distributed storage cluster carries the storage information; the synchronous data are synchronous data carried in a data synchronous request sent by a synchronous client of the first partition to the WebSocket server of the first partition;
reading synchronous data from a database according to the storage information;
pushing the synchronous data to a client located in a second partition, wherein a client user of the second partition adopts the synchronous data to synchronize data on a local client;
the database is a distributed storage database or a local database of a first partitioned WebSocket server;
the method further comprises the following steps: and the synchronous data is pushed to a client to be synchronized in the first partition, and the client to be synchronized is used for synchronizing local data according to the synchronous data.
8. The data synchronization method of claim 7, wherein the storage information comprises a storage path, and the reading of the synchronization data from the database according to the storage information comprises:
and reading data in the storage path of the database as synchronous data.
9. A data synchronization apparatus, comprising:
a data synchronization request receiving module, configured to receive a data synchronization request sent by a synchronization client in a first partition, where the data synchronization request carries synchronization data;
the synchronous data storage module is used for storing the synchronous data into a database;
the storage information acquisition module is used for acquiring the storage information of the synchronous data in the database;
a synchronous configuration request generating module, configured to generate a synchronous configuration request including the storage information;
a synchronous configuration request sending module, configured to send the synchronous configuration request to an etcd distributed storage cluster, where the etcd distributed storage cluster is configured to generate a synchronous message including the storage information according to the synchronous configuration request, and send the synchronous message to a second partition WebSocket server, and the second partition WebSocket server is configured to obtain the synchronous data from the database according to the storage information in the synchronous message, and push the synchronous data to a client located in a second partition;
the database is a distributed storage database or a local database of a first partition WebSocket server;
and the synchronous data pushing module is used for pushing the synchronous data to a client to be synchronized located in the first partition, and the client to be synchronized is used for synchronizing local data according to the synchronous data.
10. A data synchronization apparatus, comprising:
the system comprises a synchronous configuration request receiving module, a synchronous configuration request receiving module and a data processing module, wherein the synchronous configuration request receiving module is used for receiving a synchronous configuration request sent by a first partition WebSocket server, and the synchronous configuration request carries storage information of synchronous data stored in a database; the synchronous data are synchronous data carried in a data synchronous request sent by a synchronous client of the first partition to the WebSocket server of the first partition;
a synchronization message generation module for generating a synchronization message containing the storage information;
the synchronous message sending module is used for sending the synchronous message to a second partition WebSocket server, and the second partition WebSocket server is used for acquiring synchronous data from a database according to the storage information in the synchronous message and pushing the synchronous data to a client side located in a second partition;
the database is a distributed storage database or a local database of a first partitioned WebSocket server;
and the synchronous data is pushed to a client to be synchronized positioned in the first partition, and the client to be synchronized is used for synchronizing local data according to the synchronous data.
11. A data synchronization apparatus, comprising:
the synchronous message receiving module is used for receiving a synchronous message sent by the etcd distributed storage cluster, wherein the synchronous message carries storage information; the storage information is storage information which carries synchronous data and is stored in a database in a synchronous configuration request sent by a first partition WebSocket server and received by the etcd distributed storage cluster; the synchronous data are synchronous data carried in a data synchronization request sent by a synchronous client of the first partition to the WebSocket server of the first partition;
the synchronous data acquisition module is used for reading synchronous data from a database according to the storage information;
the synchronous data pushing module is used for pushing the synchronous data to a client side located in a second partition, and a client side user of the second partition adopts the synchronous data to synchronize data on a local client side;
the database is a distributed storage database or a local database of a first partition WebSocket server;
and the synchronous data is pushed to a client to be synchronized positioned in the first partition, and the client to be synchronized is used for synchronizing local data according to the synchronous data.
12. The data synchronization system is characterized by comprising an etcd distributed storage cluster, a first partition WebSocket server and a second partition WebSocket server, wherein the first partition WebSocket server and the second partition WebSocket server are in communication with the etcd distributed storage cluster;
the first partition WebSocket server is configured to execute the data synchronization method of any one of claims 1-4, the etcd distributed storage cluster is configured to execute the data synchronization method of any one of claims 5-6, and the second partition WebSocket server is configured to execute the data synchronization method of any one of claims 7-8.
13. An electronic device, characterized in that the device comprises:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the data synchronization method of any of claims 1-8.
14. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the data synchronization method according to any one of claims 1 to 8.
CN201911397158.6A 2019-12-30 2019-12-30 Data synchronization method, device, system, equipment and storage medium Active CN111314416B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911397158.6A CN111314416B (en) 2019-12-30 2019-12-30 Data synchronization method, device, system, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911397158.6A CN111314416B (en) 2019-12-30 2019-12-30 Data synchronization method, device, system, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111314416A CN111314416A (en) 2020-06-19
CN111314416B true CN111314416B (en) 2022-12-09

Family

ID=71146816

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911397158.6A Active CN111314416B (en) 2019-12-30 2019-12-30 Data synchronization method, device, system, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111314416B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111988186B (en) * 2020-09-02 2023-04-11 深圳壹账通智能科技有限公司 Configuration synchronization method and related device
CN112381317A (en) * 2020-11-26 2021-02-19 方是哲如管理咨询有限公司 Big data platform for tissue behavior analysis and result prediction
CN117370310B (en) * 2023-10-19 2024-05-28 中电云计算技术有限公司 Distributed file system cross-cluster data increment migration method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101764830A (en) * 2008-11-28 2010-06-30 新奥特(北京)视频技术有限公司 State synchronous method and system based on message subscribing manner
CN107370809A (en) * 2017-07-13 2017-11-21 广州市百果园信息技术有限公司 Method of data synchronization and data search system
CN107769881A (en) * 2017-10-10 2018-03-06 北京小米移动软件有限公司 Information synchronization method, apparatus and system, storage medium
CN109976952A (en) * 2019-04-09 2019-07-05 苏州浪潮智能科技有限公司 The method and apparatus of cross-domain backup in cloud computing system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101764830A (en) * 2008-11-28 2010-06-30 新奥特(北京)视频技术有限公司 State synchronous method and system based on message subscribing manner
CN107370809A (en) * 2017-07-13 2017-11-21 广州市百果园信息技术有限公司 Method of data synchronization and data search system
CN107769881A (en) * 2017-10-10 2018-03-06 北京小米移动软件有限公司 Information synchronization method, apparatus and system, storage medium
CN109976952A (en) * 2019-04-09 2019-07-05 苏州浪潮智能科技有限公司 The method and apparatus of cross-domain backup in cloud computing system

Also Published As

Publication number Publication date
CN111314416A (en) 2020-06-19

Similar Documents

Publication Publication Date Title
CN111314416B (en) Data synchronization method, device, system, equipment and storage medium
CN107645529B (en) Heartbeat packet sending method and device
US20130179558A1 (en) Server management using a baseboard management controller to establish a wireless network
CN111694674B (en) Message distribution processing method, device, equipment and storage medium
CN108965932B (en) Continuous wheat window display method and device
CN110120961B (en) Distributed service cluster and route synchronization method thereof
KR20150013860A (en) Clientless cloud computing
CN110765744A (en) Multi-person collaborative document editing method and system
CN109302437B (en) Method and device for redirecting website
CN109639782A (en) Message sends platform, method
CN109729115B (en) Method, device, proxy server and terminal equipment for realizing distributed computation
GB2518739A (en) Custom Correlation of a Distributed Business Transaction
CN103685496A (en) Transmission method and device of file data
CN111224832B (en) Method, control equipment, proxy server and system for capturing network data
CN110941665A (en) Data synchronization method, data synchronization device and data synchronization equipment between nodes
CN103780621B (en) A kind of remote table sharing method and system
CN109788251B (en) Video processing method, device and storage medium
CN112838935A (en) Electronic data exchange method and system
CN110798495B (en) Method and server for end-to-end message push in cluster architecture mode
CN113612825A (en) Internet of things message middleware server cluster expansion method and system
WO2021226781A1 (en) Firewall rule updating method and apparatus, server, and storage medium
CN113965628A (en) Message scheduling method, server and storage medium
CN111416851A (en) Method for session synchronization among multiple load balancers and load balancer
JP2023109707A (en) Video analysis system and data delivery method
CN115022106B (en) Group information processing method, device, equipment and 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
GR01 Patent grant
GR01 Patent grant