Data processing method and related device

By monitoring data changes and dynamically adjusting the data extraction and loading process, the problem of low efficiency when data changes in traditional methods is solved, and efficient data processing without manual intervention is achieved.

CN118733651APending Publication Date: 2024-10-01BANK OF CHINA
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410800816.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-20
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

Traditional data extraction and loading methods cannot dynamically adjust data changes, resulting in low real-time efficiency of the system in processing changing data, requiring technical personnel to manually intervene and change configurations.

Method used

By obtaining monitoring data from multiple data sources, using monitoring algorithms to determine data source change information, using predefined matching rules to select matching process templates from the process template database, constructing and executing data extraction and loading processes, and dynamically adjusting extraction and loading strategies. Enables dynamic adjustments without manual intervention.

Benefits of technology

It improves the real-time efficiency of the system when processing changing data, realizes dynamic adjustment of the data extraction and loading process, and reduces the need for technical personnel's intervention and configuration changes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118733651A_ABST
    Figure CN118733651A_ABST
Patent Text Reader

Abstract

The invention discloses a data processing method and a related device, which can be applied to the field of big data or finance. The method comprises the following steps: acquiring monitoring data from a plurality of data sources, determining data source change information for the monitoring data by adopting a monitoring algorithm, selecting a plurality of process templates matched with the data source change information from a process template database by adopting a predefined matching rule, and constructing a data extraction and loading process by utilizing the plurality of process templates, and executing the data extraction and loading process obtained by construction so as to complete the data extraction and loading process. According to the method and the device, the plurality of process templates are matched according to the data source change information, and the data extraction and loading process is constructed by utilizing the plurality of process templates, so that the data extraction and loading process is correspondingly and dynamically adjusted when the data is changed, and the whole process does not need manual intervention and configuration change by technicians, so that the data extraction and loading efficiency is improved. Therefore, the real-time efficiency of the system in processing continuously changing data is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a data processing method and related devices. Background Art

[0002] At present, the stock data and new data in the banking system are distributed and stored in various places in the form of databases, files in various formats (structured, semi-structured, unstructured), etc., and the data specifications and standards are not unified. When extracting and loading data, it usually involves extracting data from multiple data sources and loading the extracted data into the target database or application.

[0003] Traditional data extraction and loading methods are usually statically configured and predefined, requiring fixed configurations on data flows and extraction rules. When the data format of the data source changes or the data quality decreases, the traditional data extraction and loading process cannot be dynamically adjusted according to the data changes. At this time, technicians are required to manually intervene and change the configuration, resulting in low real-time efficiency of the system when processing constantly changing data. Summary of the invention

[0004] In view of the above problems, the present application provides a data processing method and related devices to realize the dynamic adjustment of data extraction and loading process when the data changes, and the whole process does not require manual intervention and configuration change by technicians, thereby improving the real-time efficiency of the system when processing constantly changing data. The specific scheme is as follows:

[0005] A data processing method, comprising:

[0006] Obtain monitoring data from multiple data sources;

[0007] Determine data source change information using a monitoring algorithm for the monitoring data;

[0008] Using predefined matching rules, select multiple process templates matching the data source change information from a process template database;

[0009] Using a plurality of the process templates to construct a data extraction and loading process;

[0010] Execute the data extraction and loading process.

[0011] Optionally, the use of a plurality of process templates to construct a data extraction and loading process includes:

[0012] According to the rules in each of the process templates, merging the multiple process templates into an initial data extraction and loading process;

[0013] In the initial data extraction and loading process, various operation steps and the association relationship between the operation steps are added to construct the data extraction and loading process.

[0014] Optionally, the operation steps include: an extraction step, a conversion step and a loading step.

[0015] Optionally, the executing the data extraction and loading process includes:

[0016] Dynamically adjusting the data extraction and loading strategy of the data extraction and loading process to obtain a data strategy, wherein the data strategy includes: updating the data extraction frequency, the data processing method and the data loading destination;

[0017] According to the data strategy, the data extraction and loading process is executed.

[0018] Optionally, executing the data extraction and loading process according to the data strategy includes:

[0019] Extracting the monitoring data from the plurality of data sources according to the data strategy;

[0020] Cleaning and formatting the extracted monitoring data to obtain target data;

[0021] The target data is loaded into a target database or data warehouse to complete the data loading process.

[0022] Optionally, the using a monitoring algorithm to determine the data source change information of the monitoring data includes:

[0023] The change information of the data format, data structure and data content is determined from the monitoring data to obtain the data source change information.

[0024] A data processing device, comprising:

[0025] An acquisition unit, used for acquiring monitoring data from multiple data sources;

[0026] a change information determining unit, configured to determine data source change information using a monitoring algorithm on the monitoring data;

[0027] A template selection unit, configured to select a plurality of process templates matching the data source change information from a process template database by using a predefined matching rule;

[0028] A process construction unit, used to construct a data extraction and loading process using a plurality of the process templates;

[0029] A process execution unit is used to execute the data extraction and loading process.

[0030] A computer program product includes computer-readable instructions. When the computer-readable instructions are executed on an electronic device, the electronic device implements the above-mentioned data processing method.

[0031] An electronic device comprises at least one processor and a memory connected to the processor, wherein:

[0032] The memory is used to store computer programs;

[0033] The processor is used to execute the computer program so that the electronic device can implement the data processing method described above.

[0034] A computer storage medium carries one or more computer programs. When the one or more computer programs are executed by an electronic device, the electronic device can implement the data processing method described above.

[0035] As can be seen from the above technical solutions, the present invention discloses a data processing method and related devices, which obtain monitoring data from multiple data sources, use a monitoring algorithm to determine data source change information for the monitoring data, use predefined matching rules, select multiple process templates that match the data source change information from the process template database, use multiple process templates to build a data extraction and loading process, and execute the constructed data extraction and loading process to complete the data extraction and loading process. The present invention achieves dynamic adjustment of the data extraction and loading process when the data changes by matching multiple process templates according to the data source change information and using multiple process templates to build a data extraction and loading process, and the entire process does not require manual intervention and configuration changes by technical personnel, thereby improving the real-time efficiency of the system when processing constantly changing data. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.

[0037] Figure 1 A schematic diagram of a system architecture provided for this application;

[0038] Figure 2 A schematic diagram of an optional hardware structure of a terminal 100 provided in this application;

[0039] Figure 3 A schematic diagram of the structure of a server 200 provided in this application;

[0040] Figure 4A flowchart of a data processing method provided in an embodiment of the present application;

[0041] Figure 5 A schematic diagram of a process for constructing a data extraction and loading process based on multiple process templates provided in an embodiment of the present application;

[0042] Figure 6 A flow chart of a method for executing a data extraction and loading process provided in an embodiment of the present application;

[0043] Figure 7 A flow chart of a method for executing a data extraction and loading process according to a data strategy provided in an embodiment of the present application;

[0044] Figure 8 A schematic diagram of the structure of a data processing device provided in an embodiment of the present application;

[0045] Fig. 9 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0046] It should be noted that the data processing method and related devices provided by the present invention can be used in the field of big data or finance. The above is only an example and does not limit the application field of the data processing method and related devices provided by the present invention.

[0047] The following describes the embodiments of the present application in conjunction with the drawings in the embodiments of the present application. The terms used in the implementation method section of the present application are only used to explain the specific embodiments of the present application, and are not intended to limit the present application.

[0048] The embodiments of the present application are described below in conjunction with the accompanying drawings. Those skilled in the art will appreciate that, with the development of technology and the emergence of new scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0049] The terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and need not be used to describe a specific order or sequential order. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances, which is only to describe the distinction mode adopted by the objects of the same attributes when describing in the embodiments of the present application. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, so that the process, method, system, product or equipment comprising a series of units need not be limited to those units, but may include other units that are not clearly listed or inherent to these processes, methods, products or equipment.

[0050] See also Figure 1 , Figure 1A schematic diagram of a system architecture is shown. The system may include a terminal 100 and a server 200. The server 200 may include one or more servers ( Figure 1 In the example, a server is included, and the server 200 can provide the method provided in the embodiment of the present application for one or more terminals.

[0051] Among them, an application corresponding to the third-party system can be installed on the terminal 100. The above application and web page can provide an interface. The terminal 100 can receive relevant parameters entered by the user on the interface and send the above parameters to the server 200. The server 200 can obtain processing results based on the received parameters and return the processing results to the terminal 100.

[0052] It should be understood that in some optional implementations, the terminal 100 can also complete the action of obtaining the processing result based on the received parameters by itself without the cooperation of the server, and the embodiments of the present application are not limited to this.

[0053] Next describe Figure 1 The product form of the mid-terminal 100;

[0054] The terminal 100 in the embodiment of the present application can be a mobile phone, a tablet computer, a wearable device, a vehicle-mounted device, an augmented reality (AR) / virtual reality (VR) device, a laptop computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), etc., and the embodiment of the present application does not impose any limitation on this.

[0055] Figure 2 An optional hardware structure diagram of the terminal 100 is shown.

[0056] refer to Figure 2 As shown, the terminal 100 may include a radio frequency unit 110, a memory 120, an input unit 130, a display unit 140, a camera 150 (optional), an audio circuit 160 (optional), a speaker 161 (optional), a microphone 162 (optional), an earphone jack 163 (optional), a processor 170, an external interface 180, a power supply 190 and other components. Those skilled in the art will appreciate that Figure 2 These are merely examples of terminals or multi-function devices and do not constitute limitations on the terminals or multi-function devices, which may include more or fewer components than those shown in the figures, or combinations of certain components, or different components.

[0057] The input unit 130 can be used to receive input digital or character information, and generate key signal input related to the user settings and function control of the portable multifunctional device. Specifically, the input unit 130 may include a touch screen 131 (optional) and / or other input devices 132. The touch screen 131 can collect the user's touch operations on or near it (such as the user's operation on or near the touch screen using any suitable object such as fingers, joints, stylus, etc.), and drive the corresponding connection device according to a pre-set program. The touch screen can detect the user's touch action on the touch screen, convert the touch action into a touch signal and send it to the processor 170, and can receive and execute the command sent by the processor 170; the touch signal at least includes the touch point coordinate information. The touch screen 131 can provide an input interface and an output interface between the terminal 100 and the user. In addition, the touch screen can be implemented using multiple types such as resistive, capacitive, infrared and surface acoustic wave. In addition to the touch screen 131, the input unit 130 can also include other input devices. Specifically, other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as a volume control key, a switch key, etc.), a trackball, a mouse, a joystick, and the like.

[0058] Among them, the input device 132 can receive input data and the like.

[0059] The display unit 140 may be used to display information input by a user or provided to a user, various menus of the terminal 100, an interactive interface, file display, and / or playback of any multimedia file.

[0060] The memory 120 can be used to store instructions and data. The memory 120 can mainly include an instruction storage area and a data storage area. The data storage area can store various data, such as multimedia files, texts, etc.; the instruction storage area can store software units such as operating systems, applications, instructions required for at least one function, or their subsets and extensions. It can also include a non-volatile random access memory; provide the processor 170 with hardware, software and data resources including management of computing and processing equipment, and support control software and applications. It is also used for the storage of multimedia files, and the storage of running programs and applications.

[0061] The processor 170 is the control center of the terminal 100. It uses various interfaces and lines to connect various parts of the entire terminal 100. By running or executing instructions stored in the memory 120 and calling data stored in the memory 120, it executes various functions of the terminal 100 and processes data, thereby controlling the terminal device as a whole. Optionally, the processor 170 may include one or more processing units; preferably, the processor 170 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface and application program, and the modem processor mainly processes wireless communication. It is understandable that the above-mentioned modem processor may not be integrated into the processor 170. In some embodiments, the processor and the memory may be implemented on a single chip, and in some embodiments, they may also be implemented separately on separate chips. The processor 170 may also be used to generate corresponding operation control signals, send them to corresponding components of the computing and processing device, read and process data in the software, especially read and process data and programs in the memory 120, so that each functional module therein performs corresponding functions, thereby controlling the corresponding components to act according to the requirements of the instructions.

[0062] The memory 120 may be used to store relevant software codes, the processor 170 may execute the steps of the relevant method, and may also schedule other units (such as the above-mentioned input unit 130 and display unit 140) to implement corresponding functions.

[0063] The radio frequency unit 110 (optional) can be used for receiving and sending information or receiving and sending signals during a call, for example, after receiving the downlink information of the base station, it is sent to the processor 170 for processing; in addition, the designed uplink data is sent to the base station. Generally, the RF circuit includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (Low Noise Amplifier, LNA), a duplexer, etc. In addition, the radio frequency unit 110 can also communicate with network devices and other devices through wireless communication. The wireless communication can use any communication standard or protocol, including but not limited to Global System of Mobile communication (Global System of Mobile communication, GSM), General Packet Radio Service (General Packet Radio Service, GPRS), Code Division Multiple Access (Code Division Multiple Access, CDMA), Wideband Code Division Multiple Access (Wideband Code Division Multiple Access, WCDMA), Long Term Evolution (Long Term Evolution, LTE), email, Short Messaging Service (SMS), etc.

[0064] In this embodiment of the present application, the RF unit 110 can send data to the server 200 and receive processing results sent by the server 200.

[0065] It should be understood that the radio frequency unit 110 is optional and can be replaced by other communication interfaces, such as a network interface. mouth.

[0066] The terminal 100 also includes a power supply 190 (such as a battery) for supplying power to various components. Preferably, the power supply can be logically connected to the processor 170 through a power management system, so that the power management system can manage functions such as charging, discharging, and power consumption.

[0067] The terminal 100 further includes an external interface 180 , which may be a standard Micro USB interface or a multi-pin connector, and may be used to connect the terminal 100 to communicate with other devices, or to connect a charger to charge the terminal 100 .

[0068] Although not shown, the terminal 100 may also include a flashlight, a wireless fidelity (WiFi) module, a Bluetooth module, sensors with different functions, etc., which are not described in detail here. Some or all of the methods described below may be applied in the following embodiments. Figure 2 In the terminal 100 shown.

[0069] Next describe Figure 1 The product form of the server 200;

[0070] Figure 3 A structural diagram of a server 200 is provided, such as Figure 3 As shown, the server 200 includes a bus 201, a processor 202, a communication interface 203, and a memory 204. The processor 202, the memory 204, and the communication interface 203 communicate with each other via the bus 201.

[0071] The bus 201 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 3 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0072] The processor 202 may be any one or more of a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MP), or a digital signal processor (DSP).

[0073] The memory 204 may include a volatile memory, such as a random access memory (RAM). The memory 204 may also include a non-volatile memory, such as a read-only memory (ROM), a flash memory, a hard drive (HDD), or a solid state drive (SSD).

[0074] The memory 204 may be used to store relevant software codes, the processor 202 may execute steps of relevant chip methods, and may also schedule other units to implement corresponding functions.

[0075] It should be understood that the above-mentioned terminal 100 and server 200 can be centralized or distributed devices, and the processors in the above-mentioned terminal 100 and server 200 (such as processor 170 and processor 202) can be hardware circuits (such as application specific integrated circuit (ASIC), field-programmable gate array (FPGA), general-purpose processor, digital signal processor (DSP), microprocessor or microcontroller, etc.), or a combination of these hardware circuits. For example, the processor can be a hardware system with an instruction execution function, such as a CPU, DSP, etc., or a hardware system without an instruction execution function, such as an ASIC, FPGA, etc., or a combination of the above-mentioned hardware systems without an instruction execution function and hardware systems with an instruction execution function.

[0076] The present application embodiment provides a data processing method. The data processing method provided by the present application embodiment is described in detail below in conjunction with the accompanying drawings.

[0077] Reference Figure 4 , Figure 4A flowchart of a data processing method provided in an embodiment of the present application, the method comprising:

[0078] Step S401, acquiring monitoring data from multiple data sources;

[0079] In practical applications, a timer or event triggering mechanism can be used to obtain monitoring data from multiple data sources.

[0080] The data sources include but are not limited to databases, file systems and APIs (Application Programming Interfaces) in banking systems.

[0081] Monitoring data can be structured data, semi-structured data, unstructured data, etc.

[0082] The structured data may be a SQL (Structured Query Language) database.

[0083] Semi-structured data can be a JSON (JavaScript Object Notation) file. JSON is a lightweight data exchange format. It is based on a subset of ECMAScript (the js specification developed by the European Computer Manufacturers Association) and uses a text format that is completely independent of the programming language to store and represent data. The simplicity and clear hierarchical structure make JSON an ideal data exchange language.

[0084] Unstructured data can be text files.

[0085] Step S402: using a monitoring algorithm to determine data source change information for the monitoring data;

[0086] Specifically, the change information of the data format, data structure and data content is determined from the monitoring data to obtain the data source change information.

[0087] The monitoring algorithm is specifically as follows: by querying the metadata and data samples of the data source, the difference information of the data format, data structure and data content before and after the transformation is monitored, so as to determine the change information of the data source.

[0088] Step S403: using a predefined matching rule, select multiple process templates matching the data source change information from a process template database;

[0089] Predefined matching rules include but are not limited to keyword matching.

[0090] The process template database has corresponding process templates for different data formats, data structures and data content change information.

[0091] Among them, each process template defines a set of standard operation steps and association relationships.

[0092] Process templates include common extraction, transformation, and loading steps.

[0093] For example, if the amount of data increases, the system may select a batch processing process template (specifically, an extraction template) to increase the degree of parallelism.

[0094] If the data format changes, the system may select a conversion template that adapts to the new format, such as converting from JSON format to CSV (Comma-Separated Values) format.

[0095] Step S404: constructing a data extraction and loading process using a plurality of the process templates;

[0096] In actual applications, the process construction engine can use the rules in multiple process templates to automatically build data extraction and loading processes.

[0097] Step S405: Execute the data extraction and loading process.

[0098] This embodiment completes the data extraction and loading process by executing the constructed data extraction and loading process.

[0099] In summary, the present invention discloses a data processing method, which obtains monitoring data from multiple data sources, uses a monitoring algorithm to determine data source change information for the monitoring data, uses predefined matching rules, selects multiple process templates that match the data source change information from a process template database, uses multiple process templates to construct a data extraction and loading process, and executes the constructed data extraction and loading process to complete the data extraction and loading process. The present invention achieves dynamic adjustment of the data extraction and loading process when the data changes by matching multiple process templates according to the data source change information and using multiple process templates to construct the data extraction and loading process, and the entire process does not require manual intervention and configuration changes by technical personnel, thereby improving the real-time efficiency of the system when processing constantly changing data.

[0100] To further optimize the above embodiment, see Figure 5 , a flow chart of constructing a data extraction and loading process based on multiple process templates disclosed in an embodiment of the present invention, the method includes:

[0101] Step S501: According to the rules in each process template, multiple process templates are merged into an initial data extraction and loading process;

[0102] Different process templates correspond to different rules. For example, some process templates indicate batch processing rules, while some process templates indicate format change rules.

[0103] Step S502: Add various operation steps and the association relationship between the various operation steps to the initial data extraction and loading process to construct a data extraction and loading process.

[0104] In actual applications, the system will automatically generate a configuration file based on the initial data extraction and loading process. The configuration file describes each operation step and the relationship between each operation step. The configuration file format can be formatted in a standard format such as JSON or XML.

[0105] The operation steps describe in detail the specific operations of each data processing step.

[0106] The operation steps include but are not limited to: an extraction step, a conversion step and a loading step.

[0107] Extraction steps: Describe how to extract data from the data source, including SQL (Structured Query Language) queries, API (Application Programming Interface) calls, etc.

[0108] Conversion steps: Describe operations such as data cleaning and format conversion.

[0109] Load step: describes how to load data into the target database, including batch size, parallelism, etc.

[0110] The association between each operation step describes the execution order and dependency between the operation steps to ensure the correctness of the data processing flow, such as data conversion can only be performed after data extraction is completed.

[0111] In actual applications, the configuration file may also include: data source configuration information, which describes the type, location, connection method, etc. of the data source.

[0112] In summary, the present invention combines multiple process templates into an initial data extraction and loading process according to the rules in each process template, adds various operation steps and the association relationship between each operation step in the initial data extraction and loading process, and constructs a data extraction and loading process. The present invention uses multiple process templates to construct a data extraction and loading process, and realizes the corresponding dynamic adjustment of the data extraction and loading process when the data changes, and the entire process does not require manual intervention and configuration changes by technicians, thereby improving the real-time efficiency of the system when processing constantly changing data.

[0113] To further optimize the above embodiment, see Figure 6 , a flow chart of a method for executing a data extraction and loading process disclosed in an embodiment of the present invention, the method comprising:

[0114] Step S601: dynamically adjust the data extraction and loading strategy for the data extraction and loading process to obtain a data strategy;

[0115] Among them, the data strategy includes: updating the data extraction frequency, data processing method and data loading destination.

[0116] For example, when the amount of data increases suddenly, adjust the extraction frequency and batch size.

[0117] Among them, adjust the extraction frequency, for example, from once a day to once an hour.

[0118] Adjust the batch size, for example, from 10,000 records to 100,000 records.

[0119] Step S602: Execute data extraction and loading process according to the data strategy.

[0120] For details, see Figure 7 , a flow chart of a method for executing a data extraction and loading process according to a data strategy disclosed in an embodiment of the present invention, the method comprising:

[0121] Step S701: extract monitoring data from multiple data sources according to data strategy;

[0122] In practical applications, after the monitoring data is extracted from multiple data sources according to the data strategy, the monitoring data can be stored as an intermediate file for subsequent processing.

[0123] Among them, the intermediate file can be a CSV (Comma-Separated Values) file, a JSON (JavaScript Object Notation) file, etc., which depends on actual needs and is not limited in the present invention.

[0124] Step S702: cleaning and format conversion of the extracted monitoring data to obtain target data;

[0125] The process of cleaning the extracted monitoring data includes but is not limited to removing null values, duplicate values, etc.

[0126] Format conversion includes but is not limited to conversion from JSON to relational tables.

[0127] Step S703: Load the target data into a target database or data warehouse to complete the data loading process.

[0128] A data processing method provided in an embodiment of the present application is introduced above, and a device for executing the above data processing method will be introduced below.

[0129] See also Figure 8 , Figure 8 A schematic diagram of the structure of a data processing device provided in an embodiment of the present application, the device comprising:

[0130] An acquisition unit 801 is used to acquire monitoring data from multiple data sources;

[0131] In practical applications, a timer or event triggering mechanism can be used to obtain monitoring data from multiple data sources.

[0132] The data sources include but are not limited to databases, file systems and APIs (Application Programming Interfaces) in banking systems.

[0133] Monitoring data can be structured data, semi-structured data, unstructured data, etc.

[0134] The structured data may be a SQL (Structured Query Language) database.

[0135] Semi-structured data can be a JSON (JavaScript Object Notation) file. JSON is a lightweight data exchange format. It is based on a subset of ECMAScript (the js specification developed by the European Computer Manufacturers Association) and uses a text format that is completely independent of the programming language to store and represent data. The simplicity and clear hierarchical structure make JSON an ideal data exchange language.

[0136] Unstructured data can be text files.

[0137] A change information determining unit 802, configured to determine data source change information using a monitoring algorithm for the monitoring data;

[0138] Specifically, the change information of the data format, data structure and data content is determined from the monitoring data to obtain the data source change information.

[0139] This embodiment monitors the difference information of data format, data structure and data content before and after the transformation by querying metadata and data samples of the data source, so as to determine the change information of the data source.

[0140] The template selection unit 803 is used to select multiple process templates matching the data source change information from the process template database by using a predefined matching rule;

[0141] Predefined matching rules include but are not limited to keyword matching.

[0142] The process template database has corresponding process templates for different data formats, data structures and data content change information.

[0143] Among them, each process template defines a set of standard operation steps and association relationships.

[0144] Process templates include common extraction, transformation, and loading steps.

[0145] For example, if the amount of data increases, the system may select a batch processing process template (specifically, an extraction template) to increase the degree of parallelism.

[0146] If the data format changes, the system may select a conversion template that adapts to the new format, such as converting from JSON format To CSV (Comma-Separated Values) format.

[0147] A process construction unit 804, used to construct a data extraction and loading process using a plurality of the process templates;

[0148] In actual applications, the process construction engine can use the rules in multiple process templates to automatically build data extraction and loading processes.

[0149] The process execution unit 805 is used to execute the data extraction and loading process.

[0150] This embodiment completes the data extraction and loading process by executing the constructed data extraction and loading process.

[0151] In summary, the present invention discloses a data processing method, which obtains monitoring data from multiple data sources, uses a monitoring algorithm to determine data source change information for the monitoring data, uses predefined matching rules, selects multiple process templates that match the data source change information from a process template database, uses multiple process templates to construct a data extraction and loading process, and executes the constructed data extraction and loading process to complete the data extraction and loading process. The present invention achieves dynamic adjustment of the data extraction and loading process when the data changes by matching multiple process templates according to the data source change information and using multiple process templates to construct the data extraction and loading process, and the entire process does not require manual intervention and configuration changes by technical personnel, thereby improving the real-time efficiency of the system when processing constantly changing data.

[0152] To further optimize the above embodiment, the process construction unit 804 is specifically used for:

[0153] According to the rules in each of the process templates, merging the multiple process templates into an initial data extraction and loading process;

[0154] In the initial data extraction and loading process, various operation steps and the association relationship between the operation steps are added to construct the data extraction and loading process.

[0155] Different process templates correspond to different rules. For example, some process templates indicate batch processing rules, while some process templates indicate format change rules.

[0156] In actual applications, the system will automatically generate a configuration file based on the initial data extraction and loading process. The configuration file describes each operation step and the relationship between each operation step. The configuration file format can be formatted in a standard format such as JSON or XML.

[0157] The operation steps describe in detail the specific operations of each data processing step.

[0158] The operation steps include but are not limited to: an extraction step, a conversion step and a loading step.

[0159] Extraction steps: Describe how to extract data from the data source, including SQL (Structured Query Language) queries, API (Application Programming Interface) calls, etc.

[0160] Conversion steps: Describe operations such as data cleaning and format conversion.

[0161] Load step: describes how to load data into the target database, including batch size, parallelism, etc.

[0162] The association between each operation step describes the execution order and dependency between the operation steps to ensure the correctness of the data processing flow, such as data conversion can only be performed after data extraction is completed.

[0163] In actual applications, the configuration file may also include: data source configuration information, which describes the type, location, connection method, etc. of the data source.

[0164] In summary, the present invention combines multiple process templates into an initial data extraction and loading process according to the rules in each process template, adds various operation steps and the association relationship between each operation step in the initial data extraction and loading process, and constructs a data extraction and loading process. The present invention uses multiple process templates to construct a data extraction and loading process, and realizes the corresponding dynamic adjustment of the data extraction and loading process when the data changes, and the entire process does not require manual intervention and configuration changes by technicians, thereby improving the real-time efficiency of the system when processing constantly changing data.

[0165] To further optimize the above embodiment, the process execution unit 805 may specifically include:

[0166] A strategy adjustment subunit, used to dynamically adjust the data extraction and loading strategy of the data extraction and loading process to obtain a data strategy, wherein the data strategy includes: updating the data extraction frequency, the data processing method and the data loading destination;

[0167] The process execution subunit is used to execute the data extraction and loading process according to the data strategy.

[0168] Among them, the data strategy includes: updating the data extraction frequency, data processing method and data loading destination.

[0169] For example, when the amount of data increases suddenly, adjust the extraction frequency and batch size.

[0170] Among them, adjust the extraction frequency, for example, from once a day to once an hour.

[0171] Adjust the batch size, for example, from 10,000 records to 100,000 records.

[0172] To further optimize the above embodiment, the process execution subunit can be specifically used for:

[0173] Extracting the monitoring data from the plurality of data sources according to the data strategy;

[0174] Cleaning and formatting the extracted monitoring data to obtain target data;

[0175] The target data is loaded into a target database or data warehouse to complete the data loading process.

[0176] In practical applications, after the monitoring data is extracted from multiple data sources according to the data strategy, the monitoring data can be stored as an intermediate file for subsequent processing.

[0177] Among them, the intermediate file can be a CSV (Comma-Separated Values) file, a JSON (JavaScript Object Notation) file, etc., which depends on actual needs and is not limited in the present invention.

[0178] The process of cleaning the extracted monitoring data includes but is not limited to removing null values, duplicate values, etc.

[0179] Format conversion includes but is not limited to conversion from JSON to relational tables.

[0180] To further optimize the above embodiment, the change information determining unit 802 may be specifically used for:

[0181] The change information of the data format, data structure and data content is determined from the monitoring data to obtain the data source change information.

[0182] The present application also provides an electronic device in an embodiment. Fig. 9 As shown, it shows a schematic diagram of the structure of an electronic device suitable for implementing the embodiments of the present application. The electronic device in the embodiments of the present application may include but is not limited to fixed terminals such as mobile phones, notebook computers, PDAs (personal digital assistants), PADs (tablet computers), desktop computers, etc. Fig. 9 The electronic device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0183] like Fig. 9 As shown, the electronic device may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 901, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 902 or a program loaded from a storage device 908 into a random access memory (RAM) 903. When the electronic device is powered on, various programs and data required for the operation of the electronic device are also stored in the RAM 903. The processing device 901, the ROM 902, and the RAM 903 are connected to each other via a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.

[0184] Typically, the following devices may be connected to the I / O interface 905: an input device 906 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 907 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 908 including, for example, a memory card, a hard disk, etc.; and a communication device 909. The communication device 909 may allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. Although Fig. 9 An electronic device having various devices is shown, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.

[0185] An embodiment of the present application also provides a computer program product including computer-readable instructions. When the computer-readable instructions are executed on an electronic device, the electronic device implements any data processing method provided in the embodiment of the present application.

[0186] A computer-readable storage medium is also provided in an embodiment of the present application. The storage medium carries one or more computer programs. When the one or more computer programs are executed by an electronic device, the electronic device can implement any data processing method provided in the embodiment of the present application.

[0187] It should also be noted that the device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed over multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, in the drawings of the device embodiments provided by the present application, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines.

[0188] Through the description of the above implementation mode, the technicians in the field can clearly understand that the present application can be implemented by means of software plus necessary general hardware, and of course, it can also be implemented by special hardware including special integrated circuits, special CPUs, special memories, special components, etc. In general, all functions completed by computer programs can be easily implemented by corresponding hardware, and the specific hardware structure used to implement the same function can also be various, such as analog circuits, digital circuits or special circuits. However, for the present application, software program implementation is a better implementation mode in more cases. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a readable storage medium, such as a computer floppy disk, a U disk, a mobile hard disk, a ROM, a RAM, a disk or an optical disk, etc., including a number of instructions to enable a computer device (which can be a personal computer, a training device, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0189] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware or any combination thereof. When implemented by software, all or part of the embodiments may be implemented in the form of a computer program product.

[0190] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website site, a computer, a training device, or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, training device, or data center. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a training device, a data center, etc. that includes one or more available media integrations. The available medium may be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)), etc.

Claims

1. A data processing method, characterized in that: include: Obtain monitoring data from multiple data sources; Determine data source change information using a monitoring algorithm for the monitoring data; Using predefined matching rules, select multiple process templates matching the data source change information from a process template database; Using a plurality of the process templates to construct a data extraction and loading process; Execute the data extraction and loading process.

2. The data processing method according to claim 1, characterized in that: The method of constructing a data extraction and loading process using a plurality of process templates includes: According to the rules in each of the process templates, merging the multiple process templates into an initial data extraction and loading process; In the initial data extraction and loading process, various operation steps and the association relationship between the operation steps are added to construct the data extraction and loading process.

3. The data processing method according to claim 2, characterized in that: The operation steps include: an extraction step, a conversion step and a loading step.

4. The data processing method according to claim 1, characterized in that: The execution of the data extraction and loading process includes: Dynamically adjusting the data extraction and loading strategy of the data extraction and loading process to obtain a data strategy, wherein the data strategy includes: updating the data extraction frequency, the data processing method and the data loading destination; According to the data strategy, the data extraction and loading process is executed.

5. The data processing method according to claim 4, characterized in that: The step of executing the data extraction and loading process according to the data strategy includes: Extracting the monitoring data from the plurality of data sources according to the data strategy; Cleaning and formatting the extracted monitoring data to obtain target data; The target data is loaded into a target database or data warehouse to complete the data loading process.

6. The data processing method according to any one of claims 1 to 5, characterized in that: The step of using a monitoring algorithm to determine the data source change information of the monitoring data includes: The change information of the data format, data structure and data content is determined from the monitoring data to obtain the data source change information.

7. A data processing device, characterized in that: include: An acquisition unit, used for acquiring monitoring data from multiple data sources; a change information determining unit, configured to determine data source change information using a monitoring algorithm on the monitoring data; A template selection unit, configured to select a plurality of process templates matching the data source change information from a process template database by using a predefined matching rule; A process construction unit, used to construct a data extraction and loading process using a plurality of the process templates; A process execution unit is used to execute the data extraction and loading process.

8. A computer program product, characterized in that The method comprises computer-readable instructions, and when the computer-readable instructions are executed on an electronic device, the electronic device implements the data processing method according to any one of claims 1 to 6.

9. An electronic device, characterized in that: The method comprises at least one processor and a memory connected to the processor, wherein: The memory is used to store computer programs; The processor is used to execute the computer program so that the electronic device can implement the data processing method as described in any one of claims 1 to 6.

10. A computer storage medium, characterized in that: The storage medium carries one or more computer programs, and when the one or more computer programs are executed by an electronic device, the electronic device can implement the data processing method as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Data extraction method and apparatus adaptive to multiple data sources

    CN106886535A

  • Business process management method, apparatus and device

    CN106920024A

  • Data processing method and system based on production line structure

    CN113297276A

  • Data extraction method and device, equipment and storage medium

    CN115862882A