Digital street governance data intelligent grading system and method based on block chain

By designing a blockchain-based digital street governance data intelligent grading system, the problems of low efficiency, difficulty in grading and timely accuracy in the existing technology are solved, and the data is quickly traversed, real-time synchronization and convenient query are realized, and the data management needs of smart cities are met.

CN119669361AInactive Publication Date: 2025-03-21WUXI URBAN BLOCKCHAIN ADVANCED RES CENT
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202411814319.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-11
Publication Date
2025-03-21
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing blockchain-winding solution is insufficient in processing multiple types of data, and cannot be hierarchically rolled on the chain according to the importance of the data. The accuracy and timeliness of the rolled data are difficult to guarantee, and it cannot meet the needs of smart city data rolling.

Method used

Design a smart hierarchical system for digital street governance data based on blockchain, including front-end service module, proxy module, back-end service module, message queue module, blockchain gateway module, blockchain underlying network module and database module. Through the dual-channel data processing mechanism, multi-level data inspection mechanism and two-way synchronization between blockchain and relational database, data can be quickly put on the chain, real-time synchronization and convenient query.

Benefits of technology

It realizes the rapid linking of data, real-time synchronization and convenient query, improves the system's ability to process complex data, ensures the real-time and consistency of data, and meets the needs of smart city data linking.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119669361A_ABST
    Figure CN119669361A_ABST
Patent Text Reader

Abstract

The invention discloses a digital street governance data intelligent grading system based on a block chain. The system comprises a front-end service module, an agent module, a back-end service module, a message queue module, a block chain gateway module, a block chain underlying network module and a database module. The invention discloses a block chain-based digital street governance data intelligent grading method, which comprises two data flow directions to ensure intelligent grading uplink and real-time synchronization of street governance data, and comprises a data uplink process and a data synchronization process. According to the invention, an efficient, flexible and safe street governance data intelligent grading system is constructed; due to the innovative double-channel data flow design, the real-time performance of data and the high availability of the system are ensured; a hierarchical data checking mechanism improves the accuracy of data chaining, and event notification and message queue integration enhance the expandability of the system; the system provides intelligent and stable technical support for street management of smart cities, and has wide application value and popularization prospect.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of smart city technology, and more specifically, it particularly relates to a blockchain-based intelligent grading system for digital street governance data. At the same time, the present invention also relates to a blockchain-based intelligent grading method for digital street governance data. Background Art

[0002] Smart city is a new form of city built with the goal of more scientific development, more efficient management and better life, supported by information technology and communication technology, through transparent and sufficient information acquisition, extensive and secure information transmission and effective and scientific information processing, to improve the efficiency of urban operation, improve the level of public services and form a low-carbon urban ecosystem. With the rapid development of science and technology and the advent of information society, smart city has become a new direction for future urban planning.

[0003] With the rapid development of smart cities, street governance has generated a large amount of multi-source heterogeneous data, which needs to be effectively managed and stored so that urban management departments can make timely decisions. Traditional centralized data management systems have data security risks and it is difficult to ensure that data cannot be tampered with. Blockchain is gradually being applied to urban governance due to its decentralization and non-tamperability.

[0004] However, there are some problems with the existing technology: the existing blockchain on-chain solutions are not efficient enough when processing multiple types of data, and different types of data cannot be graded and uploaded to the chain according to their importance. In addition, the accuracy and timeliness of the uploaded data cannot be effectively guaranteed, which makes it difficult to meet the needs of smart city data on-chain. Therefore, we propose a blockchain-based digital street governance data intelligent grading system and method. Summary of the invention

[0005] In view of the problems existing in the prior art, the purpose of the present invention is to provide a blockchain-based digital street management data intelligent grading system and method, which can upload and synchronize street management data according to different processes, so as to achieve rapid data upload, real-time synchronization and convenient query.

[0006] To achieve the above purpose, the present invention provides the following technical solutions: a blockchain-based digital street governance data intelligent grading system, including a front-end service module, an agent module, a back-end service module, a message queue module, a blockchain gateway module, a blockchain underlying network module and a database module, wherein:

[0007] The front-end service module is used for users to access and manage on-chain data;

[0008] The proxy module uses the Nginx cluster to proxy the requests of the front-end service module, supporting load balancing and high availability;

[0009] The backend service module is used for data diversion and processing, including two main processing flows: uplink data flow and synchronization data flow;

[0010] The message queue module is used to realize asynchronous data transmission and ensure the real-time data upload and synchronization;

[0011] The blockchain gateway module is used to monitor the data in the message queue and is responsible for packaging, decoding and pushing the data to the underlying blockchain network;

[0012] The underlying network module of the blockchain is responsible for the consensus processing of data to ensure that the data cannot be tampered with;

[0013] The database module is used to store key information of the blockchain, which is convenient for fast back-end query and front-end display.

[0014] Specifically, the front-end service module includes Web services and H5 services. The front-end service module is used to display various types of street management data, including street events, street information status and statistical analysis. The front-end service module interacts with the back-end service module through HTTP requests. The back-end service module is used to return corresponding request history data. The front-end service module is used to upload the newly added data information to the underlying network module of the blockchain.

[0015] Specifically, the proxy module mainly realizes load balancing and reverse proxy through the Nginx cluster. All requests of the front-end service modules are load-balancedly distributed to the cluster of the back-end service module through the Nginx cluster. The configuration of the Nginx cluster supports custom routing strategies, and forwards the Web service and H5 service traffic to the corresponding clusters of the back-end service modules respectively. At the same time, the Nginx cluster performs IP whitelist filtering and HTTPS encryption on external access.

[0016] Specifically, the back-end service module mainly processes user requests and realizes hierarchical data on-chain and on-chain data synchronization; the back-end service module is deployed in a cluster mode, and the core functional modules of the back-end service module include data verification, on-chain processing and event monitoring.

[0017] Data verification performs preliminary verification on the on-chain data submitted by the user and selects an appropriate on-chain strategy based on the data level;

[0018] For highly confidential data, stricter verification and encryption measures are adopted for on-chain processing; for data with higher real-time requirements, on-chain processing is given priority so that the data can be uploaded to the underlying network module of the blockchain in a timely manner;

[0019] The backend service module monitors new messages in the message queue in real time through event monitoring, including on-chain data and synchronized on-chain data. According to the type of message, the backend service module will process it separately to ensure the real-time and consistency of the data flow.

[0020] Specifically, the message queue module is used for asynchronous transmission of on-chain data and off-chain data, and the message queue module adopts Kafka or RabbitMQ message queue service; the data transmitted in the message queue module is divided into on-chain data and on-chain data, and the message queue module plays the role of data caching and asynchronous transmission in the two data flows;

[0021] The on-chain data is used to enter the message queue module after the back-end service module completes the verification and format conversion of the on-chain data; the blockchain gateway module monitors the data in the message queue module. When the blockchain gateway module detects that new on-chain data is generated, the message queue module immediately pulls and packages the data, and then packages the data by level to the blockchain underlying network module to complete the blockchain network consensus;

[0022] The on-chain data pushes the newly generated block data to the message queue module through the blockchain gateway module for the backend service module to monitor and pull, thereby realizing real-time synchronization and persistence of the on-chain data.

[0023] Specifically, the blockchain gateway module is used to connect the message queue module with the blockchain gateway module, and the blockchain gateway module includes message monitoring and consensus data notification:

[0024] The message monitoring is used for the blockchain gateway module to continuously monitor the new data in the message queue module. The message queue module will pull and decode the new on-chain data, and then package the on-chain data into blocks and send them to the blockchain underlying network module for consensus node processing;

[0025] The consensus data notification is used to push the consensus data of completing the consensus operation and generating a new block to the blockchain gateway module. After receiving the consensus notification, the blockchain gateway module pushes the new block to the message queue module for further processing and storage.

[0026] Specifically, the underlying network module of the blockchain is used to upload the street governance data to the chain and perform consensus operations, and the underlying network module of the blockchain adopts the Raft consensus mechanism;

[0027] The blockchain underlying network module contains detailed records of street governance data, including data source, data level and event type information.

[0028] Specifically, the database module is used to store key information of on-chain data. The back-end service module parses and extracts key data fields, including block hash, block height, block timestamp and transaction information, based on the monitored new consensus block, and then stores the data in the database module;

[0029] The front-end service module is used to access and query historical data on the chain within the database module, and display real-time dynamic information of street management.

[0030] The blockchain-based digital street governance data intelligent grading method is characterized by:

[0031] It includes two data flows to ensure the intelligent and hierarchical uploading and real-time synchronization of street governance data, including the data uploading process and the data synchronization process;

[0032] The steps of data on-chain process are as follows:

[0033] S1, the front-end service module request is forwarded to the back-end service module through the Nginx cluster proxy of the proxy module;

[0034] S2. The backend service module performs basic checks on the data, including data format and field legitimacy, to ensure the initial integrity of the data;

[0035] S3. The backend service module calls the on-chain SDK service module to further check and transform the data to make it conform to the coding specifications of the underlying network module of the blockchain, using multi-threading.

[0036] S4. The on-chain SDK service module will classify the processed data and push the important data that needs to be on-chain to the message queue module;

[0037] S5. The blockchain gateway module always monitors the message queue module. When new data is detected, it immediately pulls, decodes and packages the data.

[0038] S6. After the data is packaged, the blockchain gateway module sends it to the underlying blockchain network module, and the consensus node reaches consensus and uploads it to the blockchain;

[0039] Specifically, the steps of the data synchronization process are as follows:

[0040] A1. After the blockchain underlying network module nodes complete data consensus, they notify the blockchain gateway module of the consensus results;

[0041] A2. The blockchain gateway module pushes the new consensus block information to the message queue module;

[0042] A3. The backend service module monitors the message queue module, and after detecting new block information, it pulls and parses it;

[0043] A4. After the block is parsed, the key information of the block is extracted, including block hash, block height, block timestamp and transaction information, and stored in the database module so that the front-end service module can quickly query and display it.

[0044] Technical effects and advantages of the present invention:

[0045] The present invention adopts a dual-channel data processing mechanism: two parallel data processing channels are designed: the uplink data stream and the synchronization data stream. The processing requirements of street management data are diverse. By distinguishing the flow direction and processing mode of data, the different requirements of uplink and synchronization are effectively solved to ensure the real-time and consistency of data.

[0046] Multi-level data inspection mechanism: Double data inspection is introduced in the process of data on-chain, with preliminary inspection and in-depth inspection performed on the backend service and on-chain SDK respectively to ensure the accuracy and standardization of on-chain data; the multi-level data inspection mechanism improves the reliability of on-chain data and meets the needs of high-security data application scenarios;

[0047] Bidirectional synchronization between blockchain and relational database: Bidirectional synchronization between on-chain data and database module is achieved through the blockchain gateway module, which means that not only can local data be uploaded to the chain, but also the on-chain consensus data can be parsed and stored in the database module for quick query; this bidirectional synchronization mechanism improves data accessibility and operational efficiency, making it easier for users to quickly query key information of on-chain data at the front end, greatly improving user experience;

[0048] Data classification and hierarchical chain-uploading for street governance scenarios: In response to the multi-type data needs of street governance, an innovative data hierarchical chain-uploading solution is introduced; different levels of data adopt different chain-uploading strategies according to their importance, confidentiality, and real-time requirements, which effectively improves the system's ability to process complex data; data hierarchical chain-uploading not only improves the efficiency of data management, but also provides a reference for the promotion of this solution in other areas of urban governance in the future.

[0049] Further features and advantages of the present invention will become apparent from the following detailed description of exemplary embodiments of the present invention with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] Figure 1 It is a schematic diagram of the system structure provided by the present invention;

[0051] Figure 2 It is a schematic diagram of the data uplink process provided by the present invention;

[0052] Figure 3 It is a schematic diagram of the data synchronization process provided by the present invention. DETAILED DESCRIPTION

[0053] In order to make the purpose, technical scheme and advantages of the present invention clearer, the present invention is further described in detail below in conjunction with specific embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0054] like Figure 1 As shown, the blockchain-based digital street governance data intelligent grading system provided by the embodiment of the present invention includes a front-end service module, an agent module, a back-end service module, a message queue module, a blockchain gateway module, a blockchain underlying network module and a database module, wherein:

[0055] The front-end service module is used for users to access and manage on-chain data;

[0056] The proxy module uses the Nginx cluster to proxy the requests of the front-end service module, supporting load balancing and high availability;

[0057] The backend service module is used for data diversion and processing, including two main processing flows: uplink data flow and synchronization data flow;

[0058] The message queue module is used to realize asynchronous data transmission and ensure the real-time data upload and synchronization;

[0059] The blockchain gateway module is used to monitor the data in the message queue and is responsible for packaging, decoding and pushing the data to the underlying blockchain network;

[0060] The underlying network module of the blockchain is responsible for the consensus processing of data to ensure that the data cannot be tampered with;

[0061] The database module is used to store key information of the blockchain, which is convenient for fast back-end query and front-end display.

[0062] In this embodiment, preferably, the front-end service module includes Web services and H5 services. The front-end service module is used to display various types of street governance data, including street events, street information status and statistical analysis. The front-end service module interacts with the back-end service module through HTTP requests. The back-end service module is used to return corresponding request history data. The front-end service module is used to upload the newly added data information to the underlying network module of the blockchain;

[0063] It should be noted that Web services and H5 services make it easy for users to access, and the front-end service module interacts with the back-end service module through HTTP requests, and the back-end service module returns the corresponding data to ensure that users can obtain relevant information about street management in real time.

[0064] In this embodiment, preferably, the proxy module mainly implements load balancing and reverse proxy through the Nginx cluster. All requests of the front-end service modules are load-balancedly distributed to the cluster of the back-end service module through the Nginx cluster. The configuration of the Nginx cluster supports custom routing strategies, and forwards the Web service and H5 service traffic to the corresponding clusters of the back-end service modules respectively. At the same time, the Nginx cluster performs IP whitelist filtering and HTTPS encryption on external access;

[0065] It should be noted that the proxy module is mainly used for load balancing and reverse proxy, and the Nginx cluster ensures the stability of the system under high concurrency, and can achieve secure processing of external access to improve access security.

[0066] In this embodiment, preferably, the back-end service module mainly processes user requests and realizes hierarchical data on-chain and on-chain data synchronization; the back-end service module is deployed in a cluster mode, and the core functional modules of the back-end service module include data verification, on-chain processing and event monitoring.

[0067] Data verification performs preliminary verification on the on-chain data submitted by the user and selects an appropriate on-chain strategy based on the data level;

[0068] For highly confidential data, stricter verification and encryption measures are adopted for on-chain processing; for data with higher real-time requirements, on-chain processing is given priority so that the data can be uploaded to the underlying network module of the blockchain in a timely manner;

[0069] The backend service module monitors new messages in the message queue in real time through event monitoring, including on-chain data and synchronized on-chain data. According to the type of message, the backend service module will process it separately to ensure the real-time and consistency of the data flow;

[0070] It should be noted that the back-end service module is the core data processing unit of the system. The back-end service module is deployed in cluster mode to ensure high availability and system performance. For highly confidential data, stricter verification and encryption measures are taken. For data with higher real-time requirements, the data is stored in the underlying network module of the blockchain in a timely manner. According to the type of message, the back-end service will process it separately to ensure the real-time and consistency of the data flow.

[0071] In this embodiment, preferably, the message queue module is used for asynchronous transmission of on-chain data and off-chain data, and the message queue module adopts Kafka or RabbitMQ message queue service; the data transmitted in the message queue module is divided into on-chain data and on-chain data, and the message queue module plays the role of data caching and asynchronous transmission in the two data flows;

[0072] The on-chain data is used to enter the message queue module after the back-end service module completes the verification and format conversion of the on-chain data; the blockchain gateway module monitors the data in the message queue module. When the blockchain gateway module detects that new on-chain data is generated, the message queue module immediately pulls and packages the data, and then packages the data by level to the blockchain underlying network module to complete the blockchain network consensus;

[0073] The on-chain data pushes the newly generated block data to the message queue module through the blockchain gateway module, so that the backend service module can monitor and pull it, thereby realizing the real-time synchronization and persistence of the on-chain data;

[0074] It should be noted that the asynchronous transmission of on-chain data and off-chain data is carried out through the message queue module, and data caching and asynchronous transmission of on-chain data and on-chain data are realized, which facilitates the hierarchical packaging of data to the blockchain underlying network module to complete the blockchain network consensus, and realize the real-time synchronization and persistence of on-chain data.

[0075] In this embodiment, preferably, the blockchain gateway module is used to connect the message queue module with the blockchain gateway module, and the blockchain gateway module includes message monitoring and consensus data notification:

[0076] The message monitoring is used for the blockchain gateway module to continuously monitor the new data in the message queue module. The message queue module will pull and decode the new on-chain data, and then package the on-chain data into blocks and send them to the blockchain underlying network module for consensus node processing;

[0077] The consensus data notification is used to push the consensus data of the completed consensus operation and generated new blocks to the blockchain gateway module. After receiving the consensus notification, the blockchain gateway module pushes the new block to the message queue module for further processing and storage;

[0078] It should be noted that the blockchain gateway module is the key component that connects the message queue module and the blockchain gateway module. It is responsible for data packaging and on-chain consensus processing, and realizes the pulling and decoding of new data for consensus node processing, and facilitates further processing and storage.

[0079] In this embodiment, preferably, the blockchain underlying network module is used to upload the street governance data to the chain and perform consensus operations, and the blockchain underlying network module adopts the Raft consensus mechanism;

[0080] The underlying network module of the blockchain contains detailed records of street governance data, including data sources, data levels and event type information;

[0081] It should be noted that the underlying network module of the blockchain is the core data storage and consensus platform, responsible for uploading street governance data to the blockchain and performing consensus operations. In order to adapt to the diversity of street governance data and the requirements of high concurrent access, the underlying network module of the blockchain adopts the Raft consensus mechanism to achieve reliable consensus between nodes to ensure the security and consistency of the data on the chain; the detailed record of street governance data facilitates traceability and non-tampering, and the data will be recorded in the blockchain ledger for subsequent query and audit.

[0082] In this embodiment, preferably, the database module is used to store key information of on-chain data, and the back-end service module parses and extracts key data fields, including block hash, block height, block timestamp and transaction information, according to the monitored new consensus block, and then stores the data in the database module;

[0083] The front-end service module is used to access and query the historical data on the chain in the database module, and display the real-time dynamic information of street governance.

[0084] It should be noted that the database module is used to store key information of on-chain data for quick query and display by the front end. The back-end service will parse and extract key data fields based on the new consensus block monitored, and then store these data in the database module for quick query. It can efficiently access and query on-chain historical data and display real-time dynamic information of street governance, effectively improving the system's data query performance and ensuring that users can obtain the latest governance data in real time.

[0085] refer to Figure 2-3 , a digital street governance data intelligent grading method based on blockchain,

[0086] It includes two data flows to ensure the intelligent and hierarchical uploading and real-time synchronization of street governance data, including the data uploading process and the data synchronization process;

[0087] The steps of data on-chain process are as follows:

[0088] S1, the front-end service module request is forwarded to the back-end service module through the Nginx cluster proxy of the proxy module;

[0089] S2. The backend service module performs basic checks on the data, including data format and field legitimacy, to ensure the initial integrity of the data;

[0090] S3. The backend service module calls the on-chain SDK service module to further check and transform the data to make it conform to the coding specifications of the underlying network module of the blockchain, using multi-threading.

[0091] S4. The on-chain SDK service module will classify the processed data and push the important data that needs to be on-chain to the message queue module;

[0092] S5. The blockchain gateway module always monitors the message queue module. When new data is detected, it immediately pulls, decodes and packages the data.

[0093] S6. After the data is packaged, the blockchain gateway module sends it to the underlying blockchain network module, and the consensus node reaches consensus and uploads it to the blockchain;

[0094] In this embodiment, preferably, the steps of the data synchronization process are as follows:

[0095] A1. After the blockchain underlying network module nodes complete data consensus, they notify the blockchain gateway module of the consensus results;

[0096] A2. The blockchain gateway module pushes the new consensus block information to the message queue module;

[0097] A3. The backend service module monitors the message queue module, and after detecting new block information, it pulls and parses it;

[0098] A4. After the block is parsed, the key information of the block is extracted, including block hash, block height, block timestamp and transaction information, and stored in the database module so that the front-end service module can quickly query and display it.

[0099] The specific operation process of this application:

[0100] User request to upload data to the chain: The user submits a request to upload street governance data to the chain through the front-end page, and the Nginx cluster forwards the request to the back-end service;

[0101] Backend service module data check: The backend service module performs a preliminary check on the on-chain data. If it passes, it calls the on-chain SDK service module for secondary check and encoding;

[0102] Pushing chain data to the message queue module: The backend service module pushes the encoded data to the message queue module for the blockchain gateway module to monitor.

[0103] Blockchain gateway module data processing: The blockchain gateway module pulls the on-chain data from the message queue module, decodes and packages it, and submits the packaged blocks to the consensus of the blockchain underlying network module;

[0104] The nodes of the underlying network module of the blockchain complete consensus: the consensus node completes data consensus and generates a new block. After the blockchain gateway module monitors the consensus result, it pushes the new consensus block to the message queue module;

[0105] Backend service module synchronizes data: The backend service module monitors the new consensus block in the message queue, parses the block data and stores it in the database module for display and use by the frontend service module;

[0106] In summary, through the above implementation methods, an efficient, flexible and secure intelligent grading system for street governance data is constructed; the innovative dual-channel data stream design ensures the real-time nature of the data and the high availability of the system. The hierarchical data inspection mechanism improves the accuracy of data on the chain, and the event notification and message queue integration enhance the scalability of the system. This system provides intelligent and stable technical support for street governance in smart cities, and has broad application value and promotion prospects.

[0107] Finally, it should be noted that the above is only a preferred embodiment of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, it is still possible for those skilled in the art to modify the technical solutions described in the aforementioned embodiments or to make equivalent substitutions for some of the technical features therein. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. The blockchain-based digital street governance data intelligent grading system is characterized by: It includes front-end service module, proxy module, back-end service module, message queue module, blockchain gateway module, blockchain underlying network module and database module, among which: The front-end service module is used for users to access and manage on-chain data; The proxy module uses the Nginx cluster to proxy the requests of the front-end service module, supporting load balancing and high availability; The backend service module is used for data diversion and processing, including two main processing flows: uplink data flow and synchronization data flow; The message queue module is used to realize asynchronous data transmission and ensure the real-time data upload and synchronization; The blockchain gateway module is used to monitor the data in the message queue and is responsible for packaging, decoding and pushing the data to the underlying blockchain network; The underlying network module of the blockchain is responsible for the consensus processing of data to ensure that the data cannot be tampered with; The database module is used to store key information of the blockchain, which is convenient for fast back-end query and front-end display.

2. The blockchain-based digital street governance data intelligent grading system according to claim 1 is characterized by: The front-end service module includes Web services and H5 services. The front-end service module is used to display various types of street management data, including street events, street information status and statistical analysis. The front-end service module interacts with the back-end service module through HTTP requests. The back-end service module is used to return corresponding request history data. The front-end service module is used to upload the newly added data information to the underlying network module of the blockchain.

3. The blockchain-based digital street governance data intelligent grading system according to claim 1 is characterized by: The proxy module mainly implements load balancing and reverse proxy through the Nginx cluster. All requests of the front-end service modules are load-balancedly distributed to the cluster of the back-end service module through the Nginx cluster. The configuration of the Nginx cluster supports custom routing strategies, and forwards the Web service and H5 service traffic to the corresponding clusters of the back-end service modules respectively. At the same time, the Nginx cluster performs IP whitelist filtering and HTTPS encryption on external access.

4. The blockchain-based digital street governance data intelligent grading system according to claim 1 is characterized by: The back-end service module mainly processes user requests and realizes hierarchical data on-chain and on-chain data synchronization; the back-end service module is deployed in a cluster mode, and the core functional modules of the back-end service module include data verification, on-chain processing and event monitoring. Data verification performs preliminary verification on the on-chain data submitted by the user and selects an appropriate on-chain strategy based on the data level; For highly confidential data, stricter verification and encryption measures are adopted for on-chain processing; for data with higher real-time requirements, on-chain processing is given priority so that the data can be uploaded to the underlying network module of the blockchain in a timely manner; The backend service module monitors new messages in the message queue in real time through event monitoring, including on-chain data and synchronized on-chain data. According to the type of message, the backend service module will process it separately to ensure the real-time and consistency of the data flow.

5. The blockchain-based digital street governance data intelligent grading system according to claim 1 is characterized by: The message queue module is used for asynchronous transmission of on-chain data and off-chain data. The message queue module uses Kafka or RabbitMQ message queue services. The data transmitted in the message queue module is divided into on-chain data and on-chain data. The message queue module plays the role of data caching and asynchronous transmission in the two data flows. The on-chain data is used to enter the message queue module after the back-end service module completes the verification and format conversion of the on-chain data; the blockchain gateway module monitors the data in the message queue module. When the blockchain gateway module detects that new on-chain data is generated, the message queue module immediately pulls and packages the data, and then packages the data by level to the blockchain underlying network module to complete the blockchain network consensus; The on-chain data pushes the newly generated block data to the message queue module through the blockchain gateway module for the backend service module to monitor and pull, thereby realizing real-time synchronization and persistence of the on-chain data.

6. The blockchain-based digital street governance data intelligent grading system according to claim 1 is characterized by: The blockchain gateway module is used to connect the message queue module with the blockchain gateway module, and the blockchain gateway module includes message monitoring and consensus data notification: The message monitoring is used for the blockchain gateway module to continuously monitor the new data in the message queue module. The message queue module will pull and decode the new on-chain data, and then package the on-chain data into blocks and send them to the blockchain underlying network module for consensus node processing; The consensus data notification is used to push the consensus data of completing the consensus operation and generating a new block to the blockchain gateway module. After receiving the consensus notification, the blockchain gateway module pushes the new block to the message queue module for further processing and storage.

7. The blockchain-based digital street governance data intelligent grading system according to claim 1 is characterized by: The blockchain underlying network module is used to upload street governance data to the chain and perform consensus operations. The blockchain underlying network module adopts the Raft consensus mechanism; The blockchain underlying network module contains detailed records of street governance data, including data source, data level and event type information.

8. The blockchain-based digital street governance data intelligent grading system according to claim 1 is characterized by: The database module is used to store key information of on-chain data. The backend service module parses and extracts key data fields, including block hash, block height, block timestamp and transaction information, based on the monitored new consensus block, and then stores the data in the database module; The front-end service module is used to access and query historical data on the chain within the database module, and display real-time dynamic information of street management.

9. A blockchain-based digital street governance data intelligent grading method, characterized by: Used to implement the operation of any one of the modules in claims 1-8: It includes two data flows to ensure the intelligent and hierarchical uploading and real-time synchronization of street governance data, including the data uploading process and the data synchronization process; The steps of data on-chain process are as follows: S1, the front-end service module request is forwarded to the back-end service module through the Nginx cluster proxy of the proxy module; S2. The backend service module performs basic checks on the data, including data format and field legitimacy, to ensure the initial integrity of the data; S3. The backend service module calls the on-chain SDK service module to further check and transform the data to make it conform to the coding specifications of the underlying network module of the blockchain, using multi-threading. S4. The on-chain SDK service module will classify the processed data and push the important data that needs to be on-chain to the message queue module; S5. The blockchain gateway module always monitors the message queue module. When new data is detected, it immediately pulls, decodes and packages the data. S6. After the data is packaged, the blockchain gateway module sends it to the underlying blockchain network module, and the consensus node reaches consensus and uploads it to the chain.

10. The blockchain-based digital street governance data intelligent grading method according to claim 9 is characterized by: The steps of the data synchronization process are as follows: A1. After the blockchain underlying network module nodes complete data consensus, they notify the blockchain gateway module of the consensus results; A2. The blockchain gateway module pushes the new consensus block information to the message queue module; A3. The backend service module monitors the message queue module, and after detecting new block information, it pulls and parses it; A4. After the block is parsed, the key information of the block is extracted, including block hash, block height, block timestamp and transaction information, and stored in the database module so that the front-end service module can quickly query and display it.

Citation Information

Patent Citations

  • Gas inspection data chaining system based on block chain and using method thereof

    CN111125787A

  • Method for defining blockchain uplink data business protocol and application business protocol

    CN112380219A

  • Block chain data interaction method and system

    CN112860805A

  • Service processing method and device for multi-service component combination scene

    CN113947434A

  • Novel on-chain data high-speed retrieval model

    CN113961598A