A method, device, computer equipment and computer readable storage medium for data verification

By loading and updating data verification rules on the application side in real time, semi-centralized data verification is achieved, solving the instability and complexity problems of data verification in the existing technology, improving data availability and iteration efficiency, and supporting Customize needs and unify data collection and analysis.

CN112817953BActive Publication Date: 2024-08-27SHENZHEN YISHIHUOLALA TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110089029.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-01-22
Publication Date
2024-08-27
Estimated Expiration
2041-01-22

AI Technical Summary

Technical Problem

In the existing technology, data verification relies on centralized systems or third-party interfaces, which leads to instability and complexity, affects business availability, makes it difficult to flexibly respond to iteration and customization needs, and data collection and analysis are not unified.

Method used

Provide a semi-centralized SDK that loads data verification rules on the application side, updates and dynamically renders the rules in real time, directly performs data verification locally, collects user behavior and reports it in a unified format, reducing dependence on third-party systems .

Benefits of technology

It improves the availability and service capabilities of local data, simplifies the data verification process, reduces iteration risks, supports customized needs, and unifies data collection and analysis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112817953B
    Figure CN112817953B
Patent Text Reader

Abstract

The embodiments of the present application disclose a method, system, computer device and computer-readable storage medium for data verification, which extracts the commonality of data rules from historical data verification sets as pre-prepared data verification rules; updates the data verification rules in real time; manages the data verification rules, dynamically renders the data verification rules and performs data verification; obtains user usage behavior based on the data verification, and reports it in a unified format. The present invention designs a data verification rule configuration system and a method for dynamic data verification, and can move the rule verification to the location of the data, while providing a whitelist to meet customized needs, so that data verification can be implemented more simply and quickly.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of data processing, and in particular, to a method, apparatus, computer device, and computer-readable storage medium for data verification. Background Art

[0002] Generally speaking, if an application system needs to do data verification, it needs to rely on a centralized system or a third-party interface to implement data verification. However, this approach requires strong reliance on the support capabilities of third-party interfaces, and as the number of connected applications increases, the probability of third-party instability increases, thereby affecting the ability to provide high-availability services. From the above description, it can be seen that in the prior art, data verification is centralized.

[0003] With the development of Internet technology, various microservice systems have emerged, and most systems require core data verification. In the prior art, each application may have its own data verification system. When developing application software, developers also need to consider the development and maintenance of the data verification system. Different systems have different standards for data verification, which may bring risks such as data leakage. From the above description, it can be seen that in the prior art, the implementation of data verification is relatively complicated.

[0004] In Internet products, fast iteration is particularly important. When the verification rules change, developers also need to modify the logic code of data verification in one or more systems. For systems that require customized verification content, they can only hard-code it. As the system iteration progresses, maintenance is very complicated. If a system is modified incorrectly, it may bring the risk of denial of service to the entire business. This static method may slow down product iteration. From the above description, it can be seen that in the existing technology, data verification is not flexible enough.

[0005] In the Internet production environment, it is particularly important to recover user data. The data verification systems of the existing technical solutions have separate user usage behavior collection solutions, but the collected fields and data formats are not unified, which is not conducive to subsequent data analysis and data mining. Summary of the invention

[0006] The purpose of the embodiments of the present application is to provide a method, system, computer device and computer-readable storage medium for data verification, that is, to provide a semi-centralized SDK and its resources to be loaded into the application end, configure verification rules at the remote end, collect user usage behavior based on data verification and report it to the big data ecosystem, so that there is no need to rely heavily on third-party interfaces or systems, and local data can be dynamically verified directly, thereby improving the service capabilities of local data availability without affecting its own business.

[0007] One aspect of an embodiment of the present application provides a method for data verification, the method comprising:

[0008] Extract the commonality of data rules from the historical data verification set as pre-prepared data verification rules;

[0009] Updating the data verification rules in real time;

[0010] Managing the data verification rules, dynamically rendering the data verification rules and performing data verification;

[0011] The user's usage behavior is obtained based on the data verification and reported in a unified format.

[0012] One aspect of an embodiment of the present application further provides a data verification device, the device comprising:

[0013] An extraction module is used to extract the commonality of data rules from the historical data verification set as pre-prepared data verification rules;

[0014] An updating module, used for updating the data verification rules in real time;

[0015] A rendering module, used to manage the data verification rules, dynamically render the data verification rules and perform data verification;

[0016] The acquisition module is used to obtain user usage behavior based on the data verification and report it in a unified format.

[0017] One aspect of an embodiment of the present application provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above method when executing the computer program.

[0018] One aspect of an embodiment of the present application provides a computer-readable storage medium, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above method when executing the computer program.

[0019] The embodiments of the present application provide a method, system, computer device, and computer-readable storage medium for data verification, which extracts the commonalities of data rules from historical data verification sets as pre-prepared data verification rules; updates the data verification rules in real time; manages the data verification rules, dynamically renders the data verification rules, and performs data verification; obtains user usage behavior based on the data verification, and reports it in a unified format. The present application designs a data verification rule configuration system and a method for dynamic data verification, and can move rule verification to the location of the data, while providing a whitelist to meet customized needs, thereby enabling data verification to be implemented more simply and quickly. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1 A diagram schematically shows an application environment of a method for data verification according to an embodiment of the present application;

[0021] Figure 2 A flowchart of a method for data verification according to Embodiment 1 of the present application is schematically shown;

[0022] Figure 3 A block diagram schematically shows a data verification device according to the second embodiment of the present application;

[0023] Figure 4 The hardware architecture diagram of a computer device suitable for implementing the data verification method according to the third embodiment of the present application is schematically shown. DETAILED DESCRIPTION

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

[0025] It should be noted that the descriptions involving "first", "second", etc. in the embodiments of the present application are only for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by this application.

[0026] Figure 1 The following is a schematic diagram showing an environmental application of a method for data verification according to an embodiment of the present application.

[0027] The data verification rule configuration platform includes: rule management module, rule distribution module, and data recovery module. Data verification rule communication includes: Codis and Kafka. The data verification SDK includes: dynamic loading of rule plug-ins, dynamic data verification, user behavior reporting, and whitelist sharding. The SDK distribution system includes: version management and code release.

[0028] Data validation rule communication includes:

[0029] a) Configure the rules required by the application software on the data rule configuration platform, save them and then go online;

[0030] b) Verification rules are synchronized to Codis, and the daemon process monitors rule changes and modifies the changes synchronously.

[0031] Data verification SDK includes:

[0032] a) Parse the whitelist and perform sharding, cache it locally in the application, and monitor the expiration time of the whitelist in real time;

[0033] b) Read the verification rules from Codis, cache them locally in the application, and load the corresponding plug-in according to the verification rules;

[0034] Additionally, it includes:

[0035] a) The data filtered according to the rules is directly reported to Kafka;

[0036] b) Flink consumes Kafka to write data to Hive, and provides accurate data for data analysis or mining.

[0037] Embodiment 1

[0038] Figure 2 The flowchart of the data verification method according to the first embodiment of the present application is schematically shown. It can be understood that the present method embodiment can be executed in a mobile terminal, and the flowchart of the present method embodiment is not used to limit the order of executing the steps.

[0039] like Figure 2 As shown, the data verification method may include steps S200 to S206, wherein:

[0040] Step S200, extracting commonalities of data rules from the historical data verification set as pre-prepared data verification rules;

[0041] Optionally, extracting commonalities of data rules from the historical data verification set as pre-prepared data verification rules includes:

[0042] Entering the pre-prepared data verification rules into the data rule configuration system;

[0043] The data parameters of the data verification rule configured by the user in the data rule configuration system are received.

[0044] Optionally, the receiving user configures data parameters of the data verification rule in the data rule configuration system, including:

[0045] Receive the user's manual or automatic online and offline operations, and perform dynamic data verification in accordance with the pre-prepared data verification rules.

[0046] Step S202, updating the data verification rules in real time;

[0047] Optionally, the real-time updating of the data verification rule includes:

[0048] The data verification rules are written into a distributed cache, a background process is enabled to monitor changes in the data verification rules, and the distributed cache is updated in quasi-real time.

[0049] Step S204, managing the data verification rules, dynamically rendering the data verification rules and performing data verification;

[0050] Optionally, managing the data verification rules, dynamically rendering the data verification rules and performing data verification includes:

[0051] Communicate with the data rule configuration system, parse the whitelist and process in slices to speed up resource loading, and dynamically render the data rules to complete related data verification.

[0052] Optionally, the communicating with the data rule configuration system includes:

[0053] Configure the verification rules required by the application software on the data rule configuration platform, save and then go online;

[0054] The verification rules are synchronized to the distributed cache, and the daemon process monitors the changes of the rules and synchronously modifies the changed content.

[0055] Optionally, the parsing of the whitelist and slicing processing to speed up resource loading, and the dynamic rendering of the data rules to complete relevant data verification include:

[0056] Parse the whitelist for sharding, cache it locally in the application, and monitor the expiration time of the whitelist in real time;

[0057] The verification rules are read from the distributed cache, cached locally in the application, and the corresponding plug-ins are loaded according to the verification rules.

[0058] Step S206, obtaining the user's usage behavior based on the data verification, and reporting it in a unified format.

[0059] Specifically, from the historical data verification set, the common characteristics of data rules are extracted as pre-prepared data verification rules.

[0060] Develop a data rule configuration system and enter the prepared data rules into the system to provide them to users. Users can also configure the required data verification rules in the system.

[0061] The rules in the system can be operated manually or automatically online and offline, and customized rules can be used to achieve dynamic data verification.

[0062] The online rules are written into the distributed cache (Codis), and the background process is enabled to monitor the changes of the rules and update the cache in quasi-real time.

[0063] The SDK implements plug-in management of data verification rules, communicates with the rule configuration system, parses the whitelist and processes in slices to speed up resource loading, and dynamically renders data rules to complete related data verification.

[0064] Based on the verification of data rules, user usage behaviors are collected and reported to Kafka in a unified format.

[0065] The embodiment of the present application provides a method for data verification, which extracts the commonality of data rules from historical data verification sets as pre-prepared data verification rules; updates the data verification rules in real time; manages the data verification rules, dynamically renders the data verification rules and performs data verification; obtains user usage behavior based on the data verification, and reports it in a unified format. The present application designs a data verification rule configuration system and a method for dynamic data verification, and can move the rule verification to the location of the data, while providing a whitelist to meet customized needs, thereby enabling data verification to be implemented more simply and quickly.

[0066] Embodiment 2

[0067] Figure 3 A block diagram of a data verification device according to Embodiment 2 of the present application is schematically shown, and the data verification device can be divided into one or more program modules, and one or more program modules are stored in a storage medium and executed by one or more processors to complete the embodiment of the present application. The program module referred to in the embodiment of the present application refers to a series of computer program instruction segments that can perform specific functions. The following description will specifically introduce the functions of each program module in this embodiment.

[0068] like Figure 3 As shown, the data verification device 300 may include an extraction module 310, an update module 320, a rendering module 330, and an acquisition module 340, wherein:

[0069] An extraction module 310 is used to extract commonalities of data rules from the historical data verification set as pre-prepared data verification rules;

[0070] An updating module 320, used for updating the data verification rules in real time;

[0071] A rendering module 330, used to manage the data verification rules, dynamically render the data verification rules and perform data verification;

[0072] The acquisition module 340 is used to obtain the user's usage behavior according to the data verification and report it in a unified format.

[0073] Specifically, from the historical data verification set, the common characteristics of data rules are extracted as pre-prepared data verification rules.

[0074] Develop a data rule configuration system and enter the prepared data rules into the system to provide them to users. Users can also configure the required data verification rules in the system.

[0075] The rules in the system can be operated manually or automatically online and offline, and customized rules can be used to achieve dynamic data verification.

[0076] The online rules are written into the distributed cache (Codis), and the background process is enabled to monitor the changes of the rules and update the cache in quasi-real time.

[0077] The SDK implements plug-in management of data verification rules, communicates with the rule configuration system, parses the whitelist and processes in slices to speed up resource loading, and dynamically renders data rules to complete related data verification.

[0078] Based on the verification of data rules, user usage behaviors are collected and reported to Kafka in a unified format.

[0079] The embodiment of the present application provides a data verification device, which extracts the commonality of data rules from historical data verification sets as pre-prepared data verification rules; updates the data verification rules in real time; manages the data verification rules, dynamically renders the data verification rules and performs data verification; obtains user usage behavior based on the data verification, and reports it in a unified format. The present application designs a data verification rule configuration system and a method for dynamic data verification, and can move the rule verification to the location of the data, while providing a whitelist to meet customized needs, thereby enabling data verification to be implemented more simply and quickly.

[0080] Embodiment 3

[0081] Figure 4 The hardware architecture diagram of a computer device suitable for implementing the data verification method according to the third embodiment of the present application is schematically shown.

[0082] In this embodiment, the computer device 400 can be used as a provider network or a component of a provider network. The computer device 400 can be, for example, a virtual machine host process and one or more virtual machine instances, or a rack server, a blade server, a tower server or a cabinet server (including an independent server, or a server cluster consisting of multiple servers), etc.

[0083] In this embodiment, the computer device 400 can also be used as a mobile terminal or a component of a mobile terminal. When the computer device 400 is a mobile terminal or a component of a mobile terminal, the computer device 400 can be a smart phone, a computer, a projector, a set-top box, etc.

[0084] In this embodiment, the computer device 400 is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions. Figure 4 As shown, the computer device 400 includes at least but is not limited to: a memory 410, a processor 420, and a network interface 430 which can be communicatively linked to each other via a system bus.

[0085] in:

[0086] The memory 410 includes at least one type of computer-readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, optical disk, etc. In some embodiments, the memory 410 can be an internal storage module of the computer device 400, such as a hard disk or memory of the computer device 400. In other embodiments, the memory 410 can also be an external storage device of the computer device 400, such as a plug-in hard disk equipped on the computer device 4, a smart memory card (Smart Media Card, referred to as SMC), a secure digital (Secure Digital, referred to as SD) card, a flash card (FlashCard), etc. Of course, the memory 410 can also include both the internal storage module of the computer device 4 and its external storage device. In this embodiment, the memory 410 is generally used to store the operating system and various application software installed on the computer device 4, such as the program code of the data verification method, etc. In addition, the memory 410 can also be used to temporarily store various types of data that have been output or are to be output.

[0087] In some embodiments, the processor 420 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chip. The processor 420 is generally used to control the overall operation of the computer device 400, such as performing control and processing related to data interaction or communication with the computer device 400. In this embodiment, the processor 420 is used to run the program code stored in the memory 410 or process data.

[0088] The network interface 430 may include a wireless network interface or a wired network interface, and the network interface 430 is generally used to establish a communication link between the computer device 400 and other computer devices. For example, the network interface 430 is used to connect the computer device 400 to an external terminal through a network, and to establish a data transmission channel and a communication link between the computer device 400 and the external terminal. The network may be a wireless or wired network such as an intranet, the Internet, the Global System of Mobile communication (GSM), Wideband Code Division Multiple Access (WCDMA), 4G network, 5G network, Bluetooth, Wi-Fi, etc.

[0089] It should be pointed out that Figure 4 Only a computer device having components 410 - 430 is shown, but it should be understood that implementing all of the components shown is not a requirement, and more or fewer components may alternatively be implemented.

[0090] In this embodiment, the data verification method stored in the memory 410 can also be divided into one or more program modules and executed by one or more processors (processor 420 in this embodiment) to complete the present application.

[0091] Embodiment 4

[0092] This embodiment further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the data verification method in the embodiment are implemented.

[0093] In this embodiment, the computer-readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, optical disk, etc. In some embodiments, the computer-readable storage medium can be an internal storage unit of a computer device, such as a hard disk or memory of the computer device. In other embodiments, the computer-readable storage medium can also be an external storage device of a computer device, such as a plug-in hard disk equipped on the computer device, a smart memory card (Smart Media Card, referred to as SMC), a secure digital (Secure Digital, referred to as SD) card, a flash card, etc. Of course, the computer-readable storage medium can also include both the internal storage unit of the computer device and its external storage device. In this embodiment, the computer-readable storage medium is generally used to store the operating system and various application software installed on the computer device, such as the program code of the data verification method in the embodiment, etc. In addition, the computer-readable storage medium can also be used to temporarily store various types of data that have been output or are to be output.

[0094] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A method for data verification, characterized in that: The method comprises: Extract the commonality of data rules from the historical data verification set as pre-prepared data verification rules; Updating the data verification rules in real time; Managing the data verification rules, dynamically rendering the data verification rules and performing data verification; Obtain user usage behavior based on the data verification and report it in a unified format; The managing the data verification rules, dynamically rendering the data verification rules and performing data verification include: Communicate with the data rule configuration system, parse the whitelist and process in slices to speed up resource loading, dynamically render the data rules to complete relevant data verification; The whitelist parsing and slicing process speed up resource loading, and the data rules are dynamically rendered to complete relevant data verification, including: Parse the whitelist for sharding, cache it locally in the application, and monitor the expiration time of the whitelist in real time; Reading the verification rules from the distributed cache, caching them locally in the application, and loading the corresponding plug-in according to the verification rules; communicating with the data rule configuration system, including: Configure the verification rules required by the application software on the data rule configuration platform, save and then go online; The verification rules are synchronized to the distributed cache, and the daemon process monitors the changes of the rules and synchronously modifies the changed content; The data rule configuration platform includes: a rule management module, a rule distribution module and a data recovery module; Data verification rule communication includes: Codis and Kafka; The SDK distribution system includes: version management and code release; The data verification SDK includes: dynamic loading of rule plug-ins, dynamic data verification, user behavior reporting, and whitelist sharding, or any combination thereof; specifically, including: Parse the whitelist for sharding, cache it locally in the application, and monitor the expiration time of the whitelist in real time; Read the verification rules from Codis, cache them locally in the application, and load the corresponding plug-in according to the verification rules; The data filtered according to the rules is directly reported to Kafka; Flink consumes Kafka to write data to Hive, and provides accurate data for data analysis or mining.

2. The method according to claim 1, characterized in that: The extracting commonalities of data rules from the historical data verification set as pre-prepared data verification rules includes: Entering the pre-prepared data verification rules into the data rule configuration system; The data parameters of the data verification rule configured by the user in the data rule configuration system are received.

3. The method according to claim 2, characterized in that The receiving user configures data parameters of the data verification rule in the data rule configuration system, including: Receive the user's manual or automatic online and offline operations, and perform dynamic data verification in accordance with the pre-prepared data verification rules.

4. The method according to claim 1, characterized in that: The real-time updating of the data verification rules includes: The data verification rules are written into a distributed cache, a background process is enabled to monitor changes in the data verification rules, and the distributed cache is updated in quasi-real time.

5. A data verification device, characterized in that: The device comprises: An extraction module is used to extract the commonality of data rules from the historical data verification set as pre-prepared data verification rules; An updating module, used for updating the data verification rules in real time; A rendering module, used to manage the data verification rules, dynamically render the data verification rules and perform data verification; An acquisition module is used to obtain user usage behavior based on the data verification and report it in a unified format; The managing the data verification rules, dynamically rendering the data verification rules and performing data verification include: Communicate with the data rule configuration system, parse the whitelist and process in slices to speed up resource loading, dynamically render the data rules to complete relevant data verification; The whitelist parsing and slicing process speed up resource loading, and the data rules are dynamically rendered to complete relevant data verification, including: Parse the whitelist for sharding, cache it locally in the application, and monitor the expiration time of the whitelist in real time; Reading the verification rules from the distributed cache, caching them locally in the application, and loading the corresponding plug-in according to the verification rules; communicating with the data rule configuration system, including: Configure the verification rules required by the application software on the data rule configuration platform, save and then go online; The verification rules are synchronized to the distributed cache, and the daemon process monitors the changes of the rules and synchronously modifies the changed content; The data rule configuration platform includes: a rule management module, a rule distribution module and a data recovery module; Data verification rule communication includes: Codis and Kafka; The SDK distribution system includes: version management and code release; The data verification SDK includes: dynamic loading of rule plug-ins, dynamic data verification, user behavior reporting, and whitelist sharding, or any combination thereof; specifically, including: Parse the whitelist for sharding, cache it locally in the application, and monitor the expiration time of the whitelist in real time; Read the verification rules from Codis, cache them locally in the application, and load the corresponding plug-in according to the verification rules; The data filtered according to the rules is directly reported to Kafka; Flink consumes Kafka to write data to Hive, and provides accurate data for data analysis or mining.

6. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 4 are implemented.

7. A computer-readable storage medium having a computer program stored thereon, characterized in that: The computer program can be executed by at least one processor to enable the at least one processor to perform the steps of the method according to any one of claims 1 to 4.