CN114584562A - Data synchronization method, device, electronic device and storage medium - Google Patents

Data synchronization method, device, electronic device and storage medium Download PDF

Info

Publication number
CN114584562A
CN114584562A CN202210257312.5A CN202210257312A CN114584562A CN 114584562 A CN114584562 A CN 114584562A CN 202210257312 A CN202210257312 A CN 202210257312A CN 114584562 A CN114584562 A CN 114584562A
Authority
CN
China
Prior art keywords
data
platform
sub
data synchronization
platforms
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.)
Pending
Application number
CN202210257312.5A
Other languages
Chinese (zh)
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.)
Hangzhou Yunxiang Network Technology Co Ltd
Original Assignee
Hangzhou Yunxiang 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 Hangzhou Yunxiang Network Technology Co Ltd filed Critical Hangzhou Yunxiang Network Technology Co Ltd
Priority to CN202210257312.5A priority Critical patent/CN114584562A/en
Publication of CN114584562A publication Critical patent/CN114584562A/en
Pending legal-status Critical Current

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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/10Network architectures or network communication protocols for network security for controlling access to devices or network resources
    • 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

Abstract

The application relates to a data synchronization method, a data synchronization device, an electronic device and a storage medium, wherein the data synchronization method comprises the following steps: receiving platform data; uploading the platform data to a blockchain; and receiving the data synchronization request of the sub-platforms, and synchronizing the corresponding platform data to the sub-platforms through a block chain based on the data synchronization request of the sub-platforms. Through the application, the technical problem that the efficiency of data synchronization is low in the prior art is solved, the safety of data transmission is guaranteed, the efficiency of data synchronization is improved, the labor cost of data synchronization is reduced, and the application scene is wider.

Description

Data synchronization method, device, electronic device and storage medium
Technical Field
The present application relates to the field of block chains, and in particular, to a data synchronization method, apparatus, electronic apparatus, and storage medium.
Background
With the continuous development of information technology, the block chain technology becomes more and more extensive in the fields of finance, internet of things, logistics, public service, insurance and the like.
In the prior art, when the safety requirement of the synchronous data is high, in order to avoid data leakage in the network transmission process, when the data of the main platform is synchronized to the sub-platform of a service user, data synchronization is generally performed on the sub-platform terminal device on the main platform by related personnel, and the related personnel perform manual control in the synchronization process so as to avoid data leakage. However, when the number of sub-platforms is too large, the labor cost is high and the management is not easy. Meanwhile, because the sub-platform authentication conditions are severe and the data synchronization process is complicated, errors are easy to occur in a manual mode. Therefore, the efficiency of data synchronization in the prior art is low.
Aiming at the technical problem of low efficiency of data synchronization in the related technology, no effective solution is provided at present.
Disclosure of Invention
The embodiment provides a data synchronization method, a data synchronization device, an electronic device and a storage medium, so as to solve the problem that the efficiency of data synchronization is low in the related art.
In a first aspect, in this embodiment, a data synchronization method is provided, which is applied to a main platform in a data management system, where the data management system includes the main platform and sub-platforms, and the method includes:
receiving platform data;
uploading the platform data to a blockchain;
and receiving the data synchronization request of the sub-platforms, and synchronizing the corresponding platform data to the sub-platforms through a block chain based on the data synchronization request of the sub-platforms.
In some of these embodiments, said synchronizing corresponding platform data to said sub-platform through a blockchain based on said data synchronization request comprises:
and authenticating the sub-platforms by adopting an intelligent contract based on the data synchronization request, and synchronizing the data to be synchronized to the sub-platforms through a block chain if the authority is matched.
In some embodiments, the synchronizing the platform data to the sub-platform via a blockchain further comprises:
and uploading the request records of the sub-platforms to a block chain.
In some embodiments, the receiving platform data further comprises:
storing the platform data to a main warehouse.
In a second aspect, in this embodiment, a data synchronization method is provided, which is applied to a sub-platform in a data management system, where the data management system includes a main platform and the sub-platform, and the method includes:
sending a data synchronization request to the master platform;
receiving platform data synchronized by the main platform based on the data synchronization request through a block chain;
and acquiring corresponding services based on the platform data.
In some embodiments, the receiving, by the blockchain, the platform data synchronized by the master platform based on the data synchronization request further includes:
storing the platform data to a private repository.
In some of these embodiments, said obtaining the corresponding service based on the platform data comprises:
and performing application deployment or application updating based on the platform data.
In a third aspect, there is provided in the present embodiment a data synchronization apparatus, the apparatus comprising:
the receiving module is used for receiving platform data;
the uploading module is used for uploading the platform data to a block chain;
and the synchronization module is used for receiving the data synchronization request of the sub-platforms and synchronizing the corresponding platform data to the sub-platforms through the block chain based on the data synchronization request of the sub-platforms.
In a fourth aspect, in this embodiment, there is provided an electronic apparatus, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the data synchronization method according to the first aspect and the second aspect when executing the computer program.
In a fifth aspect, in the present embodiment, there is provided a storage medium having a computer program stored thereon, the program, when executed by a processor, implementing the data synchronization method according to the first and second aspects.
Compared with the related art, the data synchronization method, the data synchronization device, the electronic device and the storage medium provided in the embodiment include: receiving platform data; uploading the platform data to a blockchain; and receiving the data synchronization request of the sub-platforms, and synchronizing the corresponding platform data to the sub-platforms through a block chain based on the data synchronization request of the sub-platforms. The block chain is set between the main platform and the sub-platforms of the data management system, platform data needing synchronization is managed through the block chain, data interaction is carried out between the main platform and the sub-platforms, authentication and data synchronization of the sub-platforms are not needed through a manual mode, the technical problem that the efficiency of data synchronization is low in the prior art is solved, the safety of data transmission is guaranteed, the efficiency of data synchronization is improved, the labor cost of data synchronization is reduced, and the application scene is wider.
The details of one or more embodiments of the application are set forth in the accompanying drawings and the description below to provide a more thorough understanding of the application.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a block diagram of a hardware configuration of a terminal of a data synchronization method according to an embodiment of the present invention;
FIG. 2 is a flow chart of a data synchronization method according to an embodiment of the invention;
FIG. 3 is a flow chart of a data synchronization method according to another embodiment of the present invention;
FIG. 4 is a flow chart of a data synchronization method according to another embodiment of the present invention;
FIG. 5 is a business architecture diagram of a data synchronization method according to an embodiment of the present invention;
FIG. 6 is a functional block diagram of a data synchronization process according to one embodiment of the present invention;
FIG. 7 is a block diagram of a data synchronization apparatus according to an embodiment of the present invention;
fig. 8 is a block diagram of a data synchronization apparatus according to another embodiment of the present invention.
Detailed Description
For a clearer understanding of the objects, aspects and advantages of the present application, reference is made to the following description and accompanying drawings.
Unless defined otherwise, technical or scientific terms used herein shall have the same general meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The use of the terms "a" and "an" and "the" and similar referents in the context of this application do not denote a limitation of quantity, either in the singular or the plural. The terms "comprises," "comprising," "has," "having," and any variations thereof, as referred to in this application, are intended to cover non-exclusive inclusions; for example, a process, method, and system, article, or apparatus that comprises a list of steps or modules (elements) is not limited to the listed steps or modules, but may include other steps or modules (elements) not listed or inherent to such process, method, article, or apparatus. Reference throughout this application to "connected," "coupled," and the like is not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. Reference to "a plurality" in this application means two or more. "and/or" describes an association relationship of associated objects, meaning that three relationships may exist, for example, "A and/or B" may mean: a exists alone, A and B exist simultaneously, and B exists alone. In general, the character "/" indicates a relationship in which the objects associated before and after are an "or". The terms "first," "second," "third," and the like in this application are used for distinguishing between similar items and not necessarily for describing a particular sequential or chronological order.
The method embodiments provided in the present embodiment may be executed in a terminal, a computer, or a similar computing device. For example, the method is executed on a terminal, and fig. 1 is a block diagram of a hardware structure of the terminal according to the data synchronization method of the present embodiment. As shown in fig. 1, the terminal may include one or more processors 102 (only one shown in fig. 1) and a memory 104 for storing data, wherein the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA. The terminal may also include a transmission device 106 for communication functions and an input-output device 108. It will be understood by those of ordinary skill in the art that the structure shown in fig. 1 is merely an illustration and is not intended to limit the structure of the terminal described above. For example, the terminal may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
The memory 104 may be used for storing computer programs, for example, software programs and modules of application software, such as a computer program corresponding to the data synchronization method in the present embodiment, and the processor 102 executes various functional applications and data processing by running the computer programs stored in the memory 104, so as to implement the above-mentioned method. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the terminal over 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 transmission device 106 is used to receive or transmit data via a network. The network described above includes a wireless network provided by a communication provider of the terminal. In one example, the transmission device 106 includes a Network adapter (NIC) that can be connected to other Network devices through a base station to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used to communicate with the internet in a wireless manner.
In the fields of finance and the like, related software such as bank client software often has high security requirements, and data of a user and a bank need to be ensured not to be leaked. Therefore, it is necessary to secure data transmission during the process of updating relevant software by the user. Specifically, in the process of uploading software and data to the public service end by a developer and acquiring software data from the public service end by a user for updating, the safety of data transmission needs to be ensured. In the process of uploading software by a developer, the transmission process is easy to supervise, and the developer can directly develop the software on a common server so as to omit the process of uploading data. In the process of acquiring data from the public service end by the user, the data transmission cost is higher while the data security is ensured because the number of the users is larger and the authority authentication is complex.
Referring to fig. 2, fig. 2 is a flow chart illustrating a data synchronization method according to an embodiment of the invention.
In one embodiment, the data synchronization method is applied to a main platform in a data management system, the data management system comprises the main platform and sub-platforms, and the data synchronization method comprises the following steps:
s202: platform data is received.
Illustratively, platform data is received, wherein the platform data refers to data that needs to be synchronized from a main platform to a sub-platform, and includes, but is not limited to, application data, service data, software program data, user data, and the like, which are developed by developers.
Specifically, the main platform includes a server side for providing services to the user by the developer, and is used for storing software programs, user data, authentication information, and the like. The developer can directly develop the platform data at the main platform or send the developed platform data to the main platform. Preferably, in order to avoid leakage in the data transmission process, developers directly develop platform data on the main platform, or transmit the platform data to the main platform through a hardware interface.
S204: platform data is uploaded to the blockchain.
Illustratively, after the host platform acquires the platform data, the platform data is uploaded to the blockchain.
Specifically, a blockchain refers to a shared database for storing related data or information. The block chain has the characteristics of decentralization, openness, independence, safety, anonymity and the like. The decentralized mode means that a block chain does not need to depend on an additional third-party management mechanism or hardware facilities, central control is not provided, and self verification, transmission and management of each node are achieved through distributed accounting and storage; the openness means that the blockchain data is open to all the owners except that private information of each party of the transaction is encrypted, and all the owners can inquire the blockchain data and develop related applications through a public interface; the independence means that the block chain does not depend on a third party, and all nodes can automatically verify data and exchange data; the security means that as long as the visitor cannot master more than half of the data nodes, the visitor cannot manipulate and modify the network data; anonymity means that identity information of each node of the blockchain does not need to be disclosed or verified, and information transfer can be performed anonymously.
S206: and receiving a data synchronization request of the sub-platforms, and synchronizing corresponding platform data to the sub-platforms through the block chains based on the data synchronization request of the sub-platforms.
Illustratively, the main platform acquires a data synchronization request sent by the sub-platforms, and analyzes the data synchronization request to determine the data synchronization requirements of the sub-platforms; and after the data synchronization requirement of the sub-platforms is determined, the platform data requested to be transmitted by the sub-platforms is sent to the sub-platforms through the block chain.
In one embodiment, the financial data management system generally uses micro-services, a block chain and cloud native as cores to construct a bottom-layer service platform, constructs a safe and accurate application service synchronization mechanism and an application service authorization use mechanism through the block chain, and arranges and combines upper-layer applications through a cloud native technology, so as to realize rapid assembly, release, upgrade and privatization synchronization of the platform.
The data synchronization method in this embodiment includes: receiving platform data; uploading platform data to a blockchain; and receiving a data synchronization request of the sub-platforms, and synchronizing corresponding platform data to the sub-platforms through the block chains based on the data synchronization request of the sub-platforms. The block chain is set between the main platform and the sub-platforms of the data management system, platform data needing synchronization is managed through the block chain, data interaction is carried out between the main platform and the sub-platforms, authentication and data synchronization of the sub-platforms are not needed through a manual mode, the technical problem that the efficiency of data synchronization is low in the prior art is solved, the safety of data transmission is guaranteed, the efficiency of data synchronization is improved, the labor cost of data synchronization is reduced, and the application scene is wider.
In another embodiment, synchronizing corresponding platform data to the sub-platform through the blockchain based on the data synchronization request includes:
and based on the data synchronization request, authenticating the sub-platform by adopting an intelligent contract, and if the authority is matched, synchronizing the data to be synchronized to the sub-platform through a block chain.
Illustratively, a data synchronization request is acquired and analyzed, and identity information and authority information of a branch platform are identified through an intelligent contract; and if the authority of the sub-platform meets the matching requirement, synchronizing the synchronous data to the sub-platform through the block chain.
In particular, a smart contract refers to a computer protocol that propagates, validates, or enforces contracts in an informational manner. Smart contract agreements allow for trusted transactions to be conducted without third parties, and these transactions are allowed to be tracked and irreversible. The rules of the intelligent contract are transparent in disclosure, the rules and data inside the contract are visible to the outside, all transactions are public, and false or hidden transactions do not exist. Therefore, the intelligent contract is widely applied to the technical fields of block chains and the like.
In one embodiment, the authentication of the platform is performed by a key. Specifically, a sub-platform end user can register multiple identities, different identities can correspond to different software, data or operation interfaces, the same user can simultaneously register multiple identities, and the main platform end performs auditing after the registration is completed. And after the main platform end passes the verification, distributing public and private keys according to the registration information of the user for block chain information processing and transaction, and writing the user key information into all network nodes of the block chain after fuzzification processing.
In the embodiment, after the data synchronization request of the sub-platform is acquired, the sub-platform is authenticated through an intelligent contract protocol, and the synchronous data is synchronized to the sub-platform through the block chain when the authority of the sub-platform is matched, so that the synchronous data is prevented from being transmitted to the sub-platform which does not meet the authority requirement. And based on the characteristics of intelligent contract openness, transparency and the like, the accuracy of authentication is improved, and the safety of synchronous data is further improved.
In another embodiment, synchronizing the platform data to the sub-platform via the blockchain further comprises:
and uploading the request records of the sub-platform to the block chain.
Illustratively, after the platform data is synchronized to the sub-platform through the blockchain, the request record of the sub-platform is saved and uploaded to the blockchain. The request records of the sub-platform include, but are not limited to, request data, request time, request IP, and the like.
In this embodiment, the request records of the sub-platform are uploaded to the block chain, so that the security of the request records of the sub-platform is ensured through the block chain. Moreover, the request record can be used for subsequent functions of service release, use, deployment, upgrade, authentication, statistics and the like, so that the optimization of the data management system is realized, and the safety of the data management system and the interaction experience of users are improved.
In another embodiment, after receiving the platform data, the method further comprises:
the platform data is stored to a main repository.
Illustratively, after receiving the platform data, the platform data is stored to a main warehouse at the main platform end. The main warehouse comprises a database and a data warehouse of the main platform end.
Specifically, after the platform data is stored in the main repository, developers and repository operators may perform relevant operations on the platform data, including but not limited to deactivation, deletion, update, and the like.
Specifically, after the synchronous data are uploaded to the main platform by the developer, operations such as creating a new namespace, creating services, configuring relevant information and the like can be performed, and the main platform automatically stores the synchronous data in the main warehouse after block chain authorization. The configuration-related information includes, but is not limited to, configuration service name, service logo, service description, service image, service source code repository address, and the like.
Optionally, the synchronous data is an application service, the developer configures the developed application service to the main platform, and after the main platform stores the platform data to the main warehouse, the warehouse operator can select the setting in the warehouse to arrange the application service. For example, application services are divided into mandatory and optional services.
In one embodiment, taking supply chain financial business as an example, the mandatory services include user services, billing services, financing services, and the like, and the optional services include bank docking services and the like.
Optionally, after the arrangement is completed, the application service is managed. Specifically, the management includes: service association configuration management, service internal routing configuration management, service external routing configuration management, service parameter configuration management, and service variable configuration management, etc. Based on the above management items, a configuration manifest is generated, which may be generated based on the selected application service, or manually adjusted.
After receiving the platform data, the embodiment stores the platform data in the main warehouse, so that the platform data are managed through the main warehouse, the management efficiency of the platform data is improved, and the efficiency of data synchronization is improved.
Referring to fig. 3, fig. 3 is a flow chart illustrating a data synchronization method according to another embodiment of the invention.
In another embodiment, the data synchronization method is applied to a sub-platform in a data management system, the data management system comprises a main platform and the sub-platform, and the data synchronization method comprises the following steps:
s202: sending a data synchronization request to a main platform;
s204: receiving platform data synchronized by a main platform based on a data synchronization request through a block chain;
s206: and acquiring the corresponding service based on the platform data.
Exemplarily, when data synchronization and updating are needed, acquiring a data synchronization requirement, generating a data synchronization request based on the data synchronization requirement, and sending the data synchronization request to the main platform; after the main platform finishes processing the data synchronization request, platform data sent by the main platform based on the data synchronization request is received through a block chain; and after the platform data is acquired, updating and upgrading are carried out based on the platform data so as to acquire corresponding services.
Optionally, the update state of the main platform is checked at regular time, and if the current service version is different from the service version of the main platform, the latest platform data is acquired through a block chain to realize automatic update, or manual update is performed by a developer.
The embodiment sends a data synchronization request to a main platform; receiving platform data synchronized by a main platform based on a data synchronization request through a block chain; and acquiring the corresponding service based on the platform data. The method comprises the steps of setting a block chain between a main platform and a sub-platform of a data management system, hosting platform data needing synchronization through the block chain, carrying out data interaction with the sub-platform, and not needing to authenticate the sub-platform and synchronize the data through a manual mode.
In another embodiment, the receiving, by the blockchain, the platform data synchronized by the master platform based on the data synchronization request further includes:
the platform data is stored to a private repository.
Illustratively, after the platform data is acquired, the platform data is saved to a private warehouse of the sub-platform for subsequent update and upgrade.
Specifically, after the platform data is stored in the private repository, the user may perform relevant operations on the platform data, including but not limited to deactivation, deletion, update, and the like.
In another embodiment, obtaining the corresponding service based on the platform data includes:
and performing application deployment or application updating based on the platform data.
Illustratively, after the platform data is acquired, application deployment or application update is performed based on the platform data. The application deployment refers to deployment and management of the application, and the application updating refers to updating and upgrading of the application.
Specifically, the sub-platform can obtain the latest platform data based on the main platform to perform deployment, update and upgrade. And after the sub-platform sends the data synchronization request, the block chain authorizes the sub-platform, and after the authorization is passed, the sub-platform acquires the platform data and performs synchronous updating.
Specifically, the block chain further stores platform data and corresponding management configuration information. The sub-platform acquires the platform data and simultaneously acquires corresponding management configuration information, and directly configures and upgrades the platform data based on the management configuration information after the acquisition, thereby realizing one-key deployment of the platform data.
Optionally, after the application deployment is completed, an external access route is generated for external access.
After the platform data is acquired, the embodiment performs application deployment and application updating based on the platform data, thereby ensuring the accuracy of service updating and further ensuring that the updated service is adapted to the requirements of the sub-platforms.
In combination with the above embodiments, the present invention also discloses an operation flow, a service architecture and a functional structure of data synchronization in a specific application scenario.
Referring to fig. 4, fig. 4 is a flowchart illustrating a data synchronization method according to another embodiment of the invention.
Specifically, after the developer completes the development of the application, the application is distributed to the main platform; after the application is released, acquiring a mirror image file of the application and storing the mirror image file in a main warehouse; meanwhile, the application is linked up to be stored in the block chain, and the related information is synchronously synchronized to the sub-platforms so as to inform the sub-platforms to carry out operations such as synchronous updating and the like.
Specifically, after receiving the notification, the sub-platform authenticates through the block chain to determine the version number of the applicable image file, then synchronously applies the version number to the private warehouse from the block chain, and automatically deploys and installs the image file by the micro-platform after synchronization is completed.
Referring to fig. 5, fig. 5 is a service architecture diagram of a data synchronization method according to an embodiment of the present invention.
Specifically, a developer distributes application services to a main platform, wherein the main platform can also be used for constructing and managing the services; after receiving the application service, the main platform uploads the related data to the block chain; and the main platform and the sub-platforms carry out authentication through an intelligent contract, and after the authentication is passed, the related data is synchronized to the private warehouse of the sub-platform through the block chain.
Specifically, in the process of hosting the application service through the blockchain, the application service can be deployed and managed through the micro platform. The micro platform comprises a public cloud-micro platform at a main platform end, a private cloud-micro platform at a sub-platform end and a mixed cloud-micro platform managed by the main platform and the sub-platforms together.
Referring to fig. 6, fig. 6 is a functional structure diagram of a data synchronization process according to an embodiment of the invention.
Specifically, a data synchronization process design developer, a service user, a platform operator and the like, the synchronization process relates to user identity management, application store management, application combination configuration management, service synchronization management, service deployment management, service backup management and the like, and the related data storage modules comprise a database, a block chain, a mirror image file storage area, a file storage area and the like.
It should be noted that the steps illustrated in the above-described flow diagrams or in the flow diagrams of the figures may be performed in a computer system, such as a set of computer-executable instructions, and that, although a logical order is illustrated in the flow diagrams, in some cases, the steps illustrated or described may be performed in an order different than here.
In this embodiment, a data synchronization apparatus is further provided, and the apparatus is used to implement the foregoing embodiments and preferred embodiments, which have already been described and are not described again. The terms "module," "unit," "subunit," and the like as used below may implement a combination of software and/or hardware for a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 7 is a block diagram of a data synchronization apparatus according to an embodiment of the present invention, and as shown in fig. 7, the apparatus includes:
a receiving module 10, configured to receive platform data;
an upload module 20, configured to upload platform data to a block chain;
the synchronization module 30 is configured to receive a data synchronization request of a sub-platform, and synchronize corresponding platform data to the sub-platform through a block chain based on the data synchronization request of the sub-platform;
the synchronization module 30 is further configured to authenticate the sub-platform by using an intelligent contract based on the data synchronization request, and if the permissions are matched, synchronize the data to be synchronized to the sub-platform through a block chain;
the data synchronization device also comprises a recording module;
the recording module is used for uploading the request records of the sub-platforms to the block chain;
the data synchronization module also comprises a main warehouse storage module;
and the main warehouse storage module is used for storing the platform data to the main warehouse.
Fig. 8 is a block diagram of a data synchronization apparatus according to another embodiment of the present invention, and as shown in fig. 8, the apparatus includes:
a request module 40, configured to send a data synchronization request to a host platform;
a data module 50, configured to receive, through a block chain, platform data synchronized by a main platform based on a data synchronization request;
a service module 60 for acquiring a corresponding service based on the platform data;
the service module 60 is further configured to perform application deployment or application update based on the platform data;
the data synchronization device also comprises a private warehouse storage module;
and the private warehouse storage module is used for storing the platform data to a private warehouse.
The above modules may be functional modules or program modules, and may be implemented by software or hardware. For a module implemented by hardware, the modules may be located in the same processor; or the modules can be respectively positioned in different processors in any combination.
There is also provided in this embodiment an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, receiving platform data;
s2, uploading the platform data to a block chain;
and S3, receiving the data synchronization request of the sub-platform, and synchronizing the corresponding platform data to the sub-platform through the block chain based on the data synchronization request of the sub-platform.
The processor may be further configured to perform the following steps by the computer program:
s1, sending a data synchronization request to the main platform;
s2, receiving platform data synchronized by the main platform based on the data synchronization request through the block chain;
and S3, acquiring the corresponding service based on the platform data.
It should be noted that, for specific examples in this embodiment, reference may be made to the examples described in the foregoing embodiment and optional implementation manners, and details are not described in this embodiment again.
In addition, in combination with the data synchronization method provided in the foregoing embodiment, a storage medium may also be provided to implement in this embodiment. The storage medium having stored thereon a computer program; the computer program, when executed by a processor, implements any of the data synchronization methods in the above embodiments.
It should be understood that the specific embodiments described herein are merely illustrative of this application and are not intended to be limiting. All other embodiments, which can be derived by a person skilled in the art from the examples provided herein without inventive step, shall fall within the scope of protection of the present application.
It is obvious that the drawings are only examples or embodiments of the present application, and it is obvious to those skilled in the art that the present application can be applied to other similar cases according to the drawings without creative efforts. Moreover, it should be appreciated that such a development effort might be complex and lengthy, but would nevertheless be a routine undertaking of design, fabrication, and manufacture for those of ordinary skill having the benefit of this disclosure, and is not intended to limit the present disclosure to the particular forms disclosed herein.
Reference throughout this application to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the present application. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is to be expressly or implicitly understood by one of ordinary skill in the art that the embodiments described in this application may be combined with other embodiments without conflict.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the patent protection. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present application shall be subject to the appended claims.

Claims (10)

1. A data synchronization method is applied to a main platform in a data management system, the data management system comprises the main platform and sub-platforms, and the method is characterized by comprising the following steps:
receiving platform data;
uploading the platform data to a blockchain;
and receiving the data synchronization request of the sub-platforms, and synchronizing the corresponding platform data to the sub-platforms through a block chain based on the data synchronization request of the sub-platforms.
2. The method of claim 1, wherein the synchronizing corresponding platform data to the sub-platform through a blockchain based on the data synchronization request comprises:
and authenticating the sub-platforms by adopting an intelligent contract based on the data synchronization request, and synchronizing the data to be synchronized to the sub-platforms through a block chain if the authority is matched.
3. The method of claim 1, wherein synchronizing the platform data to the sub-platform via a blockchain further comprises:
and uploading the request records of the sub-platforms to a block chain.
4. The method of claim 1, wherein the receiving platform data further comprises:
storing the platform data to a main warehouse.
5. A data synchronization method is applied to sub-platforms in a data management system, the data management system comprises a main platform and the sub-platforms, and the method is characterized by comprising the following steps:
sending a data synchronization request to the master platform;
receiving platform data synchronized by the main platform based on the data synchronization request through a block chain;
and acquiring corresponding services based on the platform data.
6. The method of claim 5, wherein the receiving, via a blockchain, platform data synchronized by the master platform based on the data synchronization request further comprises:
storing the platform data to a private repository.
7. The method of claim 5, wherein obtaining the corresponding service based on the platform data comprises:
and performing application deployment or application updating based on the platform data.
8. A data synchronization apparatus, the apparatus comprising:
the receiving module is used for receiving platform data;
the uploading module is used for uploading the platform data to a block chain;
and the synchronization module is used for receiving the data synchronization request of the sub-platforms and synchronizing the corresponding platform data to the sub-platforms through the block chain based on the data synchronization request of the sub-platforms.
9. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, and the processor is configured to execute the computer program to perform the data synchronization method of any of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the data synchronization method according to any one of claims 1 to 7.
CN202210257312.5A 2022-03-16 2022-03-16 Data synchronization method, device, electronic device and storage medium Pending CN114584562A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210257312.5A CN114584562A (en) 2022-03-16 2022-03-16 Data synchronization method, device, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210257312.5A CN114584562A (en) 2022-03-16 2022-03-16 Data synchronization method, device, electronic device and storage medium

Publications (1)

Publication Number Publication Date
CN114584562A true CN114584562A (en) 2022-06-03

Family

ID=81775321

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210257312.5A Pending CN114584562A (en) 2022-03-16 2022-03-16 Data synchronization method, device, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN114584562A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111783160A (en) * 2020-09-07 2020-10-16 南京金宁汇科技有限公司 Government affair data sharing method
CN112581126A (en) * 2020-12-08 2021-03-30 腾讯科技(深圳)有限公司 Block chain-based platform data management method and device and storage medium
CN112965974A (en) * 2021-02-10 2021-06-15 中国工商银行股份有限公司 Data sharing method, node, terminal and system based on block chain
CN113570479A (en) * 2021-08-03 2021-10-29 北京房江湖科技有限公司 Block chain transmission method, system and storage medium for house property transaction data
CN113626524A (en) * 2021-08-12 2021-11-09 浙江网商银行股份有限公司 Data processing method and device and data checking system
US20210400025A1 (en) * 2020-06-22 2021-12-23 Paypal, Inc. Database synchronization system in high security zones using blockchain

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20210400025A1 (en) * 2020-06-22 2021-12-23 Paypal, Inc. Database synchronization system in high security zones using blockchain
CN111783160A (en) * 2020-09-07 2020-10-16 南京金宁汇科技有限公司 Government affair data sharing method
CN112581126A (en) * 2020-12-08 2021-03-30 腾讯科技(深圳)有限公司 Block chain-based platform data management method and device and storage medium
CN112965974A (en) * 2021-02-10 2021-06-15 中国工商银行股份有限公司 Data sharing method, node, terminal and system based on block chain
CN113570479A (en) * 2021-08-03 2021-10-29 北京房江湖科技有限公司 Block chain transmission method, system and storage medium for house property transaction data
CN113626524A (en) * 2021-08-12 2021-11-09 浙江网商银行股份有限公司 Data processing method and device and data checking system

Similar Documents

Publication Publication Date Title
US20230110131A1 (en) Internet of things
US10523526B2 (en) System and method for managing services and licenses using a blockchain network
CN110226168B (en) System and method for providing interfaces for blockchain cloud services
CN111045690B (en) Block chain node service deployment method, device, system, computing equipment and medium
US20220027344A1 (en) System and method for supporting sql-based rich queries in hyperledger fabric blockchains
US11088854B2 (en) Securing blockchain access through a gateway on behalf of a communication device
JP2021534512A (en) DAG-based transaction processing methods and systems in distributed ledgers
CN110636492A (en) Handover of mobile service providers using blockchains
JP2022062705A (en) Computer-implemented methods, computer systems and programs for generating blockchain-implemented data migration audit trail (blockchain-implemented data migration audit trail)
CN115769241A (en) Privacy preserving architecture for licensed blockchains
CN110377306A (en) For the management method and device of mobile unit upgrade package, medium, server
CN113064600B (en) Method and device for deploying application
US8863241B2 (en) System and method for managing usage rights of software applications
CN112804354B (en) Method and device for data transmission across chains, computer equipment and storage medium
US20200153889A1 (en) Method for uploading and downloading file, and server for executing the same
EP4357950A1 (en) Device management method, system and apparatus
JP2023525576A (en) Scope of control of authentication keys for software updates
US20230092069A1 (en) Server apparatus
CN114584562A (en) Data synchronization method, device, electronic device and storage medium
Krummacker et al. DLT architectures for trust anchors in 6G
KR102564488B1 (en) BLOCKCHAIN-BASED IoT DEVICE FIRMWARE SUPPLY SYSTEM AND FIRMWARE UPDATE METHOD USING THE SAME
Sidhu et al. Trust development for blockchain interoperability using self-sovereign identity integration
CN114448705A (en) Heterogeneous platform node interaction method, system and storage medium
CN112236792A (en) Secure transaction system in P2P architecture
US10083313B2 (en) Remote modification of a document database by a mobile telephone device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination