A decentralized web application management system and method based on blockchain
By deploying databases and web applications in the blockchain system, using the many-to-many access management mechanism and distributed storage of blockchain, the centralized problem of traditional web application systems is solved, security and access efficiency are improved, and the implementation of the implementation of the implementation of the blockchain's many-to-many access management mechanism and distributed storage. Decentralized web application management and access.
Patent Information
- Application Number
- CN202011497480.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2020-10-22
- Filing Date
- 2020-12-17
- Publication Date
- 2024-12-17
- Estimated Expiration
- 2040-12-17
AI Technical Summary
Traditional Web application systems have problems such as easy control or attack caused by centralization, high pressure on access to Web servers and high probability of single point failure.
By deploying databases and web applications to blockchain systems and on-chain storage systems, decentralized data and application management is achieved, and blockchain's many-to-many access management mechanism is used, distributed storage management and load balancing are used, and distributed storage management and load balancing are used. mechanism to realize decentralized deployment and access of web applications.
It improves the security and access efficiency of the Web application system, solves the security problems and single-point failure probability brought by centralization, and realizes decentralized Web management and access.
Smart Images

Figure CN112396526B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of blockchain application technology, and in particular to a decentralized web application management system and method based on blockchain. Background Art
[0002] Traditional Web application systems are deployed on one or a cluster of servers, which have the characteristics of business application system centralization, easy to be controlled or attacked; high access pressure on Web servers; high probability of single point failure and other problems.
[0003] Decentralized Web applications based on blockchain deploy databases on the blockchain to achieve data tamper-proof and anti-attack functions. At the same time, Web applications are deployed on the blockchain in the form of data files, forming a many-to-many access management with the database, truly realizing access to decentralized Web applications. Summary of the invention
[0004] The present invention provides a decentralized web application management system based on blockchain, which can overcome certain or some defects of the prior art.
[0005] According to the blockchain-based decentralized web application management system of the present invention, it includes a data management system, a Web application management system, a Web application access system, a blockchain system and an on-chain storage system. The data management system is used to manage the database of the Web application, the Web application management system is used to manage the application program of the Web application, the Web application access system is used to manage the access of the Web application, the blockchain system is used to store the structured data of the Web application, and the on-chain storage system is used to store the unstructured data of the Web application.
[0006] Through the scheme of the present invention, developers can better realize the creation and management of databases and applications of Web applications through data management systems and Web application management systems, and can better realize user access to Web applications through Web application access systems. And by deploying both databases and applications in blockchain systems and on-chain storage systems, it can better solve the security problems such as easy control or attack caused by the centralization of traditional Web applications, high access pressure on Web servers and high probability of single point failures. Through distributed storage management of data and web applications, it can evenly jump web application access to different blockchain nodes, thereby realizing decentralized web management and access, and improving the security and access efficiency of web application systems.
[0007] Preferably, the data management system includes a database management module, a data table structure management module and a business data management module; the database management module is used to create and manage the database of the Web application, the data table structure management module is used to create data entities, and the business data management module is used to store data.
[0008] The present invention, through the above, can better realize the creation of a database of a Web application, the creation of a data entity and the storage of data, thereby better realizing the decentralized storage of related data.
[0009] Preferably, the Web application management system includes a Web application basic information management module and a Web application file management module. The Web application basic information management module is used to create and manage Web application applications, and the Web application file management module is used to manage the files required by Web application applications.
[0010] Through the above, the creation and management of Web application programs can be better achieved.
[0011] Preferably, the Web application access system includes a Web application warehouse module, a Web application search module and a Web application near-node access module. The Web application warehouse module is used to provide a visual display interface for Web applications, the Web application search module is used to implement the search function of Web applications, and the Web application near-node access module is used to implement the connection between the client of the Web application and the node of the blockchain system.
[0012] Through the above, access to the Web application can be better achieved.
[0013] The present invention also provides a decentralized Web application management method based on blockchain, which comprises the following steps:
[0014] Step S1: Management of Web application database
[0015] In this step, developers create and manage the database through the data management system, and deploy the database in the blockchain system and on-chain storage system through the data management system;
[0016] Step S2: Management of Web application programs
[0017] In this step, developers create and manage applications through the Web application management system, and deploy applications in the blockchain system and on-chain storage system through the Web application management system;
[0018] Step S3: Access to Web Application
[0019] In this step, the user accesses the Web application access system through the client to access the Web application.
[0020] Through the method of the present invention, decentralized deployment, management and access of Web applications can be better achieved.
[0021] Preferably, step S1 specifically includes the following steps:
[0022] Step S11: Database management
[0023] In this step, developers use the database management module to create and modify basic information of the database;
[0024] Step S12: Management of data entities
[0025] In this step, developers create and manage data entities in the database through the data table structure management module;
[0026] Step S13: Data storage
[0027] In this step, developers use the business data management module to implement on-chain storage of business application data and transaction data.
[0028] Through steps S11-S13, decentralized deployment and management of the database of the Web application can be better achieved.
[0029] Preferably, step S2 specifically includes the following steps:
[0030] Step S21: Application Management
[0031] In this step, developers manage all applications stored in the blockchain system through the Web application basic information management module;
[0032] Step S22: Application file storage
[0033] In this step, the developer manages the files required by the application to provide service functions through the Web application file management module.
[0034] Through steps S21 and S22, decentralized deployment and management of Web application programs can be better achieved.
[0035] Preferably, step S3 specifically includes the following steps:
[0036] Step S31: Display of all Web applications
[0037] In this step, all web applications are displayed through the web application warehouse module;
[0038] Step S32: Searching for Web Applications
[0039] In this step, the user searches for a specific web application through the web application search module;
[0040] Step S33: Web application access route selection
[0041] In this step, the Web application near-node access module jumps to the node closest to the client for access based on the load balancing mechanism.
[0042] Through steps S31-S33, access to the Web application can be preferably achieved. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] Figure 1 The overall architecture of the decentralized web application management system based on blockchain in Example 1;
[0044] Figure 2 This is a schematic diagram of the data management process in Example 1;
[0045] Figure 3 This is a schematic diagram of the association relationship between the blockchain and structured data in Example 1;
[0046] Figure 4 Schematic diagram of the decentralized Web application access method in Example 1. DETAILED DESCRIPTION
[0047] In order to further understand the content of the present invention, the present invention is described in detail in conjunction with the accompanying drawings and embodiments. It should be understood that the embodiments are only for explaining the present invention and are not intended to limit it.
[0048] Example 1
[0049] Combination Figure 1 As shown, this embodiment provides a decentralized Web application management system based on blockchain, which includes a data management system, a Web application management system, a Web application access system, a blockchain system and an on-chain storage system. The data management system is used to manage the database of the Web application, the Web application management system is used to manage the application program of the Web application, the Web application access system is used to manage the access of the Web application, the blockchain system is used to store the structured data of the Web application, and the on-chain storage system is used to store the unstructured data of the Web application.
[0050] Among them, the data management system can have a visual interface, through which the functions to be implemented by the data management system can be better displayed, so that users can better realize the creation of new databases and the viewing and editing of all databases created by them. When users create a database for a new Web application, the data management system can automatically generate API interfaces such as query, add, modify, and delete for database tables and data management functions, so as to better realize access to the database. When users view an existing database, they can directly select the database to view all tables, table structures, data stored in the tables, data management functions and other information in the database.
[0051] Among them, the Web application management system can also have a visual interface, through which the functions to be implemented by the Web application management system can be better displayed, so that users can better realize the creation of applications and view and edit all the applications they have created. When viewing the applications they have created, users can select the corresponding applications, which can better view their basic information, and can better implement management operations such as adding, modifying, and deleting applications. At the same time, the Web application management system can also better manage the application content files of the application and preview the application. The Web application management system is similar to the existing application market, which can uniformly manage all the web applications launched in the blockchain system, and provide functions such as listing, delisting, searching, evaluating, and accessing web applications. In addition, after the developer of the Web application logs in to the Web application management system, he can view all the Web applications he has created.
[0052] Among them, the Web application access system can also have a visual interface, through which all Web applications can be better displayed, so that users can better access the corresponding Web applications through the Web application access system. When performing specific access actions, users can access the Web application access system through the client, and then the Web application access system can jump to the node closest to the client for access based on the load balancing mechanism. The Web application access system is similar to the search and download functions in the existing application market. After entering the Web application access system, users can enter keywords to search according to access requirements, and the system will display all matching web applications; select the web application to be accessed, and the blockchain system will jump to the node closest to the client for access.
[0053] It is understandable that Web applications (also known as Web application systems) are composed of two parts: a database (backend) and a Web application (frontend). The database is used to provide data support for the entire Web application, and the Web application is used to provide a user interface. When creating a Web application, you need to first create a corresponding database, and then create a Web application. By building a Web application and calling the database, you can better achieve the creation of a Web application.
[0054] Among them, the Web application management system and the Web application access system can have a unified access entrance. When accessing the interface as a developer, one can enter the Web application management system, and when accessing the interface as a common user, one can enter the Web application access system.
[0055] Since there is no management tool similar to a relational database in the blockchain system, this embodiment provides a visual database management tool to facilitate different web applications to manage their databases. Through the visual database management tool, users can easily create the database and table structure corresponding to the web application. The system generates an API interface for querying, adding, modifying, deleting, and other management of data in the table through the data management engine. In order to meet the special data operation application requirements such as association query and transaction processing between multiple tables in web applications, the system provides a data management Function function, which can create data operation methods as needed.
[0056] Through the scheme in this embodiment, developers can better realize the creation and management of databases and applications of Web applications through data management systems and Web application management systems, and can better realize user access to Web applications through Web application access systems. And by deploying both databases and applications in blockchain systems and on-chain storage systems, it is possible to better solve the security problems such as easy control or attack caused by the centralization of traditional Web applications, high access pressure on Web servers and high probability of single point failures. Through distributed storage management of data and web applications, web application access is balanced and jumped to different blockchain nodes, thereby realizing decentralized web management and access, and improving the security and access efficiency of web application systems.
[0057] Combination Figure 2 and 3 The data management system includes a database management module, a data table structure management module and a business data management module; the database management module is used to create and manage the database of the Web application, the data table structure management module is used to create data entities, and the business data management module is used to store data.
[0058] Among them, the database management module can be used to create and modify the basic information of the database. The basic information can include name, category, description, creator, creation time, etc. After the Web application is created, the creator can edit and modify the application's category, description and other basic information.
[0059] Among them, the data entity of the database can be better created and managed through the data table structure management module. The data entity is the corresponding data item of the table structure field of the database. Each Web application may contain multiple data entities. These data entities have the same data item (retained attribute) and the same method (retained method). These same data items are parent entities. A Web application can have multiple data entities. All data entities inherit the parent entity. Each data entity inherits the retained attributes and retained methods of the parent entity. The data entity cannot be modified after creation. The data entity includes a name and multiple entity attributes. The entity attributes include attribute name, attribute type, attribute length, and attribute description.
[0060] Among them, the business data management module can better realize the storage of data, and the stored data includes business application data and transaction data; business application data refers to the core business entity data used to describe the Web application. According to the different requirements of the Web application, the business application data structure is also different. For the performance of the business application, the structured data in the business application data is stored and managed by a relational database, and the unstructured data in the business application data is stored in the on-chain storage system in the form of file attachments. Transaction data refers to data used to record the transfer information between different accounts, including transaction input, transaction output, transaction script data, etc.; the user sends the transaction to the blockchain node, and the blockchain node packages multiple transactions into blocks. The blocks will be broadcast and consensus on the blockchain network. After the blockchain network reaches a consensus on the block, it recognizes the transaction in the block, and the transaction is confirmed; in order to ensure the security of the on-chain storage of business application data, a small fee needs to be paid to store a piece of business data, thereby generating a piece of transaction data, and the transaction data stores the hash value of the business application data, and the business application data also stores the hash value of the corresponding transaction data.
[0061] In this embodiment, through the above, the creation of a database of a Web application, the creation of a data entity and the storage of data can be better realized, thereby better realizing the decentralized storage of related data.
[0062] In this embodiment, the Web application management system includes a Web application basic information management module and a Web application file management module. The Web application basic information management module is used to create and manage Web application applications, and the Web application file management module is used to manage the files required by Web application applications.
[0063] Among them, the Web application basic information management module can manage all applications stored in the blockchain system. Developers can create a new application, edit an already created application, or delete a previously created application.
[0064] Among them, the Web application file management module can manage the files required for the application to provide service functions. After the user uploads them to the blockchain node, the file data between nodes is synchronized to all nodes in the blockchain network.
[0065] Through the above, the creation and management of Web application programs can be better achieved.
[0066] Combination Figure 4 The Web application access system includes a Web application warehouse module, a Web application search module and a Web application near-node access module. The Web application warehouse module is used to provide a visual display interface for Web applications. The Web application search module is used to implement the search function of Web applications. The Web application near-node access module is used to implement the connection between the client of the Web application and the node of the blockchain system.
[0067] Among them, the Web application warehouse module can provide a visual display interface of the application, which can provide an application entity list, entity detailed information, entity data list and entity data management functions.
[0068] Among them, the Web application search module can search for specific applications in the Web application warehouse module through different attribute keywords such as Web application name, function description, and Web application creator.
[0069] Among them, through the Web application near node access module, access to the application can be better achieved. The model of the Web application in this embodiment consists of a full node in the blockchain system and an application client. The full node in the blockchain system is used to store transaction data and business application data, and runs all application platforms (including data management systems, Web application management systems, and Web application access systems). Users join the blockchain network through the P2P network through the application client. When the client accesses the business application platform, it first connects to the neighboring node and then accesses the business application platform deployed in the neighboring node. It can be known that each node in the blockchain system has a node unique identifier, that is, the node address; the node accessed by the user also has a node address A, and the node address A is used to perform an XOR operation with the node address B to be accessed, and the distance between the two nodes can be calculated; any two nodes in the blockchain system can use this method to calculate the distance, and the smaller the distance value, the closer the two nodes are; so that the access to the nearest node can be better achieved.
[0070] Through the above, access to the Web application can be better achieved.
[0071] Based on the system in this embodiment, this embodiment also provides a decentralized Web application management method based on blockchain, which includes the following steps:
[0072] Step S1: Management of Web application database
[0073] In this step, developers create and manage the database through the data management system, and deploy the database in the blockchain system and on-chain storage system through the data management system;
[0074] Step S2: Management of Web application programs
[0075] In this step, developers create and manage applications through the Web application management system, and deploy applications in the blockchain system and on-chain storage system through the Web application management system;
[0076] Step S3: Access to Web Application
[0077] In this step, the user accesses the Web application access system through the client to access the Web application.
[0078] Through the method in this embodiment, decentralized deployment, management and access of Web applications can be better achieved.
[0079] Wherein, step S1 specifically includes the following steps:
[0080] Step S11: Database management
[0081] In this step, developers use the database management module to create and modify basic information of the database;
[0082] Step S12: Management of data entities
[0083] In this step, developers create and manage data entities in the database through the data table structure management module;
[0084] Step S13: Data storage
[0085] In this step, developers use the business data management module to implement on-chain storage of business application data and transaction data.
[0086] Through steps S11-S13, decentralized deployment and management of the database of the Web application can be better achieved.
[0087] Wherein, step S2 specifically includes the following steps:
[0088] Step S21: Application Management
[0089] In this step, developers manage all applications stored in the blockchain system through the Web application basic information management module;
[0090] Step S22: Application file storage
[0091] In this step, the developer manages the files required by the application to provide service functions through the Web application file management module.
[0092] Through steps S21 and S22, decentralized deployment and management of Web application programs can be better achieved.
[0093] Wherein, step S3 specifically includes the following steps:
[0094] Step S31: Display of all Web applications
[0095] In this step, all web applications are displayed through the web application warehouse module;
[0096] Step S32: Searching for Web Applications
[0097] In this step, the user searches for a specific web application through the web application search module;
[0098] Step S33: Web application access route selection
[0099] In this step, the Web application near-node access module jumps to the node closest to the client for access based on the load balancing mechanism.
[0100] Through steps S31-S33, access to the Web application can be preferably achieved.
[0101] The present invention and its embodiments are described schematically above, and the description is not restrictive. The drawings show only one embodiment of the present invention, and the actual structure is not limited thereto. Therefore, if a person skilled in the art is inspired by it and designs a structural method and an embodiment similar to the technical solution without creativity without departing from the purpose of the invention, they shall all fall within the protection scope of the present invention.
Claims
1. A decentralized web application management system based on blockchain, characterized by: It includes a data management system, a Web application management system, a Web application access system, a blockchain system and an on-chain storage system. The data management system is used to manage the database of Web applications, the Web application management system is used to manage the application programs of Web applications, the Web application access system is used to manage the access of Web applications, the blockchain system is used to store the structured data of Web applications, and the on-chain storage system is used to store the unstructured data of Web applications. The data management system includes a database management module, a data table structure management module and a business data management module; The database management module is used to create and manage the database of the Web application, the data table structure management module is used to create data entities, and the business data management module is used to store data; The data management system has a visual interface; The Web application management system includes a Web application basic information management module and a Web application file management module. The Web application basic information management module is used to create and manage Web application applications, and the Web application file management module is used to manage the files required by Web application applications. The Web application management system also has a visual interface; The Web application access system includes a Web application warehouse module, a Web application search module and a Web application near-node access module. The Web application warehouse module is used to provide a visual display interface for Web applications. The Web application search module is used to implement the search function of Web applications. The Web application near-node access module is used to implement the connection between the client of the Web application and the node of the blockchain system. The Web application management system and the Web application access system have a unified access portal.
2. A decentralized Web application management method based on blockchain, comprising the following steps: Step S1: Web application database management In this step, developers create and manage the database through the data management system, and deploy the database in the blockchain system and on-chain storage system through the data management system; Step S2: Management of Web application programs In this step, developers create and manage applications through the Web application management system, and deploy applications in the blockchain system and on-chain storage system through the Web application management system; Step S3: Access to Web Application In this step, the user accesses the Web application access system through the client to access the Web application; Step S1 specifically includes the following steps: Step S11: Database management In this step, developers use the database management module to create and modify basic information of the database; Step S12: Management of data entities In this step, developers create and manage data entities in the database through the data table structure management module; Step S13: Data storage In this step, developers use the business data management module to store business application data and transaction data on the chain; Step S2 specifically includes the following steps: Step S21: Application Management In this step, developers manage all applications stored in the blockchain system through the Web application basic information management module; Step S22: Application file storage In this step, developers manage the files required by the application to provide service functions through the Web application file management module; Step S3 specifically includes the following steps: Step S31: Display of all Web applications In this step, all web applications are displayed through the web application warehouse module; Step S32: Searching for Web Applications In this step, the user searches for a specific web application through the web application search module; Step S33: Web application access route selection In this step, the Web application near-node access module jumps to the node closest to the client for access based on the load balancing mechanism.
Citation Information
Patent Citations
Intelligent contract collaborative development system based on Fabric block chain and data processing method
CN110288307A
