Data rights information consistency verification system, method and device and storage medium

By writing the equity baseline data into the cache cluster and generating multi-level preheating cache data when the system starts up, and combining concurrent scheduling and coroutine processing of the data verification unit, the problem of increased latency caused by high-concurrency verification requests is solved, and more efficient request processing and throughput are achieved.

CN123138259APending Publication Date: 2026-11-20SHANGHAI JIAOTONG UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611206741.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-10
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

When users of massive amounts of data simultaneously initiate high-concurrency verification requests, existing technologies lead to increased latency, impacting business stability.

Method used

The cache preheating unit writes the equity benchmark data into the cache cluster when the system starts up, generating multi-level preheating cache data. The concurrent scheduling unit allocates processing coroutines for verification requests. The data verification unit directly obtains the target benchmark data from the multi-level preheating cache data for consistency verification, reducing repeated queries to the database.

Benefits of technology

It effectively avoids database overload during cold starts, improves the parallel efficiency of request processing, reduces request response latency, and enhances the system's concurrent throughput.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123138259A_ABST
    Figure CN123138259A_ABST
Patent Text Reader

Abstract

The application provides a data right information consistency verification system, method and device and a storage medium, relates to the technical field of computers, and is used for reducing time delay and improving concurrent throughput capacity. The method comprises the following steps: a cache preheating unit is used for writing right reference data into a cache cluster, and multi-level preheated cache data is generated; the right reference data is reference data for consistency verification which is disclosed in advance; and the multi-level preheated cache data is cache records with different cache invalidation policies. A request receiving unit is used for acquiring verification request data; the verification request data comprises data identification and to-be-verified right data. A concurrent scheduling unit is used for allocating corresponding processing coroutines to the verification request data and determining a target processing coroutine. A data verification unit is used for acquiring target reference data corresponding to the data identification from the multi-level preheated cache data through the target processing coroutine. The data verification unit is used for generating verification result data according to the to-be-verified right data and the target reference data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of computer technology, and in particular to a data rights information consistency verification system, method, apparatus and storage medium. Background Technology

[0002] With the rapid development of data elements, the confirmation and verification of data rights have become crucial links in data sharing and trading. Data rights issuance and verification platforms typically release data rights information to the public through open queries. Data users, during sharing, access, and secondary development, need to verify the authenticity of the data they hold and the validity of the corresponding rights in real time. Therefore, they must initiate verification requests to the platform, comparing their locally held data with the benchmark information released by the platform to determine whether the data is authentic and whether the rights are valid.

[0003] Currently, after receiving a request, the platform can perform a query operation, retrieve the corresponding published benchmark information from the database, compare it item by item, and return the verification result. This method works normally when the number of data users is small and the request volume is low. However, as the usage of data elements increases, when a large number of data users simultaneously initiate high-concurrency verification requests, it will lead to increased latency, thereby affecting the stability of the business. Summary of the Invention

[0004] This invention provides a data rights information consistency verification system, method, apparatus, and storage medium to solve the defect in the prior art that the latency will increase when a large number of data users simultaneously initiate high-concurrency verification requests, thereby reducing latency and improving concurrent throughput.

[0005] This invention provides a data rights information consistency verification system, which includes the following units.

[0006] The cache preheating unit is used to write the equity baseline data into the cache cluster and generate multi-level preheated cache data. The equity baseline data is pre-published reference data used for consistency verification, and the multi-level preheated cache data is cache record with different cache invalidation policies. The request receiving unit is used to obtain verification request data, which includes data identifier and rights data to be verified. The concurrent scheduling unit is used to allocate corresponding processing coroutines to the verification request data and determine the target processing coroutine; The data verification unit is used to obtain the target baseline data corresponding to the data identifier from the multi-level preheating cache data through the target processing coroutine; The data verification unit is used to generate verification result data based on the rights and interests data to be verified and the target benchmark data.

[0007] In some embodiments, the cache preheating unit is used for: Extract the first equity benchmark data and the second equity benchmark data; According to the first invalidation strategy, the first equity baseline data is written into the cache cluster to generate the first-level preheat cache data. The first invalidation strategy is a permanent cache strategy. According to the second failure strategy, the second equity baseline data is written into the cache cluster to generate the second-level preheat cache data. The second failure strategy is a timed refresh strategy.

[0008] In some embodiments, the data verification unit is configured to: Detect whether there is target baseline data corresponding to the data identifier in the multi-level preheating cache data; If the target baseline data is not found in the multi-level preheating cache data, the target database connection is obtained through the preset connection pool, which is a set of database connections that are pre-created and reused. Retrieve target baseline data from persistent storage nodes via a target database connection; Write the target baseline data into the cache cluster; Based on the rights and interests data to be verified and the target benchmark data, the verification result data is generated.

[0009] In some embodiments, the data verification unit is configured to: Detect the connectivity status of the cache cluster; If the connectivity status is unavailable, then read operations on the cache cluster will be blocked. Obtain a connection to the target database using a pre-defined connection pool; Retrieve target baseline data from persistent storage nodes via a target database connection; Based on the rights and interests data to be verified and the target benchmark data, the verification result data is generated.

[0010] In some embodiments, the concurrent scheduling unit is configured to: Create corresponding coroutine pools in multiple worker processes; Extract the current load status data of each worker process. The load status data is used to characterize the number of concurrent connections and resource utilization within the process. The target worker process is determined from multiple worker processes based on load status data; Select an idle coroutine from the coroutine pool of the target worker process as the target processing coroutine.

[0011] In some embodiments, the data verification unit is configured to: Compare the content of each field in the rights and interests data to be verified with the content of each field in the target benchmark data, and generate field comparison results; Verify whether the current status information of the target benchmark data meets the preset validity conditions, and generate a status verification result. The current status information includes the revocation status, the frozen status, and the expired status. Based on the field comparison results and the status verification results, generate verification result data.

[0012] The present invention also provides a method for verifying the consistency of data rights information, comprising the following steps.

[0013] Write the equity baseline data into the cache cluster to generate multi-level pre-warm cache data. The equity baseline data is pre-published reference data used for consistency verification, and the multi-level pre-warm cache data is cache record with different cache invalidation policies. Obtain verification request data, which includes data identifier and rights data to be verified; To verify the data request, a corresponding processing coroutine is allocated, and the target processing coroutine is determined. The target processing coroutine retrieves the target baseline data corresponding to the data identifier from the multi-level preheating cache data; Based on the rights and interests data to be verified and the target benchmark data, the verification result data is generated.

[0014] The present invention also provides a data rights information consistency verification device, comprising the following modules: The processing module is used to write the equity benchmark data into the cache cluster and generate multi-level pre-warm cache data. The equity benchmark data is pre-published reference data used for consistency verification, and the multi-level pre-warm cache data is cache records with different cache invalidation policies. The acquisition module is used to acquire verification request data, which includes data identifiers and rights data to be verified. The processing module is also used to allocate corresponding processing coroutines for verification request data and determine the target processing coroutine; The processing module is also used to obtain target baseline data corresponding to the data identifier from multi-level preheating cache data through the target processing coroutine; The processing module is also used to generate verification result data based on the rights and interests data to be verified and the target benchmark data.

[0015] The present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement any of the data rights information consistency verification methods described above.

[0016] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements any of the data rights information consistency verification methods described above.

[0017] The present invention also provides a computer program product, including a computer program, which, when executed by a processor, implements any of the data rights information consistency verification methods described above.

[0018] The data rights information consistency verification system, method, apparatus, and storage medium provided by this invention proactively writes rights benchmark data into a cache cluster and generates multi-level pre-warmed cache data with different invalidation strategies during system startup through a cache preheating unit. This effectively avoids instantaneous overload caused by a large number of requests penetrating to the database during cold starts. Simultaneously, by leveraging a concurrent scheduling unit to allocate corresponding processing coroutines to each verification request, the automatic switching of coroutines during input / output waiting can be fully utilized to improve the parallel efficiency of request processing. Based on this, the data verification unit directly obtains target benchmark data from the multi-level pre-warmed cache data through the target processing coroutine for consistency verification, significantly reducing the number of repeated database queries, thereby reducing request response latency and improving the system's concurrent throughput. Attached Figure Description

[0019] To more clearly illustrate the technical solutions in this invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0020] Figure 1 This is a system architecture diagram of the data rights information consistency verification system provided by the present invention.

[0021] Figure 2 This is a flowchart illustrating the data rights information consistency verification method provided by the present invention.

[0022] Figure 3 This is a schematic diagram of the data rights information consistency verification device provided by the present invention.

[0023] Figure 4 This is a schematic diagram of the structure of the electronic device provided by the present invention. Detailed Implementation

[0024] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.

[0025] The terms “comprising” and “having”, and any variations thereof, used in the description of this invention are intended to cover a non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or modules is not limited to the steps or modules listed, but may optionally include other steps or modules not listed, or may optionally include other steps or modules inherent to such processes, methods, products, or apparatus.

[0026] Furthermore, in this invention, the terms "exemplary" or "for example" are used to indicate that something is being described as an example, illustration, or illustration. Any embodiment or design described as "exemplary" or "for example" in this invention should not be construed as being more preferred or advantageous than other embodiments or designs. Specifically, the use of terms such as "exemplary" or "for example" is intended to present concepts in a concrete manner.

[0027] The following is combined with Figures 1 to 4 This invention describes a data rights information consistency verification system, method, apparatus, and storage medium.

[0028] like Figure 1 As shown, this invention provides a data rights information consistency verification system, which includes: a cache preheating unit 101, a request receiving unit 102, a concurrent scheduling unit 103, and a data verification unit 104.

[0029] The cache preheating unit 101 is used to write the equity benchmark data into the cache cluster to generate multi-level preheated cache data. The equity benchmark data is pre-published reference data used for consistency verification, and the multi-level preheated cache data consists of cache records with different cache invalidation policies.

[0030] The request receiving unit 102 is used to acquire verification request data, which includes a data identifier and rights data to be verified. The concurrent scheduling unit 103 is used to allocate corresponding processing coroutines to the verification request data and determine the target processing coroutine.

[0031] The data verification unit 104 is used to obtain target baseline data corresponding to the data identifier from the multi-level preheating cache data through the target processing coroutine, and generate verification result data based on the rights data to be verified and the target baseline data.

[0032] The cache preheating unit 101, the request receiving unit 102, the concurrency scheduling unit 103, and the data verification unit 104 work together in sequence. The cache preheating unit 101 completes data loading during the system startup phase, the request receiving unit 102 receives external verification requests during the runtime phase, the concurrency scheduling unit 103 allocates coroutines to the received requests, and the data verification unit 104 executes specific consistency verification logic and returns the verification result.

[0033] In one possible implementation, the cache preheating unit 101 actively writes the equity baseline data in the persistent storage node into the cache cluster in batches when the system starts up, generating multi-level preheating cache data.

[0034] For example, the rights baseline data includes various baseline fields of data rights information, such as data ID, data name, rights holder, certificate hash, authorization status, version information, validity period, and usage conditions. The cache cluster can be implemented using a Redis cluster. The verification request data is the data carried in the consistency verification request initiated by the data user.

[0035] Among them, the data identifier is used to uniquely identify a piece of data, and the rights data to be verified is the rights field to be verified corresponding to the data held locally by the data user. Different cache invalidation strategies for multi-level pre-warming cached data include: permanent cache strategy and timed refresh strategy, and the specific strategy is configured according to the differences in the data change frequency of data types.

[0036] In one possible implementation, when the target processing coroutine retrieves target baseline data from the multi-level preheating cache data, it uses the data identifier as the cache key for lookup. If the cache is hit, the corresponding target baseline data is retrieved directly. After retrieving the target baseline data, the data verification unit 104 compares the content of each field in the rights data to be verified with the content of each field in the target baseline data item by item, and performs validity verification in conjunction with the current status information of the target baseline data, finally generating verification result data. The verification result data is used to indicate whether the consistency verification passes or fails.

[0037] Based on the above technical solution, the cache preheating unit proactively writes the equity baseline data into the cache cluster and generates multi-level preheating cache data with different invalidation strategies during system startup. This effectively avoids the instantaneous overload caused by a large number of requests penetrating to the database during cold starts. Simultaneously, the concurrent scheduling unit allocates corresponding processing coroutines to each verification request, fully utilizing the automatic switching of coroutines during input / output waiting to improve the parallel efficiency of request processing. Furthermore, the data verification unit directly retrieves the target baseline data from the multi-level preheating cache data through the target processing coroutine for consistency verification, significantly reducing the number of repeated database queries, thereby reducing request response latency and improving the system's concurrent throughput.

[0038] In some embodiments, the cache preheating unit 101 is configured to: extract first equity baseline data and second equity baseline data; write the first equity baseline data into the cache cluster according to a first invalidation strategy to generate first-level preheating cache data, wherein the first invalidation strategy is a permanent cache strategy; and write the second equity baseline data into the cache cluster according to a second invalidation strategy to generate second-level preheating cache data, wherein the second invalidation strategy is a timed refresh strategy.

[0039] In one possible implementation, the cache preheating unit 101 executes a preheating script at system startup, extracting the first equity base data and the second equity base data from the persistent storage node in a preset order. First, the certificate hash data is loaded, then the public list data is loaded, and finally, the data object record data is loaded.

[0040] The first equity baseline data consists of data types whose content remains unchanged after data publication, including certificate hash data. The certificate hash is the hash value corresponding to the data object, used to verify the integrity and authenticity of the data object. This data remains fixed once published, therefore a permanent caching strategy is adopted, and it is not actively refreshed after being written to the cache cluster.

[0041] The second set of rights-based data consists of data types whose content may change, including data object record data and public list data. Data object record data includes fields such as data name, rights holder, authorization status, version information, validity period, and usage conditions. The public list is a publicly searchable directory of data objects organized according to certain pagination and sorting rules.

[0042] It should be understood that because the data object records and the public list data are subject to update operations such as addition, modification, and cancellation, a timed refresh strategy is adopted. For example, the cache validity period of the timed refresh strategy can be set to 60 seconds, that is, the cached data will automatically expire 60 seconds after being written, and when subsequent requests arrive, the system will reload the latest data from the persistent storage node and write it back to the cache.

[0043] In one possible implementation, during preheating, the cache preheating unit 101 writes certificate hash data to the cache cluster using the key format "cert_hash:{DataID}", data object records using the key format "data_assets:{DataID}", and public list using the key format "public_list:{Page}:{ID}:{name}". Here, DataID is the data object identifier, Page is the pagination page number, and ID and name are filter fields in the public list query conditions. After preheating, the cache cluster has preloaded the above three types of data, and the system is in a high cache hit state before receiving actual verification requests.

[0044] Understandably, by distinguishing between first and second equity benchmark data and writing them to the cache cluster using permanent caching and scheduled refresh strategies respectively, two levels of pre-warmed cache data can be generated. This allows for the configuration of matching invalidation strategies based on the differences in the data's change frequency. Using a permanent caching strategy for data that remains unchanged after publication avoids reloading this data after cache expiration, thereby reducing ineffective interactions between the cache and the database. Using a scheduled refresh strategy for data that may change can reduce database access pressure from real-time queries while ensuring eventual consistency between cached and database data.

[0045] In some embodiments, the data verification unit 104 is used to: detect whether there is target benchmark data corresponding to the data identifier in the multi-level preheating cache data; if there is no target benchmark data in the multi-level preheating cache data, obtain a target database connection through a preset connection pool, the preset connection pool being a set of database connections that are pre-created and reused; obtain the target benchmark data from the persistent storage node through the target database connection; write the target benchmark data into the cache cluster; and generate verification result data based on the rights data to be verified and the target benchmark data.

[0046] In one possible implementation, a pre-established connection pool pre-establishes database connections based on the configured minimum number of connections when the system starts. When subsequent requests arrive, the established idle connections are retrieved from the connection pool, processed, and then returned to the connection pool for reuse, thus avoiding the overhead of re-establishing a Transmission Control Protocol (TCP) connection for each request.

[0047] The data verification unit 104 queries the corresponding target baseline data from the cache cluster using the data identifier as the key through the target processing coroutine. If the corresponding cache record does not exist in the cache cluster, i.e., a cache miss occurs, the data verification unit 104 obtains an idle target database connection from the preset connection pool. The preset connection pool pre-creates and maintains a certain number of database connections when the system starts. The number of connections can be managed according to the minimum and maximum number of connections configured in the system. The data verification unit 104 initiates a query to the persistent storage node through the target database connection to obtain the complete rights baseline data corresponding to the data identifier as the target baseline data. After obtaining the target baseline data, the data verification unit 104 writes the target baseline data into the cache cluster according to the cache key format and invalidation policy corresponding to its data type, so that subsequent verification requests with the same data identifier can directly hit the cache. Afterwards, the data verification unit 104 generates verification result data based on the rights data to be verified and the target baseline data, and returns the target database connection to the preset connection pool for reuse in subsequent requests.

[0048] In one possible implementation, if the target baseline data corresponding to the data identifier already exists in the cache cluster, the data verification unit 104 can directly read the target baseline data from the cache cluster without accessing the preset connection pool and persistent storage nodes.

[0049] In this way, when the multi-level pre-warmed cache data fails to hit the target baseline data, a reused database connection is obtained from a pre-defined connection pool to access the persistent storage node. This avoids the additional overhead of re-establishing a database connection for each cache miss, thereby reducing system resource consumption and request processing latency. After obtaining the target baseline data, it is written back to the cache cluster, so that subsequent verification requests with the same data identifier can directly hit the cache, thus reducing the invalid access pressure on the database caused by repeated penetration queries.

[0050] In some embodiments, the data verification unit 104 is used to: detect the connectivity status of the cache cluster; if the connectivity status is unavailable, block the read operation of the cache cluster; obtain a target database connection through a preset connection pool; obtain target baseline data from the persistent storage node through the target database connection; and generate verification result data based on the rights data to be verified and the target baseline data.

[0051] In one possible implementation, the data verification unit 104 checks the connectivity status of the cache cluster before processing each verification request or periodically. The connectivity status indicates whether the cache cluster is accessible. The detection method may include sending a connectivity probe command or a Packet Internet Groper (PING) command to the cache cluster and determining the connectivity status based on the returned results.

[0052] If the connectivity is available, the data verification unit 104 reads the target baseline data from the cache cluster according to the normal process. If the connectivity is unavailable, i.e., the cache cluster fails or there is a network anomaly, the data verification unit 104 automatically blocks the read operation from the cache cluster to avoid request processing failure due to cache access anomalies. All verification requests skip the multi-level preheating cache data reading steps. At this time, the data verification unit 104 obtains a target database connection through a preset connection pool, retrieves the target baseline data from the persistent storage node through the target database connection, and then generates verification result data based on the rights data to be verified and the target baseline data. During the period when the cache cluster is unavailable, the data verification unit 104 does not perform the operation of writing the target baseline data back to the cache cluster. When the connectivity of the cache cluster is restored to an available state, the data verification unit 104 automatically resumes the normal process of reading the target baseline data from the cache cluster.

[0053] In this way, by detecting the connectivity status of the cache cluster and automatically blocking cache read operations when it becomes unavailable, request processing failures or long wait times due to cache anomalies can be avoided, thus ensuring the stable operation of the verification service. When the cache is unavailable, a database connection is directly obtained through a pre-defined connection pool to access the persistent storage node and retrieve the target baseline data. This allows for a seamless switch to direct database connection mode when the cache layer fails, ensuring uninterrupted verification services.

[0054] In some embodiments, the concurrent scheduling unit 103 is used to: create corresponding coroutine pools in multiple worker processes, extract the current load status data of each worker process, the load status data is used to characterize the number of concurrent connections and resource utilization rate within the process, determine the target worker process from multiple worker processes based on the load status data, and select an idle coroutine from the coroutine pool of the target worker process as the target processing coroutine.

[0055] In one possible implementation, the concurrent scheduling unit 103 creates multiple worker processes when the system starts up. Each worker process creates a coroutine pool containing a preset number of coroutines. The number of worker processes can be configured based on the number of CPU cores on the server; for example, the number of worker processes can be set to twice the number of CPU cores.

[0056] Among them, coroutines are lightweight user-space threads that can automatically relinquish execution rights and switch to other ready coroutines when waiting for input / output, thereby achieving efficient concurrent processing. Load status data includes the number of concurrent connections currently being processed by the worker process and the CPU resource utilization rate. The concurrent scheduling unit 103 extracts the load status data of each worker process according to a preset collection period, and determines the worker process with the lowest load from multiple worker processes as the target worker process based on the load status data.

[0057] In one possible implementation, the concurrent scheduling unit 103 can calculate the overall load score of each worker process. The overall load score is positively correlated with the number of concurrent connections and resource utilization. The worker process with the lowest overall load score is selected as the target worker process. After determining the target worker process, the concurrent scheduling unit 103 selects an idle coroutine from the coroutine pool of the target worker process as the target processing coroutine and assigns the verification request data to the target processing coroutine for processing. If there is no idle coroutine in the coroutine pool of the target worker process, the concurrent scheduling unit 103 waits until a coroutine finishes processing and is returned to the coroutine pool before assigning data.

[0058] In this way, by creating corresponding coroutine pools in multiple worker processes and extracting load status data from each process to understand its concurrent connections and resource utilization, the target worker process can be determined from multiple processes based on real-time load conditions, thus avoiding processing bottlenecks caused by concentrating requests on overloaded processes. Then, an idle coroutine is selected from the target worker process's coroutine pool as the target processing coroutine, fully utilizing the automatic switching of coroutines during input / output waiting to improve the parallelism of request processing within a single process.

[0059] In some embodiments, the data verification unit 104 is used to: compare the content of each field in the rights data to be verified with the content of each field in the target benchmark data, generate a field comparison result, verify whether the current status information of the target benchmark data meets the preset validity conditions, generate a status verification result, the current status information including revocation status, freeze status and expiration status, and generate verification result data based on the field comparison result and the status verification result.

[0060] In one possible implementation, the rights data to be verified includes each rights field corresponding to the data held locally by the data user, and the target benchmark data includes the published rights fields corresponding to the data object in the persistent storage node. The data verification unit 104 compares the content of each field in the rights data to be verified with the corresponding field content in the target benchmark data item by item.

[0061] For example, the comparison fields jointly included in the rights data to be verified and the target benchmark data may include: certificate hash, authorization status, version information, validity period, usage conditions, etc. The data verification unit 104 compares the above fields in turn to see if they are consistent. If all the comparison fields are consistent, the field comparison result is consistent; if any comparison field is inconsistent, the field comparison result is inconsistent.

[0062] The data verification unit 104 also verifies whether the current status information of the target reference data meets preset validity conditions. The current status information includes revocation status, freeze status, and expired status. The preset validity conditions are that the target reference data has not been revoked, frozen, or expired. If the current status information of the target reference data meets the preset validity conditions, the status verification result is valid; otherwise, the status verification result is invalid.

[0063] Then, the data verification unit 104 generates the final verification result data based on the field comparison results and the status verification results.

[0064] In one possible implementation, if the field comparison results are consistent and the status verification result is valid, then the verification result data is considered verified, indicating that the data held by the data user is genuine data published by the rights issuing and verification platform and that the rights are in a valid state. If the field comparison results are inconsistent or the status verification result is invalid, then the verification result data is considered verified unsuccessful, indicating that the data held by the data user is forged, altered, illegally circulated, or unusable.

[0065] Understandably, by comparing each field in the data to be verified against the target benchmark data to generate field comparison results, and simultaneously verifying whether the target benchmark data meets preset validity conditions, a comprehensive verification of data rights can be performed from two dimensions: data content consistency and the validity of rights status. This ensures that the data content has not been tampered with, while simultaneously identifying invalid rights statuses such as revoked, frozen, or expired rights, avoiding misjudgments caused by relying solely on field comparisons and ignoring status information.

[0066] Figure 2 This is a flowchart illustrating the data rights information consistency verification method provided by the present invention, as shown below. Figure 2 As shown, the method includes the following: Step 201: Write the equity benchmark data into the cache cluster to generate multi-level preheating cache data.

[0067] Among them, the equity benchmark data is pre-published reference data used for consistency verification, and the multi-level preheating cache data is cache records with different cache invalidation strategies.

[0068] The equity baseline data includes fields such as data object ID, data name, equity holder, certificate hash, authorization status, version information, validity period, and usage conditions. The cache cluster can be implemented using a Redis cluster. Different cache invalidation strategies include permanent caching and timed refresh strategies, configured specifically based on the data change frequency differences of the data types.

[0069] For example, the certificate hash data adopts a permanent caching strategy, while the data object record and public list data adopt a timed refresh strategy. The cache validity period of the timed refresh strategy can be set to 60 seconds.

[0070] In one possible implementation, a warm-up script is executed when the system starts up, which writes the equity baseline data in the persistent storage node to the cache cluster in batches. The warm-up script is executed in the following order: first, the certificate hash data is loaded, then the public list data is loaded, and finally the data object record data is loaded.

[0071] Step 202: Obtain verification request data.

[0072] The verification request data includes data identifiers and rights data to be verified.

[0073] Among them, the data identifier is used to uniquely identify a data object, and the rights data to be verified are the rights fields to be verified corresponding to the data held locally by the data user, including fields such as local certificate hash, authorization status, version information, validity period, and usage conditions.

[0074] In one possible implementation, the verification request data is the data carried in the consistency verification request submitted by the data user via a Hypertext Transfer Protocol (HTTP) GET request.

[0075] Step 203: Assign a corresponding processing coroutine to verify the request data and determine the target processing coroutine.

[0076] In one possible implementation, multiple worker processes are created upon system startup, each containing a pre-defined pool of coroutines. Upon receiving verification request data, the current load status data of each worker process is extracted. This load status data includes the number of concurrent connections currently being processed and the CPU resource utilization rate. Based on the load status data, the worker process with the lowest load is selected as the target worker process, and an idle coroutine is selected from the target worker process's coroutine pool as the target processing coroutine. When a coroutine is waiting for input / output, it automatically relinquishes its execution and switches to another ready coroutine.

[0077] Step 204: Obtain the target baseline data corresponding to the data identifier from the multi-level preheating cache data through the target processing coroutine.

[0078] In one possible implementation, the target processing coroutine queries the corresponding target baseline data from the cache cluster using the data identifier as the key. If the corresponding cache record exists in the cache cluster, the target baseline data is read directly from the cache cluster. If the corresponding cache record does not exist in the cache cluster, a target database connection is obtained through a preset connection pool. The target baseline data is then retrieved from the persistent storage node through the target database connection, and written to the cache cluster according to its corresponding invalidation policy. The preset connection pool is a set of database connections pre-created and maintained when the system starts. Database connections are pre-established according to the configured minimum number of connections when the system starts. After the request is processed, the connection is returned to the connection pool for reuse next time.

[0079] Step 205: Generate verification result data based on the rights and interests data to be verified and the target benchmark data.

[0080] In one possible implementation, the content of each field in the rights and interests data to be verified is compared item by item with the corresponding field content in the target benchmark data to generate field comparison results. The current status information of the target benchmark data is verified to ensure it meets preset validity conditions, generating a status verification result. Current status information includes revocation status, freeze status, and expired status. The preset validity conditions are that the target benchmark data has not been revoked, frozen, or expired. Verification result data is generated based on the field comparison results and status verification results. If the field comparison results are consistent and the status verification result is valid, the verification result data is considered verified successfully. If the field comparison results are inconsistent or the status verification result is invalid, the verification result data is considered verified unsuccessfully.

[0081] Based on the above technical solution, by writing the equity baseline data into the cache cluster to generate multi-level pre-warm cache data with different invalidation strategies, the system can be in a high cache hit state before receiving real requests, thereby effectively avoiding the overload risk caused by a large number of requests penetrating to the database during the cold start phase. After obtaining the verification request, which includes the data identifier and the equity data to be verified, a corresponding processing coroutine is assigned to it. The automatic switching of coroutines during input and output waiting can improve the parallel efficiency of request processing. By having the target processing coroutine directly obtain the target baseline data from the multi-level pre-warm cache data for consistency verification, the number of repeated database queries can be reduced, thereby effectively reducing request response latency and improving the system's concurrent throughput.

[0082] The data rights information consistency verification device provided by this invention is described below. The data rights information consistency verification device described below can be referred to in correspondence with the data rights information consistency verification method described above. It is understood that, in order to achieve the above functions, the electronic device includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should readily recognize that, based on the data rights information consistency verification method steps described in conjunction with the embodiments disclosed in this invention, this invention can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed by hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this invention.

[0083] Figure 3 This is a schematic diagram of the data rights information consistency verification device provided by the present invention, as shown below. Figure 3 As shown, the data rights information consistency verification device includes the following modules: processing module 301 and acquisition module 302.

[0084] Processing module 301 is used to write the equity benchmark data into the cache cluster and generate multi-level pre-warm cache data. The equity benchmark data is pre-published reference data used for consistency verification, and the multi-level pre-warm cache data is cache records with different cache invalidation strategies. The acquisition module 302 is used to acquire verification request data, which includes data identifier and rights data to be verified. The processing module 301 is also used to allocate corresponding processing coroutines for the verification request data and determine the target processing coroutine; Processing module 301 is also used to obtain target baseline data corresponding to the data identifier from multi-level preheating cache data through target processing coroutine; The processing module 301 is also used to generate verification result data based on the rights and interests data to be verified and the target benchmark data.

[0085] Figure 4 An example is a schematic diagram of the physical structure of an electronic device, such as... Figure 4 As shown, the electronic device may include: a processor 410, a communications interface 420, a memory 430, and a communication bus 440. The processor 410, communications interface 420, and memory 430 communicate with each other via the communication bus 440. The processor 410 can call logical instructions in the memory 430 to execute a data rights information consistency verification method. This method includes: writing rights baseline data into a cache cluster to generate multi-level pre-warmed cache data. The rights baseline data is pre-published reference data used for consistency verification, and the multi-level pre-warmed cache data consists of cache records with different cache invalidation policies. It also includes: obtaining verification request data, which includes a data identifier and rights data to be verified; allocating a corresponding processing coroutine to the verification request data and determining a target processing coroutine; obtaining target baseline data corresponding to the data identifier from the multi-level pre-warmed cache data through the target processing coroutine; and generating verification result data based on the rights data to be verified and the target baseline data.

[0086] Furthermore, the logical instructions in the aforementioned memory 430 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0087] On the other hand, the present invention also provides a computer program product, which includes a computer program that can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the data rights information consistency verification method provided by the above methods. This method includes: writing rights benchmark data into a cache cluster to generate multi-level pre-warmed cache data, where the rights benchmark data is pre-publicly available reference data for consistency verification, and the multi-level pre-warmed cache data consists of cache records with different cache invalidation policies; obtaining verification request data, which includes a data identifier and rights data to be verified; allocating a corresponding processing coroutine to the verification request data and determining a target processing coroutine; obtaining target benchmark data corresponding to the data identifier from the multi-level pre-warmed cache data through the target processing coroutine; and generating verification result data based on the rights data to be verified and the target benchmark data.

[0088] In another aspect, the present invention also provides a non-transitory computer-readable storage medium storing a computer program thereon. When executed by a processor, the computer program implements a data rights information consistency verification method provided by the methods described above. This method includes: writing rights baseline data into a cache cluster to generate multi-level pre-warmed cache data. The rights baseline data is pre-publicly available reference data for consistency verification, and the multi-level pre-warmed cache data consists of cache records with different cache invalidation policies. Acquiring verification request data, which includes a data identifier and rights data to be verified; allocating a corresponding processing coroutine to the verification request data and determining a target processing coroutine; obtaining target baseline data corresponding to the data identifier from the multi-level pre-warmed cache data through the target processing coroutine; and generating verification result data based on the rights data to be verified and the target baseline data.

[0089] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.

[0090] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.

[0091] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A data rights information consistency verification system, characterized in that, include: The cache preheating unit is used to write the equity benchmark data into the cache cluster and generate multi-level preheated cache data. The equity benchmark data is pre-published reference data used for consistency verification, and the multi-level preheated cache data is cache records with different cache invalidation strategies. A request receiving unit is used to obtain verification request data, the verification request data including a data identifier and rights data to be verified. The concurrent scheduling unit is used to allocate corresponding processing coroutines to the verification request data and determine the target processing coroutine; The data verification unit is used to obtain target baseline data corresponding to the data identifier from the multi-level preheating cache data through the target processing coroutine; The data verification unit is used to generate verification result data based on the rights and interests data to be verified and the target benchmark data.

2. The system according to claim 1, characterized in that, The cache preheating unit is used for: Extract the first equity benchmark data and the second equity benchmark data; The first equity baseline data is written into the cache cluster according to the first invalidation strategy to generate first-level preheat cache data. The first invalidation strategy is a permanent cache strategy. According to the second invalidation strategy, the second equity baseline data is written into the cache cluster to generate second-level preheating cache data. The second invalidation strategy is a timed refresh strategy.

3. The system according to claim 1, characterized in that, The data verification unit is used for: Detect whether the target baseline data corresponding to the data identifier exists in the multi-level preheating cache data; If the target baseline data is not found in the multi-level preheating cache data, a target database connection is obtained through a preset connection pool, which is a set of database connections that are pre-created and reused. The target baseline data is obtained from the persistent storage node through the target database connection; Write the target baseline data into the cache cluster; The verification result data is generated based on the rights and interests data to be verified and the target benchmark data.

4. The system according to claim 1, characterized in that, The data verification unit is used for: Detect the connectivity status of the cache cluster; If the connectivity status is unavailable, then the read operation of the cache cluster is blocked; Obtain a connection to the target database using a pre-defined connection pool; The target baseline data is obtained from the persistent storage node through the target database connection; The verification result data is generated based on the rights and interests data to be verified and the target benchmark data.

5. The system according to claim 1, characterized in that, The concurrent scheduling unit is used for: Create corresponding coroutine pools in multiple worker processes; Extract the current load status data of each of the aforementioned working processes. The load status data is used to characterize the number of concurrent connections and resource utilization within the process. The target worker process is determined from the plurality of worker processes based on the load status data; Select an idle coroutine from the coroutine pool of the target working process as the target processing coroutine.

6. The system according to claim 1, characterized in that, The data verification unit is used for: Compare the contents of each field in the data of rights to be verified with the contents of each field in the target benchmark data to generate field comparison results; Verify whether the current status information of the target benchmark data meets the preset validity conditions, and generate a status verification result. The current status information includes revocation status, freeze status, and expired status. The verification result data is generated based on the field comparison results and the status verification results.

7. A method for verifying the consistency of data rights information, characterized in that, include: The equity benchmark data is written into the cache cluster to generate multi-level pre-warm cache data. The equity benchmark data is pre-published reference data used for consistency verification, and the multi-level pre-warm cache data is cache record with different cache invalidation strategies. Obtain verification request data, which includes a data identifier and rights data to be verified; Assign a corresponding processing coroutine to the verification request data and determine the target processing coroutine; The target processing coroutine retrieves the target baseline data corresponding to the data identifier from the multi-level preheating cache data; Verification result data is generated based on the rights and interests data to be verified and the target benchmark data.

8. A data rights information consistency verification device, characterized in that, The device includes: The processing module is used to write the equity benchmark data into the cache cluster and generate multi-level pre-warm cache data. The equity benchmark data is pre-published reference data used for consistency verification, and the multi-level pre-warm cache data is cache records with different cache invalidation strategies. The acquisition module is used to acquire verification request data, which includes a data identifier and rights data to be verified. The processing module is also used to allocate a corresponding processing coroutine to the verification request data and determine the target processing coroutine; The processing module is further configured to obtain target baseline data corresponding to the data identifier from the multi-level preheating cache data through the target processing coroutine; The processing module is also used to generate verification result data based on the rights and interests data to be verified and the target benchmark data.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that, When the processor executes the computer program, it implements the data rights information consistency verification method as described in any one of claims 1 to 6.

10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the data rights information consistency verification method as described in any one of claims 1 to 6.