A data acquisition method and device, and an electronic device

By monitoring database change logs to capture incremental data in real time and performing streaming computation, the problem of rate limiting and latency in third-party data platform interfaces is solved, achieving efficient and reliable data acquisition and synchronization, which is suitable for large-scale data distribution businesses.

CN123157718APending Publication Date: 2026-11-24YUANBAO DIGITAL TECH (BEIJING) TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611054175.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-07-15
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

In existing technologies, the problems of poor data acquisition timeliness and low link reliability caused by the rate limiting of third-party data platform interfaces and data synchronization delays are particularly evident in large-scale, high-frequency data synchronization scenarios, which cannot meet the timeliness and continuity requirements of data acquisition in high-frequency bidding scenarios.

Method used

By monitoring the database change logs of third-party data platforms, incremental data is captured in real time and synchronized to the intermediate storage area. Streaming computing services are used for data cleaning and multi-dimensional aggregation calculations to generate target business data, which is then distributed and written to the target storage space, avoiding interface rate limiting and network latency in the traditional API polling mode.

Benefits of technology

It achieves high throughput, low latency, and stable and reliable data acquisition, significantly improving data timeliness and link reliability, reducing the coupling between system calls, ensuring data quality and availability, and is suitable for large-scale data distribution services.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123157718A_ABST
    Figure CN123157718A_ABST
Patent Text Reader

Abstract

This invention provides a data acquisition method, apparatus, and electronic device. The method includes: monitoring change logs generated by a source database to acquire incremental data from the source database and synchronizing the incremental data to an intermediate storage area; performing data cleaning and multi-dimensional aggregation calculations on the incremental data to obtain corresponding target business data; distributing and writing the target business data to a target storage space, thus avoiding interface rate limiting and frequency control constraints and ensuring the stability and continuity of the data synchronization link; and significantly reducing data acquisition latency and improving data timeliness through real-time capture and streaming processing of incremental data; and decoupling data acquisition from subsequent processing by introducing intermediate storage, combined with data cleaning and multi-dimensional aggregation calculations, improving the quality and availability of the target business 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 acquisition method and apparatus, and an electronic device. Background Technology

[0002] In the field of digital marketing and data distribution, real-time monitoring and multi-dimensional analysis of business data have become the core foundation for supporting data-driven decision-making. To optimize campaign strategies in a highly competitive bidding environment, systems need to continuously track performance data at multiple levels, including accounts, campaigns, and creatives, ensuring that operational decisions are based on the latest and most complete business metrics, thereby improving resource allocation efficiency.

[0003] Existing technical solutions primarily rely on the HTTP API interfaces exposed by third-party data platforms for periodic polling. In practice, the business system, acting as a client, proactively sends data requests to the server at preset time intervals, retrieving report data through a pull mechanism. After receiving the response message, the system processes complex nested fields through serial parsing and transformation logic, and finally writes the cleaned data to the local database for display.

[0004] However, this HTTP-based polling mechanism suffers from severe server-side rate limiting and data latency bottlenecks when handling large-scale, high-frequency data synchronization. Because third-party platforms generally implement strict query-per-second limits and frequency control policies, when the number of monitored accounts surges, high-frequency API requests can easily trigger the platform's rate limiting circuit breakers or punitive bans, leading to frequent interruptions in the data synchronization link. This results in data lag of tens of minutes or even hours, failing to meet the stringent requirements for timeliness and continuity of data acquisition in high-frequency bidding scenarios. Summary of the Invention

[0005] This invention provides a data acquisition method, apparatus, and electronic device to address the technical defects in the prior art caused by the rate limiting of third-party data platform interfaces and data synchronization delays, resulting in poor data acquisition timeliness and low link reliability, thereby achieving high throughput, low latency, and stable and reliable data acquisition.

[0006] This invention provides a data acquisition method, the method comprising: By monitoring the change logs generated by the source database, incremental data from the source database is obtained, and the incremental data is synchronized to the intermediate storage area. The incremental data is cleaned and subjected to multidimensional aggregation calculations to obtain the corresponding target business data; The target business data is distributed and written to the target storage space.

[0007] According to the data acquisition method provided by the present invention, incremental data of the source database is obtained by monitoring the change log generated by the source database, including: The change logs generated by the source database are captured in real time using a data transmission service. The change logs include redo logs or binary logs. The data change events captured in the change log are parsed by the data transmission service to obtain the parsed incremental data.

[0008] According to the data acquisition method provided by the present invention, synchronizing the incremental data to the intermediate storage area includes: creating multiple incremental data tables in the intermediate storage area using a daily table partitioning strategy, and writing the incremental data into the corresponding incremental data tables in real time while maintaining the consistency of field type mapping between the source and destination ends.

[0009] According to the data acquisition method provided by the present invention, the incremental data is cleaned by: retrieving change data streams from multiple incremental data tables stored in the intermediate storage area in real time through a streaming computing service; performing streaming merging processing on the change data streams belonging to different incremental data tables to generate corresponding wide table streams; and identifying and removing abnormal data with missing fields or incorrect formats from the wide table streams.

[0010] According to the data acquisition method provided by the present invention, the target business data includes the account-level summary data and the detailed report data; The incremental data is aggregated in multiple dimensions to obtain the corresponding target business data, including: The filtered wide table stream is split using a splitting processing logic, and aggregation calculations are performed based on a time window. The numerical indicators in the split wide table stream are aggregated using the account identifier and time identifier as a composite primary key to generate account-level summary data. The numerical indicators in the split wide table stream are aggregated using the identifier of each business level as a grouping basis to generate detailed report data for the corresponding business level.

[0011] According to the data acquisition method provided by the present invention, during the execution of the multidimensional aggregation calculation, the method further includes: periodically creating snapshots of the running state during the processing, and persistently storing the snapshots; The process of writing the target business data into the target storage space includes: The effective state of the target business data and the persistent storage state of the snapshot are mutually dependent to ensure that the data write operation and the state storage have atomic consistency. When an abnormality is detected in the processing task of the target business data, the running state is restored based on the most recently persisted snapshot and execution continues to ensure the uniqueness and integrity of the data records in the target storage space.

[0012] According to the data acquisition method provided by the present invention, distributing and writing the target business data into the target storage space includes: using a batch insertion strategy or an update insertion strategy, writing the generated account-level summary data, group-level detailed report data, and plan-level detailed report data into the preset result tables at each level in the target storage space in parallel.

[0013] According to the data acquisition method provided by the present invention, before listening to the change logs generated by the source database, the method further includes: constructing a data subscription path from the source database to the business computing environment, adapting the network protocol differences between the source database and the business computing environment through the data subscription path, and continuously transmitting the captured change logs to the business computing environment.

[0014] The present invention also provides a data acquisition device, the device comprising: The data synchronization module is used to listen to the change logs generated by the source database, obtain the incremental data of the source database, and synchronize the incremental data to the intermediate storage area. The data processing module is used to perform data cleaning and multi-dimensional aggregation calculations on the incremental data to obtain the corresponding target business data; The data distribution module is used to distribute and write the target business data to the target storage space.

[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 the data acquisition method as 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 the data acquisition method as described above.

[0017] The present invention also provides a computer program product, including a computer program that, when executed by a processor, implements the data acquisition method as described above.

[0018] The data acquisition method, apparatus, and electronic device provided by this invention acquire incremental data by real-time monitoring of the source database change log and synchronize it to intermediate storage. This avoids the frequent calls to the data source interface in traditional polling methods, thereby circumventing interface rate limiting and frequency control constraints and ensuring the stability and continuity of the data synchronization link. Furthermore, the real-time capture and streaming processing of incremental data significantly reduces data acquisition latency and improves data timeliness. In addition, the introduction of intermediate storage decouples data acquisition from subsequent processing, and combined with data cleaning and multi-dimensional aggregation calculations, improves the quality and availability of target business data, providing efficient and reliable data support for upper-layer business systems. 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 flowchart illustrating the data acquisition method provided by the present invention.

[0021] Figure 2 This invention provides a flowchart for the synchronization and processing of daily account, group, and plan data.

[0022] Figure 3 This invention provides a flowchart for the synchronization and processing of hourly account, group, and plan data.

[0023] Figure 4 This is a flowchart of the daily-level material data synchronization and processing provided by the present invention.

[0024] Figure 5 This is the optimized overall system architecture diagram provided by the present invention.

[0025] Figure 6 This is a schematic diagram of the data acquisition device provided by the present invention.

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

[0027] 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.

[0028] In existing data distribution systems, third-party data platforms typically store their business data in their own relational databases while providing RESTful API interfaces based on the HTTP protocol for external callers to retrieve report data. In practice, the business system, acting as a client, must include identity credentials in the request header according to the authentication method specified by the third-party platform and proactively initiate GET or POST requests at preset time intervals, carrying parameters such as account identifier, time range, and dimension filtering, to retrieve the specified level of performance data from the platform server. Upon receiving the request, the server verifies it according to permissions and rate limiting policies. If successful, it queries the corresponding data from its own database and encapsulates the results into a JSON or XML message, which is then returned. After receiving the response message, the client needs to parse the nested field structure layer by layer, extract the required numerical indicators and dimensional attributes, and then perform data cleaning operations such as data type conversion and missing value imputation. Finally, the data is written to the target table in the local business database through the database interface for querying by the upper-level BI dashboard or decision-making system. This sequential link of request, response, parsing, and writing was able to maintain operation in the early stages of business development, but as the number of data distribution accounts and the planning dimensions grew exponentially, its inherent architectural bottlenecks became increasingly prominent.

[0029] To alleviate these issues, some existing technologies reduce API call frequency by introducing multi-threaded concurrent requests, dynamically adjusting polling intervals, or adding local caching. However, these measures cannot overcome the hard limits imposed by third-party servers on request frequency. When the number of accounts that the business system needs to monitor expands from dozens to thousands, even with the optimal request scheduling strategy, the total number of requests can easily exceed the platform's set limits on queries per second or daily calls, leading to request rejection, receiving service overload status codes, or even triggering punitive bans lasting from several minutes to tens of minutes. During this period, all data synchronization tasks for that account will be completely interrupted, resulting in large blank sections on the data dashboard. Operations personnel will be unable to obtain real-time consumption and conversion metrics, directly impacting the dynamic adjustment of bidding strategies.

[0030] On the other hand, even if the request succeeds, the inherent network round-trip latency of each HTTP interaction, coupled with the server-side query time, means that the time window from data generation to final storage is at least several seconds to several minutes. In report query scenarios with large data volumes, the server response time may further increase to tens of seconds, causing data synchronization delays far exceeding the acceptable range for business operations. Even more problematic is that third-party data platforms typically store report data in tables partitioned by day or hour, and field definitions may change with version iterations. Client-side parsing code must frequently adapt, and any adjustments to field hierarchy or type can easily trigger null pointer exceptions, type conversion errors, or precision loss, forcing developers to urgently fix and redeploy, severely impacting system maintainability and data accuracy.

[0031] Given the limitations of existing solutions in handling large-scale, high-real-time data synchronization scenarios, this application provides a data acquisition method based on database log subscription and streaming computing. This method no longer relies on the traditional API pull model. Instead, it monitors the change logs of a third-party data platform's own RDS database, including redo logs or binary logs, to capture incremental data in real time. This data is then synchronized to the intermediate storage area of ​​the business environment via a data transmission service. Subsequently, a streaming computing engine is used to clean and multi-dimensionally aggregate the incremental data, generating report data at different levels such as accounts, groups, and plans. Finally, this data is distributed and written to the target storage space in parallel. This method directly obtains change records from the data source, bypassing the rate-limiting constraints of API interfaces. It also eliminates the latency caused by polling intervals and network round trips, improving data acquisition timeliness from tens of minutes to minutes or even milliseconds. Furthermore, it significantly reduces the coupling between system calls, providing a stable, efficient, and scalable data synchronization solution for large-scale data distribution services. The specific implementation steps of this application embodiment are described in detail below with reference to the accompanying drawings.

[0032] Before describing the technical solutions of the embodiments of the present invention, the terms and concepts involved in the embodiments of the present invention will be explained illustratively.

[0033] Source database: The source database refers to the relational database used by the third-party data platform to store the original business data. In this embodiment, the source database stores the original performance data such as consumption, conversion, exposure, and clicks of various data distribution accounts, and is the starting point of the data synchronization process.

[0034] Change log: A change log is a record of data change operations kept by the source database to ensure data persistence and disaster recovery. In this embodiment, the change log specifically includes a redo log or a binary log, which fully records the details of every data insertion, update, and deletion operation in the source database, including the data values ​​before and after the change and the operation timestamp.

[0035] Incremental data: Incremental data refers to data records in the source database that have been added or changed compared to a certain historical point in time. In contrast to full data, incremental data only contains data rows that have changed since the last capture. It has a smaller data volume and is suitable for real-time or near real-time transmission and processing.

[0036] Intermediate storage area: The intermediate storage area refers to the temporary data storage space located within the business computing environment, used to receive incremental data synchronized from the source database. In this embodiment, the intermediate storage area is specifically manifested as a relational database instance on the business side, which uses a daily table partitioning strategy to store incremental data, serving as a data buffer layer between the source and the computing engine.

[0037] Data cleaning: Data cleaning refers to the process of performing standardization checks and anomaly handling on raw incremental data. In the embodiments of this application, data cleaning specifically includes streaming and merging change data streams belonging to different sub-tables to generate a wide table stream, and identifying and removing abnormal data records in the wide table stream that have missing fields or incorrect formats.

[0038] Multidimensional aggregation: Multidimensional aggregation refers to the calculation process of grouping and summarizing data indicators according to different business dimensions. In the embodiments of this application, multidimensional aggregation specifically includes summarizing indicators at the account level using account identifier and time identifier as joint primary keys, and summarizing detailed indicators at the group level and plan level using the identifiers of each business level as the grouping basis.

[0039] Target business data: Target business data refers to structured datasets that, after data cleaning and multidimensional aggregation calculations, can directly support the query and analysis needs of upper-level business processes. In this embodiment, target business data specifically includes account-level summary data and group-level and plan-level detailed report data.

[0040] Target storage space: Target storage space refers to the final database instance used for persistent storage of target business data. In this embodiment, result tables corresponding to different business levels are pre-created in the target storage space, including full report result tables, group report result tables, and planned report result tables, to support different query scenarios such as high-level overview dashboards and operational staff strategy analysis.

[0041] Streaming computing service: A streaming computing service is a real-time computing framework that processes data streams, enabling low-latency, high-throughput online processing of continuously arriving incremental data. In this embodiment, the streaming computing service is specifically the Flink data processing service, which acts as a subscription client of DTS, reading the changing data stream in the intermediate storage area in real time and performing subsequent data cleaning and multi-dimensional aggregation calculations.

[0042] Wide table stream: A wide table stream is a standardized data stream formed by merging change records from multiple tables or data streams according to a unified table structure. In this embodiment of the invention, taking into account the characteristic of the source data being stored in tables on a daily basis, the streaming computing service integrates data rows scattered in different incremental data tables into a unified wide table stream through merging processing, so as to facilitate subsequent unified filtering, aggregation, and distribution.

[0043] Abnormal data: Abnormal data refers to records identified as not meeting quality requirements during the data cleaning process. In this application embodiment, abnormal data specifically includes records with missing fields, such as empty key dimension identifiers or negative numerical indicators, as well as records with incorrect formats, such as data rows with mismatched timestamp formats or data types that cannot be correctly converted.

[0044] Account-level summary data: Account-level summary data refers to summary-level report data obtained by aggregating data based on account identifier and time identifier. This data reflects the overall campaign performance of a single account within a specific time frame and is suitable for rapid presentation and global monitoring in a high-level management view.

[0045] Detailed report data: Detailed report data refers to the detailed report data obtained by grouping and aggregating data according to a finer-grained business level. In the embodiments of this application, the detailed report data specifically includes group-level detailed report data and plan-level detailed report data, which correspond to the performance indicators of the intermediate management level and the atomic execution level, respectively, and are used to support operations personnel in conducting in-depth strategy analysis and material performance evaluation.

[0046] Batch insert strategy: The batch insert strategy is a database write optimization method that writes multiple data records simultaneously in a single database operation, reducing network round trips and transaction overhead, thereby improving data write throughput in high-concurrency scenarios.

[0047] Update-insert strategy: The update-insert strategy is a database write conflict handling mechanism. It performs an insert operation when the data record to be written does not exist in the target table, and an update operation when the record already exists. In this embodiment, this strategy is used to ensure data idempotency and avoid duplicate records in scenarios involving data retransmission or repeated consumption.

[0048] Business computing environment: The business computing environment refers to the entity executing the data acquisition method and the collective computing, storage, and network resources required for its operation. In this embodiment, the business computing environment is deployed on the business system side and achieves cross-cloud or cross-network data connectivity with the source database of the third-party data platform through data transmission services.

[0049] The execution entity of the data acquisition method provided in this invention can be a data acquisition device, which can be implemented through software, hardware, or a combination of both. In actual deployment, this device can be integrated into one or more computing devices on the business system side, such as a standalone physical server, cloud server, server cluster, or distributed computing platform. This execution entity possesses data reception, data computation, data storage, and network communication capabilities. Specifically, it may include a processor, memory, communication interface, and corresponding computer program instructions. The processor is used to execute various data cleaning, aggregation computation, and flow control logic; the memory is used to store program instructions and temporary data; and the communication interface is used to interact with the source database, intermediate storage area, and target storage space. In practical application scenarios, this execution entity can be deployed in the cloud where the business environment resides and work in conjunction with the RDS database, DTS data transmission service, and Flink streaming computing engine of a third-party data platform, serving as the control and computation hub in the entire data synchronization link. In specific implementation, this execution entity can be a single computing node or a distributed system composed of multiple computing nodes. The nodes cooperate with each other through a communication bus or network to jointly complete the entire process of data acquisition, processing, and distribution.

[0050] Figure 1 This is a flowchart illustrating a data acquisition method provided in an embodiment of the present invention. The method includes: Step 101: By monitoring the change logs generated by the source database, obtain the incremental data of the source database, and synchronize the incremental data to the intermediate storage area.

[0051] In this step, the data acquisition device first establishes a data subscription connection with the source database based on log parsing. During normal operation, the source database continuously generates log files recording data changes. The data acquisition device, by deploying a log listening component on its side or utilizing existing data transmission services, reads and parses the data change events contained in these logs in real time. The logs record the new rows added during each data insertion operation, the modified fields and their old and new values ​​involved in update operations, and the identifiers of data rows removed during deletion operations. After parsing each of these log events, the data acquisition device extracts the changed data records as incremental data. This incremental data is then restored to structured data rows.

[0052] Subsequently, the data acquisition device writes the parsed incremental data to an intermediate storage area within the business computing environment via network transmission. This intermediate storage area has a pre-created data table for receiving incremental data, maintaining consistency in data field types and precision during the writing process to ensure that subsequent processing steps can correctly identify and use this data.

[0053] In this way, every time the source database undergoes a data change, the incremental data corresponding to that change can be synchronized to the intermediate storage area in a very short time, thereby realizing the real-time flow of data from the source to the business environment.

[0054] Step 102: Perform data cleaning and multi-dimensional aggregation calculations on the incremental data to obtain the corresponding target business data.

[0055] With the incremental data synchronized to the intermediate storage area, the data acquisition device reads the stored incremental data records from the intermediate storage area in real time and enters the data processing stage. First, the data acquisition device performs data cleaning on the read incremental data, which aims to remove records from the original data that do not meet quality requirements.

[0056] Specifically, the data acquisition device checks the completeness and format validity of each field in every data record. Records with missing key field values, data types inconsistent with expectations, or values ​​exceeding reasonable ranges are identified and filtered to ensure that all data used in subsequent calculations is valid. After data cleaning, the data acquisition device groups and summarizes the cleaned data according to a preset multi-dimensional aggregation logic. Because the original incremental data records atomic-level data changes with fine granularity, it cannot directly meet the query requirements of upper-level business systems for summary-level data. Therefore, the data needs to be categorized and aggregated according to different business levels. The data acquisition device uses account, time, and business level dimensions as grouping criteria to process the cleaned data stream, and performs aggregation operations such as summation and addition on the numerical indicators in each group within a set time window.

[0057] After the above multidimensional aggregation calculation, the incremental data at the atomic level is converted into summary results under multiple business level dimensions, and these summary results are the target business data.

[0058] Step 103: Distribute and write the target business data to the target storage space.

[0059] After the target business data is generated, the data acquisition device persists it for querying by upper-layer business systems. Based on the business level to which the target business data belongs, the data acquisition device distributes data records from different levels and writes them into pre-established corresponding data tables in the target storage space. During the writing process, the data acquisition device determines whether each data record already exists in the target table based on its primary key or unique identifier. If it does not exist, an insertion operation is performed; if it already exists, an update operation is performed to ensure eventual consistency and idempotency of the data in the target storage space.

[0060] Through the above-mentioned distribution and writing strategy, data from different business levels are stored in their respective result tables. This avoids the read and write performance bottleneck caused by the large amount of data in a single data table, and also provides an on-demand data organization method for upper-level business systems, enabling different scenarios such as high-level overview dashboards and in-depth strategy analysis to efficiently obtain the required data.

[0061] The data acquisition method provided in this invention achieves real-time capture and synchronization of incremental data through change log monitoring, abandoning the traditional API polling mode and completely avoiding the risk of data acquisition interruption caused by rate limiting of third-party platform interfaces. It also eliminates the time window caused by the polling interval, significantly reducing end-to-end latency from data generation to entry into the business environment. By cleaning the incremental data, abnormal data is effectively filtered out, preventing low-quality data from affecting the accuracy of aggregation results. Multi-dimensional aggregation calculation directly generates the summary results required by different management levels, eliminating the need for upper-level business systems to repeatedly query and calculate the original detailed data, significantly improving overall computational efficiency. By distributing target business data from different business levels to corresponding result tables, hierarchical and structured data storage is achieved, avoiding the performance degradation of a single data table due to data volume expansion. This allows different query scenarios to directly access their respective required data tables without cross-table joins or secondary aggregation, further improving the response speed of data queries. Combined with the idempotency guarantee mechanism during the writing process, it ensures that the data in the target storage space always maintains eventual consistency. Compared to traditional API polling schemes, the method provided by this invention has achieved significant improvements in real-time data acquisition, link stability, data quality reliability, and storage query efficiency.

[0062] In this embodiment of the invention, the specific implementation method for obtaining incremental data by monitoring the change logs generated by the source database in step 101 is as follows: The data acquisition device establishes a connection with the source database using a data transmission service that provides log parsing and data subscription capabilities. During operation, the source database generates log files recording data changes, specifically redo logs or binary logs. These logs fully record details of every data insertion, update, and deletion operation performed on the database, including the data values ​​before and after the change, as well as the operation timestamps. The data transmission service continuously captures these change logs in real time. When any data change occurs in the source database, the corresponding log record is immediately captured, eliminating the waiting interval found in traditional polling schemes. After capturing the change logs, the data transmission service parses each recorded data change event, reconstructing the changed data rows and their field values ​​from each event, thereby obtaining the incremental data.

[0063] In practical implementation, the data acquisition device also pre-builds a data subscription path from the source database to the business computing environment. Through this path, it adapts to the differences in network protocols between the source database and the business computing environment, and continuously transmits the captured change logs to the business computing environment, thereby realizing real-time data synchronization across cloud or network environments.

[0064] This embodiment utilizes the real-time capture and parsing capabilities of the data transmission service to achieve millisecond-level acquisition of incremental data. This eliminates the request interval inherent in the traditional API polling mode and avoids data acquisition interruptions caused by high-frequency requests triggering the rate limiting policies of third-party data platforms. At the same time, since the data transmission service only listens for database change events rather than the full amount of data, its data transmission volume is small and its network overhead is low. This can significantly reduce system resource consumption while ensuring real-time performance, avoiding the waste of network bandwidth and server resources caused by a large number of idle requests in traditional solutions.

[0065] During the synchronization of incremental data to the intermediate storage area, the intermediate storage area employs a daily table partitioning strategy for data organization. Specifically, the data acquisition device pre-creates multiple incremental data tables in the intermediate storage area according to the daily table partitioning strategy. Each incremental data table corresponds to a specific date, and its name contains the corresponding date identifier, used to store the incremental data generated on that day. When writing incremental data to the intermediate storage area, the data transmission service determines the corresponding incremental data table based on the date of the data change event and writes the parsed incremental data rows into that table in real time. Since data change events may involve data from any date, data rows from different dates fall into their respective date tables, thus achieving ordered isolation of data at the storage level.

[0066] During the writing process, the data transmission service maintains consistency in field type mapping between the source database and the intermediate storage area at the destination, ensuring that various types of data, such as timestamps, monetary values, and string fields, do not experience type conversion errors or precision loss before and after transmission. This allows subsequent data processing stages to correctly identify and use this incremental data. Taking a data distribution scenario as an example, the report data in the source database involves monetary value fields. If a type mapping error occurs during the transmission of such fields, it may lead to precision loss. This application effectively avoids the above problems by maintaining consistent field type mapping.

[0067] In this embodiment, on the one hand, the daily table partitioning strategy effectively avoids the decline in read and write performance of a single data table due to the continuous growth of data volume, enabling data writing and reading operations to be executed efficiently within a small dataset, and maintaining good throughput even in high-concurrency write scenarios; on the other hand, the consistency of field type mapping ensures the integrity and accuracy of data from the source to the destination, especially for precision-sensitive numerical data such as amounts, avoiding numerical distortion caused by improper type conversion, and laying a reliable data foundation for the correctness of subsequent data aggregation calculations.

[0068] Furthermore, the specific implementation method for data cleaning of incremental data in step 102 is as follows: The data acquisition device uses a streaming computing service to retrieve change data streams from multiple incremental data tables stored in the intermediate storage area in real time. Because incremental data is stored in the intermediate storage area using a daily table partitioning strategy, incremental data from different dates is scattered across different data tables. Since single-business queries or aggregation calculations often require accessing data across dates, it is necessary to integrate the scattered data streams. The streaming computing service, as a subscription client for the data transmission service, establishes a long-lived connection with the intermediate storage area, continuously monitoring the change status of each incremental data table. Once new data is written, the streaming computing service immediately detects and retrieves the corresponding changed data rows. Based on this, the streaming computing service performs streaming merging processing on the change data streams belonging to different incremental data tables, merging the data rows scattered across multiple tables into a wide table stream according to a unified table structure, logically forming a complete wide table from the previously fragmented data. After merging, the streaming computing service further performs quality checks on each data record in the wide table stream, identifying and removing abnormal data with missing fields or incorrect formats. Missing fields include situations where key dimension identifiers are empty or numerical indicators are negative, while format errors include situations where timestamp formats do not match or data types cannot be correctly converted.

[0069] By identifying and removing abnormal data with missing fields and incorrect formats, low-quality data is effectively prevented from entering the subsequent aggregation calculation stage, ensuring the accuracy and reliability of the aggregation results. At the same time, it avoids calculation errors or system anomalies caused by abnormal data, thus improving the robustness of the entire data processing chain.

[0070] After data cleaning, the streaming computing service uses a splitting logic to distribute the filtered wide table stream. In real-world business scenarios, different management levels have different needs for data granularity. Senior managers need to view account-level aggregate data to understand the overall campaign performance, mid-level operations staff need to view group-level granular data for strategy analysis, and frontline staff need to view campaign-level atomic data to evaluate the effectiveness of specific creative materials.

[0071] Therefore, the streaming computing service divides the wide table stream into multiple independent computing streams according to preset splitting rules based on different business levels. Subsequently, the streaming computing service performs aggregation calculations on the numerical indicators in each computing stream based on time windows. At the account level, the streaming computing service uses the account identifier and time identifier as a composite primary key to accumulate and sum the numerical indicators in the split wide table streams, generating account-level summary data. This level of data reflects the overall performance of a single account within a specific time range. At the group and plan levels, the streaming computing service uses the group identifier and plan identifier as grouping criteria, respectively, and combines them with the account identifier and timestamp to aggregate the corresponding numerical indicators for each level, generating detailed report data for the corresponding business level. All the aggregation calculations at each level are completed in real-time within the set time window, and the start and end times of the window can be flexibly configured according to business needs, such as rolling execution by hour or day.

[0072] By implementing a traffic splitting processing logic, parallel computation of data across multiple business levels, such as accounts, groups, and plans, is achieved. Aggregation between different levels does not interfere with each other, significantly improving computational efficiency. Combined with a time window aggregation mechanism, the accuracy of aggregation computation in the time dimension is guaranteed, avoiding the problem of data confusion across time zones or periods.

[0073] In practice, the data cleaning and multidimensional aggregation calculation described above correspond to the different processing flows shown in the figures of this application. Figure 2 The flowchart illustrates the synchronization and processing of daily-level account, group, and plan data. In practice, the data acquisition device captures daily-level incremental data from the source database via a data transmission service and synchronizes it to the corresponding date's incremental data table in the intermediate storage area. The streaming computing service retrieves these incremental data streams from the intermediate storage area in real time, merges change data streams belonging to different sub-tables to generate a wide table stream, and then identifies and removes abnormal data from the wide table stream. After cleaning, the streaming computing service aggregates account-level summary data using account identifier and time identifier as composite primary keys, aggregates group-level detailed report data using group identifier as grouping basis, and aggregates plan-level detailed report data using plan identifier as grouping basis. After the above three levels of data are aggregated in parallel at the daily level, the data distribution module writes them into their respective result tables in the target storage space.

[0074] Figure 3 This diagram illustrates the synchronization and processing flow of hourly account, group, and schedule data. Figure 2The processing logic is the same, the difference being that the time granularity of data synchronization and aggregation calculation is refined from the daily level to the hourly level. In specific implementation, the data transmission service captures hourly incremental data from the source database and synchronizes it to the intermediate storage area. The streaming computing service also performs merge cleaning and split aggregation operations, generating hourly account-level summary data using account identifier and time identifier as a composite primary key, and generating hourly group-level and plan-level detailed report data using group identifier and plan identifier as grouping criteria. The hourly aggregation results reflect the effect change trend at a finer time granularity, suitable for monitoring and optimization scenarios with higher real-time requirements.

[0075] Figure 4 This shows a flowchart illustrating the synchronization and processing of daily-level material data. Figure 2 and Figure 3 The difference lies in the fact that this process focuses on data processing at the specific business level of materials. In practice, the data transmission service captures daily incremental material data from the source database and synchronizes it to the intermediate storage area. The streaming computing service merges and cleans the incremental material data scattered across various tables to generate a wide table stream. Then, based on the material identifier, it aggregates the numerical indicators in the wide table stream to generate detailed report data at the material level. Finally, the data distribution module writes this data into the corresponding material result table in the target storage space. This process is similar to... Figure 2 , Figure 3 Together, they form a complete data processing system covering multiple business levels such as accounts, groups, plans, and materials. Each process is independent and runs in parallel without affecting the others.

[0076] In this embodiment of the invention, during the multidimensional aggregation computation performed by the streaming computing service, the data acquisition device periodically creates snapshots of the running state during the processing and persistently stores these snapshots in a reliable storage medium. The snapshot mechanism is specifically implemented as follows: the streaming computing service, based on the Flink framework's Checkpoint mechanism, periodically generates globally consistent snapshots at preset time intervals. These snapshots record the current processing progress, the state data of each computation operator, and the consumption point information of the processed data. During normal processing, each snapshot is persisted to a distributed file system or object storage after it is generated, ensuring that the state data remains accessible even in the event of node failure.

[0077] During the process of writing target business data to the target storage space, the data acquisition device adopts a two-phase commit protocol, ensuring that the effective state of the target business data and the persistent storage state of the snapshot are mutually conditional. Specifically, after the streaming computing service completes the data aggregation calculation for a batch, the data distribution module begins writing the target business data to the target storage space. This write operation is coordinated with the snapshot generation and persistence operations. Only after the target business data is successfully written to the target storage space and the transaction is committed is the corresponding state snapshot marked as complete and persisted; conversely, only after the snapshot is persisted will subsequent batch aggregation calculations and data write operations be triggered. Through this mechanism, the data write operation and state storage achieve atomic consistency, meaning that they either succeed simultaneously or fail simultaneously, with no intermediate states.

[0078] When the data acquisition device detects an anomaly in the processing of the target business data, such as a node failure, network jitter, or a computing node crash, the system automatically restores its operational state from the most recent persistent snapshot. During the recovery process, the streaming computing service reads the consumption points and the status data of each operator recorded in the snapshot, restarts the consumption of incremental data from the interruption point, and continues to execute the aggregation computing task. Subsequently, the data distribution module writes the target business data calculated after recovery back to the target storage space.

[0079] By binding data write operations with the atomic consistency of snapshot persistence through a two-phase commit protocol, the system ensures that data records in the target storage space are not duplicated or omitted, achieving end-to-end exact once semantics. This is particularly suitable for sensitive financial data scenarios with extremely high data consistency requirements, such as data distribution amounts, avoiding misleading business decisions caused by data duplication or omission. When a processing task fails, the system can automatically restore its running state from the most recent persisted snapshot and continue execution without manual intervention, greatly improving the system's fault tolerance and self-repair capabilities, and ensuring the long-term stable operation of the data synchronization link.

[0080] During the process of distributing and writing target business data to the target storage space, the data distribution module adopts a batch insertion strategy. This strategy simultaneously writes multiple data records of the generated account-level summary data, group-level detailed report data, and plan-level detailed report data in a single database operation, thereby reducing network round trips and transaction overhead. Specifically, the batch insertion is implemented as follows: the data distribution module accumulates the target business data according to a preset batch size. When the accumulated number of records reaches the batch threshold or a timed trigger condition is met, a batch write operation is performed, submitting multiple records as a single batch to the target storage space.

[0081] Meanwhile, the data distribution module employs an update-insert strategy. For each data record to be written, it checks whether the record already exists in the target result table based on its primary key or unique identifier. If it doesn't exist, an insert operation is performed; otherwise, an update operation is performed. This strategy is implemented using proprietary syntax supported by the database, such as specific syntax in MySQL, and automatically executes an update operation when a unique key conflict occurs. The data at the account-level summary, group-level detailed report, and plan-level detailed report levels correspond to the preset full report result table, group report result table, and plan report result table in the target storage space, respectively. The data distribution module writes the data at each level to their respective result tables in parallel. Each write task is independent and does not affect the others, fully utilizing the parallel write capability of the target storage space.

[0082] By writing data from the account, group, and plan levels in parallel to their respective result tables, concurrent execution of the write task is achieved, ensuring that data at each level does not interfere with each other. This further improves the overall efficiency of data distribution. At the same time, it enables different business query scenarios, such as high-level overview dashboards, mid-level strategy analysis, and grassroots material evaluation, to directly access their respective required data tables without cross-table joins or additional secondary aggregation calculations, significantly reducing the query complexity and response latency of the upper-level business system.

[0083] In this embodiment of the application, before the data acquisition device listens to the change logs generated by the source database, a data subscription path from the source database to the business computing environment is first established.

[0084] like Figure 5 As shown, the source database is LianShan Cloud RDS, deployed within the LianShan Cloud environment on a third-party data platform side; the business computing environment is deployed in the Alibaba Cloud environment. These two belong to different cloud environments, resulting in cross-cloud network isolation and differences in underlying protocols. The data acquisition device establishes a persistent data subscription channel between LianShan Cloud RDS and Alibaba Cloud through the Data Transmission Service (DTS). In specific implementation, the DTS acts as middleware, first establishing a database protocol-based connection with the source database, LianShan Cloud RDS, to obtain access permissions to its log subscription interface; simultaneously, it establishes a downlink data transmission connection with the intermediate storage area of ​​Alibaba Cloud RDS on the business computing environment side. Through protocol conversion and adaptation mechanisms, the DTS shields the differences in underlying network protocols between LianShan Cloud and Alibaba Cloud, enabling the source database and business computing environment, belonging to different cloud environments, to interact through this data subscription channel.

[0085] Once established, this data subscription channel maintains a persistent connection. All subsequent change logs generated by the source database are continuously transmitted through this channel to the Alibaba Cloud RDS intermediate storage area on the business computing environment side, without the need for repeated connection establishment and release. During transmission, the data transmission service parses the captured change logs into standardized data records and encapsulates them in a standardized format, ensuring data identifiability and parsability during cross-cloud transmission. Throughout the transmission process, the data transmission service continuously monitors link availability and automatically attempts to reconnect in the event of network jitter or connection interruption, ensuring the long-term stable operation of the data subscription channel.

[0086] The data acquisition device captures change logs generated by the source database, LianShan Cloud RDS, in real time through Data Transmission Service (DTS). DTS continuously monitors the redo logs or binary logs of LianShan Cloud RDS, parsing each recorded data insertion, update, and deletion event to reconstruct the changed data rows as incremental data. During log parsing, DTS identifies the operation type and involved fields for each change event. For insertion events, it extracts all field values ​​for the newly added row; for update events, it extracts the new values ​​of the modified fields; and for deletion events, it extracts the primary key identifier of the deleted row. Subsequently, DTS writes the parsed incremental data to the Alibaba Cloud RDS intermediate storage area on the business environment side in real time via network transmission protocols. This intermediate storage area serves as a data buffer layer between the source and computing engines, receiving incremental data synchronized from the source. The intermediate storage area organizes data using a daily table partitioning strategy. DTS writes incremental data rows to the corresponding date's incremental data table based on the occurrence date of the data change event, maintaining consistency in field type mapping between the source and destination during the writing process to ensure that the precision of key fields such as timestamps and monetary values ​​is not lost. In this way, every time the source database undergoes a data change, the corresponding incremental data can be synchronized to the intermediate storage area within milliseconds, realizing the real-time flow of data from the source to the business environment.

[0087] With incremental data synchronized to the intermediate storage area, the data acquisition device reads the persisted incremental data records from the Alibaba Cloud RDS intermediate storage area in real time through the Flink data processing service. As a subscription client of DTS, the Flink data processing service establishes a long-lived connection with the intermediate storage area, continuously monitoring the change status of each incremental data table. Once new data is written to the intermediate storage area, the Flink job immediately detects it and pulls the corresponding changed data rows. Since the source data is scattered across multiple daily-partitioned incremental data tables, the Flink job first performs a Union operation to merge the data streams scattered across different partitions into a unified wide table stream. Based on this, the Flink job performs a quality check on each data record in the wide table stream, identifying and removing abnormal data with missing fields or format errors. Missing fields include empty key dimension identifiers or negative numerical values, while format errors include mismatched timestamp formats or incorrect data type conversions.

[0088] After data cleaning, the Flink job uses a splitting processing logic to split the filtered wide table stream into multiple independent computation streams based on different business levels. Subsequently, the Flink job performs aggregation calculations on the numerical indicators in each computation stream based on time windows. It accumulates and sums the numerical indicators using account identifier and time identifier as a composite primary key to generate account-level summary data, generates group-level detailed report data using group identifier as the grouping basis, and generates plan-level detailed report data using plan identifier as the grouping basis. This multi-dimensional aggregation calculation transforms atomic-level incremental data into aggregated results across multiple business levels, i.e., the target business data. Throughout the aggregation calculation process, the Flink job periodically creates globally consistent snapshots of the processing status based on the Checkpoint mechanism and persists these snapshots to reliable storage media. These snapshots record the current processing progress, the status data of each computation operator, and the consumption point information of the processed data.

[0089] After the target business data is generated, the data acquisition device distributes and writes the generated target business data to the target storage space through the Flink Sink connector. Figure 5The Alibaba Cloud RDS target database, x-magnet, is shown. The data acquisition device, based on the business level type of the target business data, writes the account-level summary data into a preset full report result table, the group-level detailed report data into a group report result table, and the plan-level detailed report data into a plan report result table. During the writing process, the data acquisition device uses a batch insertion strategy to write multiple data records simultaneously in a single database operation, significantly reducing network round trips and transaction overhead. Simultaneously, it employs an update insertion strategy; for each data record to be written, it checks whether the record already exists in the target result table based on its primary key or unique identifier. If it does not exist, an insertion operation is performed; if it exists, an update operation is performed. The data at the above three levels is written in parallel to its corresponding result tables, with each writing task independent and unaffected by others. Combined with the aforementioned snapshot mechanism, the data acquisition device ensures that the effective state of the target business data and the persistent storage state of the snapshot are mutually dependent. That is, only after the target business data is successfully written to the target storage space is the corresponding state snapshot marked as complete and persisted, thereby ensuring atomic consistency between data writing operations and state storage. When the data acquisition device detects an abnormality in the execution of the data processing task, the system automatically restores the running state from the most recent persistent snapshot and continues to execute, ensuring the uniqueness and integrity of the data records in the target storage space.

[0090] Through the above implementation methods, this invention achieves high-throughput, low-latency data synchronization based on database log subscription and streaming computing. Compared to traditional API polling schemes, the method provided by this invention achieves significant improvements in data acquisition real-time performance, link stability, data quality reliability, and storage query efficiency.

[0091] The data acquisition device provided in the embodiments of the present invention is described below. The data acquisition device described below and the data acquisition method described above can be referred to and correspond to each other.

[0092] This invention provides a data acquisition device, such as... Figure 6 As shown, it includes: The data synchronization module 610 is used to listen to the change log generated by the source database, obtain the incremental data of the source database, and synchronize the incremental data to the intermediate storage area. The data processing module 620 is used to perform data cleaning and multi-dimensional aggregation calculations on the incremental data to obtain the corresponding target business data. The data distribution module 630 is used to distribute and write the target business data into the target storage space.

[0093] Figure 7 An example is a schematic diagram of the physical structure of an electronic device, such as... Figure 7As shown, the electronic device may include a processor 810, a communications interface 820, a memory 830, and a communication bus 840. The processor 810, communications interface 820, and memory 830 communicate with each other via the communication bus 840. The processor 810 can call logical instructions in the memory 830 to execute a data acquisition method. This method includes: monitoring change logs generated by a source database to acquire incremental data from the source database and synchronizing the incremental data to an intermediate storage area; performing data cleaning and multi-dimensional aggregation calculations on the incremental data to obtain corresponding target business data; and distributing and writing the target business data to a target storage space.

[0094] Furthermore, the logical instructions in the aforementioned memory 830 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.

[0095] 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 acquisition method provided by the above methods. The method includes: listening to the change log generated by the source database to obtain incremental data of the source database and synchronizing the incremental data to an intermediate storage area; performing data cleaning and multi-dimensional aggregation calculation on the incremental data to obtain corresponding target business data; and distributing and writing the target business data to a target storage space.

[0096] 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 the data acquisition method provided by the above methods. The method includes: listening to the change log generated by the source database, acquiring incremental data of the source database, and synchronizing the incremental data to an intermediate storage area; performing data cleaning and multi-dimensional aggregation calculation on the incremental data to obtain corresponding target business data; and distributing and writing the target business data into the target storage space.

[0097] 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.

[0098] 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.

[0099] 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 acquisition method, characterized in that, The method includes: By monitoring the change logs generated by the source database, incremental data from the source database is obtained, and the incremental data is synchronized to the intermediate storage area. The incremental data is cleaned and subjected to multidimensional aggregation calculations to obtain the corresponding target business data; The target business data is distributed and written to the target storage space.

2. The data acquisition method according to claim 1, characterized in that, By monitoring the change logs generated by the source database, incremental data from the source database is obtained, including: The change logs generated by the source database are captured in real time using a data transmission service. The change logs include redo logs or binary logs. The data change events captured in the change log are parsed by the data transmission service to obtain the parsed incremental data.

3. The data acquisition method according to claim 1 or 2, characterized in that, Synchronizing the incremental data to the intermediate storage area includes: Multiple incremental data tables are created in the intermediate storage area using a daily table partitioning strategy, and the incremental data is written to the corresponding incremental data tables in real time while maintaining consistent field type mapping between the source and destination ends.

4. The data acquisition method according to claim 1, characterized in that, Data cleaning of the incremental data includes: Through streaming computing services, change data streams stored in multiple incremental data tables within the intermediate storage area can be retrieved in real time. The changed data streams belonging to different incremental data tables are merged in a streaming manner to generate corresponding wide table streams; Identify and remove abnormal data from the wide table stream that has missing fields or incorrect formatting.

5. The data acquisition method according to claim 4, characterized in that, The target business data includes the account-level summary data and the detailed report data; The incremental data is aggregated in multiple dimensions to obtain the corresponding target business data, including: The filtered wide table stream is split using a splitting processing logic, and aggregation calculations are performed based on a time window. Using account identifier and time identifier as a joint primary key, the numerical indicators in the split wide table stream are aggregated to generate account-level summary data; Based on the identifier of each business level, the numerical indicators in the split wide table stream are aggregated to generate detailed report data corresponding to the business level.

6. The data acquisition method according to claim 1, characterized in that, The process of performing the multidimensional aggregation calculation also includes: periodically creating snapshots of the running state during the processing and persistently storing the snapshots; The process of writing the target business data into the target storage space includes: The effective state of the target business data and the persistent storage state of the snapshot are mutually dependent to ensure that the data write operation and the state storage have atomic consistency. When an abnormality is detected in the processing task of the target business data, the running state is restored based on the most recently persisted snapshot and execution continues to ensure the uniqueness and integrity of the data records in the target storage space.

7. The data acquisition method according to claim 5, characterized in that, Distributing and writing the target business data to the target storage space includes: Using either a batch insertion strategy or an update insertion strategy, the generated account-level summary data, group-level detailed report data, and plan-level detailed report data are written in parallel into the preset result tables at each level in the target storage space.

8. The data acquisition method according to claim 1, characterized in that, Before monitoring the change logs generated by the source database, the following is also included: A data subscription path is constructed from the source database to the business computing environment. The data subscription path adapts to the network protocol differences between the source database and the business computing environment, and the captured change logs are continuously transmitted to the business computing environment.

9. A data acquisition device, characterized in that, The device includes: The data synchronization module is used to listen to the change logs generated by the source database, obtain the incremental data of the source database, and synchronize the incremental data to the intermediate storage area. The data processing module is used to perform data cleaning and multi-dimensional aggregation calculations on the incremental data to obtain the corresponding target business data; The data distribution module is used to distribute and write the target business data to the target storage space.

10. 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 acquisition method as described in any one of claims 1 to 8.