Order real-time data management method and system, computer equipment and storage medium

By performing streaming computing and offline data comparison on business data on the Kafka data platform, the problem of difficulty in judging data accuracy in streaming computing is solved, the accuracy repair and monitoring of real-time data are realized, and the data of the e-commerce platform is improved. management capabilities.

CN118656403APending Publication Date: 2024-09-17VIPSHOP (GUANGZHOU) SOFTWARE CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410853845.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-09-17

AI Technical Summary

Technical Problem

Existing streaming computing cannot obtain the specific calculation process and lacks a monitoring and management mechanism, which makes it impossible to judge the accuracy of the data, especially in e-commerce where the timeliness and accuracy of real-time data are required.

Method used

Obtain business data through the Kafka data platform for streaming calculations, obtain active order trend charts, compare real-time data and offline data in the preset interval, and use offline data to repair real-time data if anomalies are found to ensure data accuracy.

Benefits of technology

It realizes the accuracy repair and monitoring of real-time data, ensures the accuracy and timeliness of data, and improves the data management capabilities of the e-commerce platform.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118656403A
    Figure CN118656403A
Patent Text Reader

Abstract

The invention discloses an order real-time data management method and system, computer equipment and a storage medium, and relates to the field of data management, the method is applied to a kafka data platform, and the method comprises the steps: obtaining business data through the kafka data platform, and carrying out the streaming calculation of the business data, and obtaining offline data; obtaining an activity order trend chart, reading real-time data of a preset interval in the activity order trend chart, and comparing the real-time data of the preset interval with offline data of the preset interval; and in response to the real-time data exception, adopting the offline data to cover the real-time data in the preset interval. According to the method, the full data can be queried, the real-time data is analyzed and verified through the offline data obtained through calculation, and when the real-time data is abnormal, the offline data is adopted to repair the real-time data, so that the accuracy of the real-time data is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of data management, and in particular to a method, system, computer device and storage medium for real-time order data management. Background Art

[0002] In the context of modernization, e-commerce has obviously become an important channel for product sales and will occupy an even more important position in the future. In order to further open up a larger consumer market and help companies promote their products to more people, e-commerce platforms often launch various promotional activities to attract consumers and thereby increase corporate sales.

[0003] As a result, companies are paying more and more attention to understanding consumer needs through rich data and optimizing product strategies to increase sales, so they have put forward higher requirements for the timeliness and accuracy of business data collection. Currently, streaming (Flink AI platform) computing is mainly used to collect and analyze real-time data. However, the existing streaming computing cannot obtain the specific computing process and lacks a monitoring and management mechanism, so the accuracy of the data cannot be judged. Summary of the invention

[0004] In order to solve at least one of the problems mentioned in the above background technology, the present application provides a real-time data management method, system, computer equipment and storage medium for orders, which can fully query the full amount of data and analyze and verify the real-time data through the calculated offline data. When the real-time data is abnormal, the real-time data is repaired using offline data to ensure the accuracy of the real-time data.

[0005] The specific technical solutions provided by the embodiments of this application are as follows:

[0006] In a first aspect, a method for real-time order data management is provided, which is applied to a Kafka data platform, and the method comprises:

[0007] Acquire business data through the Kafka data platform, and perform streaming calculation on the business data to obtain offline data;

[0008] Obtain an active order trend graph, read real-time data of a preset interval in the active order trend graph, and compare the real-time data of the preset interval with the offline data of the preset interval;

[0009] In response to the real-time data being abnormal, the real-time data in the preset interval is covered by the offline data.

[0010] In a specific embodiment, the business data is obtained through the Kafka data platform, and streaming calculation is performed on the business data to obtain offline data, which specifically includes:

[0011] Acquire business data through the Kafka data platform, perform stream computing on the business data, obtain business data computing results, and save the business data computing results in a data container;

[0012] Obtain the business data of the Kafka data platform, and collect the business data calculation results into the data warehouse through the data container and according to the preset dimensions;

[0013] The business data calculation results in the data warehouse are counted to form a data report, and the data report is set to be sent to a kafka queue to form the offline data.

[0014] In a specific embodiment, the method further comprises:

[0015] Using a preset data script to clean the business data calculation results in the data warehouse to form a data model;

[0016] The data model is associated with the real-time data to form the data report.

[0017] In a specific embodiment, the method further comprises:

[0018] Obtain offline data in any preset interval of the offline data, and verify whether there is real-time data in the corresponding preset interval in the active order trend chart;

[0019] In response to the absence of real-time data in the preset interval, an alarm is issued.

[0020] In a specific embodiment, the method further comprises:

[0021] In response to the presence of real-time data in the preset interval, reading the real-time data of the preset interval in the active order trend chart, and acquiring the offline data corresponding to the preset interval;

[0022] Comparing the real-time data of the preset interval with the offline data of the preset interval to see whether they are consistent;

[0023] In response to the real-time data of the preset interval being inconsistent with the offline data of the preset interval, the offline data is used to cover the real-time data of the preset interval, and the active order trend chart is updated.

[0024] In a specific embodiment, the method further comprises:

[0025] Acquire the business data type, and acquire the user operation behavior corresponding to each business data type, wherein the user operation behavior includes viewing products, receiving coupons, and collecting products;

[0026] The user operation behavior is combined with the offline data to perform streaming computing to form real-time traffic data.

[0027] In a specific embodiment, the method further comprises:

[0028] Set the preset interval time to poll the key value corresponding to the preset interval in all active order trend charts;

[0029] It is queried whether the key value exists. In response to the key value not existing, the real-time data is abnormal.

[0030] In a second aspect, a real-time order data management system is provided to implement the real-time order data management method as described above, and is applied to a Kafka data platform. The system includes:

[0031] A computing module, used to obtain business data through the Kafka data platform, and perform streaming computing on the business data to obtain offline data;

[0032] An analysis module is used to obtain an active order trend graph, read real-time data of a preset interval in the active order trend graph, and compare the real-time data of the preset interval with the offline data of the preset interval;

[0033] The execution module is used for, in response to the real-time data being abnormal, using the offline data to cover the real-time data in the preset interval.

[0034] In a third aspect, an electronic device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the following steps are implemented:

[0035] Step A: Obtain business data through the Kafka data platform, and perform stream computing on the business data to obtain offline data;

[0036] Step B: obtaining an active order trend graph, reading real-time data of a preset interval in the active order trend graph, and comparing the real-time data of the preset interval with the offline data of the preset interval;

[0037] Step C: In response to the real-time data being abnormal, using the offline data to cover the real-time data in the preset interval.

[0038] In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0039] Step A: Obtain business data through the Kafka data platform, and perform stream computing on the business data to obtain offline data;

[0040] Step B: obtaining an active order trend graph, reading real-time data of a preset interval in the active order trend graph, and comparing the real-time data of the preset interval with the offline data of the preset interval;

[0041] Step C: In response to the real-time data being abnormal, using the offline data to cover the real-time data in the preset interval.

[0042] The embodiments of the present application have the following beneficial effects:

[0043] 1. The solution provided in the embodiment of the present application obtains the business data of the e-commerce platform through the Kafka data platform, and performs streaming calculations on the business data to obtain offline data, obtains the activity order trend chart of each sales activity, reads the real-time data of a preset interval in the activity order trend chart, and compares the real-time data with the offline data. If the comparison shows that the real-time data is abnormal, the offline data is set to cover the real-time data of the preset interval to repair and update the activity order trend chart. The real-time data is analyzed and verified by the calculated offline data. When the real-time data is abnormal, the offline data is used to repair the real-time data to ensure the accuracy of the real-time data.

[0044] 2. By setting a scheduled task, the key value corresponding to the preset interval in the active order trend chart is polled once at a preset interval. If the key value exists, it is determined that the real-time data exists. At this time, the real-time data is further verified. If the key value does not exist, it is determined that the real-time data does not exist, and an alarm is directly issued. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0046] Figure 1 A schematic diagram showing an application environment according to the present application;

[0047] Figure 2 A schematic diagram showing a method for real-time order data management according to the present application;

[0048] Figure 3 A schematic diagram showing an active order trend chart according to the present application;

[0049] Figure 4 A schematic diagram showing the process of polling the active order trend graph at preset intervals in the present application;

[0050] Figure 5 A schematic diagram showing a real-time order data management system according to the present application;

[0051] Figure 6 A schematic diagram of a computer device according to the present application is shown. DETAILED DESCRIPTION

[0052] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0053] The real-time order data management method provided in this application can be applied to Figure 1 In the application environment shown. Among them, the terminal 102 communicates with the server 104 through the network. Obtain business data through the kafka data platform, and perform streaming calculations on the business data to obtain offline data; obtain the active order trend chart, read the real-time data of the preset interval in the active order trend chart, and compare the real-time data in the preset interval with the offline data in the preset interval; in response to the real-time data abnormality, use the offline data to cover the real-time data in the preset interval. Among them, the terminal 102 can be but is not limited to various personal computers, laptops, smart phones, tablets and portable wearable devices, and the server 104 can be implemented with an independent server or a server cluster consisting of multiple servers.

[0054] In one embodiment, Figure 2 As shown, a real-time order data management method is provided, which is applied to the Kafka data platform. Figure 1 The terminal in is used as an example to illustrate, including the following steps:

[0055] Step 1: Obtain business data through the Kafka data platform, and perform streaming calculations on the business data to obtain offline data.

[0056] According to the business data type, the business data generated by the Kafka data platform is monitored, such as order, exposure, user and other data, and streaming calculation is performed through flinkSql to obtain offline data; specifically including: obtaining business data through the Kafka data platform, and streaming calculation of the business data to obtain business data calculation results, and saving the business data calculation results to the data container; obtaining the business data of the Kafka data platform, and collecting the business data calculation results to the data warehouse through the data container and according to the preset dimensions; counting the business data calculation results in the data warehouse to form a data report, and setting the data report to be sent out to the Kafka queue to form the offline data.

[0057] It should be noted that the results of real-time calculations by flinkSql are saved in a data container, which includes but is not limited to Redis, MySQL, and es. The system data generated by kafka is stored in MySQL by hours, minutes, natural days, and other dimensions and then collected in the data warehouse.

[0058] Furthermore, in order to improve data processing efficiency and accuracy, a preset data script is used to clean the business data calculation results in the data warehouse to form a data model; and the data model is associated with the real-time data to form the data report.

[0059] Specifically, a data script for processing data is pre-edited, and by executing the step codes in the preset data script, the data in the data warehouse is cleaned and a data model is formed. The data model and real-time data are combined to form a data report, and the final statistical data results are written into the Kafka queue. That is, the data written into the Kafka queue is offline data.

[0060] Step 2: Obtain an active order trend chart, read real-time data of a preset interval in the active order trend chart, and compare the real-time data of the preset interval with the offline data of the preset interval.

[0061] When carrying out related activities, such as the "Double 11" event, the order trend chart of the promotion activity will be displayed on the display terminal, such as Figure 3 As shown, an active order trend chart with time as the dimension and order quantity as the vertical axis shows the change of order quantity within the time interval. Specifically, an offline monitoring task is set to monitor the data changes in the active order trend chart, obtain offline data in any preset interval in the offline data, and verify whether there is real-time data in the corresponding preset interval in the active order trend chart; in response to the absence of real-time data in the preset interval, an alarm is issued.

[0062] It should be noted that the preset interval in this embodiment is set as an interval range value or a point value, for example, the preset interval is the order variable trend within the time period of "2023-11-118:00~2023-11-118:30", or the preset interval is the order volume corresponding to the moment of "2023-11-1110:01". By obtaining the offline data within the preset interval corresponding to the offline data, and comparing and analyzing it with the offline data obtained in the active order trend chart, it is possible to verify whether the real-time data in the active order trend chart is accurate.

[0063] In a specific embodiment, Figure 4 As shown, by setting an interval preset time, the key value corresponding to the preset interval in all active order trend charts is polled; it is queried whether the key value exists. In response to the non-existence of the key value, the real-time data is abnormal. By polling the key value corresponding to the real-time data in the active order trend chart, it is judged whether the real-time data exists. If the key value exists, it is determined that the corresponding real-time data in the active order trend chart exists; if the key value does not exist, it is determined that the corresponding real-time data in the active order trend chart does not exist. This solution is used to improve the efficiency and accuracy of verifying the corresponding real-time data in the active order trend chart.

[0064] It should be noted that in this embodiment, sales-corn is used to poll once at a preset time interval, specifically, once every five minutes.

[0065] Step 3: In response to the real-time data being abnormal, the real-time data in the preset interval is covered by the offline data.

[0066] In response to the existence of real-time data in the preset interval, the accuracy of the real-time data in the preset interval is further verified. Specifically, in response to the existence of real-time data in the preset interval, the real-time data of the preset interval in the active order trend chart is read to obtain the offline data corresponding to the preset interval; the real-time data of the preset interval is compared with the offline data of the preset interval to see if they are consistent; in response to the real-time data of the preset interval being inconsistent with the offline data of the preset interval, the real-time data of the preset interval is overwritten with the offline data, and the active order trend chart is updated.

[0067] Specifically, for example, during the "Double 11" event, the order volume corresponding to the preset interval "2023-11-1110:01" in the activity order trend chart is obtained, and the order volume of offline data corresponding to the same preset interval "2023-11-1110:01" in the kafka queue is further obtained. The real-time data order volume and the offline data order volume are compared. If the difference between the two exceeds the preset range, the real-time data is abnormal. At this time, the offline data order volume is used to cover the real-time data order volume, so that the order volume corresponding to the moment "2023-11-1110:01" in the activity order trend chart is the offline data order volume, and the latest activity order trend chart is updated to facilitate the next polling.

[0068] In a specific embodiment, it also includes obtaining the business data type and obtaining the user operation behavior corresponding to each business data type, wherein the user operation behavior includes viewing products, receiving coupons, and collecting products; combining the user operation behavior with the offline data for stream computing to form real-time traffic data. Through stream computing, the user's traffic for different types of products is analyzed to obtain the user's preference data, so as to recommend the user the type of product that meets the user's preference and improve the efficient service to the user.

[0069] Through the scheme of this embodiment, the full amount of data can be queried in full, and the real-time data can be analyzed and verified through the calculated offline data. When the real-time data is abnormal, the real-time data is repaired using the offline data to ensure the accuracy of the real-time data.

[0070] It should be understood that although Figure 2 and Figure 4 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Figure 2 and Figure 4 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.

[0071] In one embodiment, Figure 5 As shown, a real-time order data management system is provided, which is used to implement the real-time order data management method as described above, and is applied to the Kafka data platform. The system includes:

[0072] A computing module, used to obtain business data through the Kafka data platform, and perform streaming computing on the business data to obtain offline data;

[0073] An analysis module is used to obtain an active order trend graph, read real-time data of a preset interval in the active order trend graph, and compare the real-time data of the preset interval with the offline data of the preset interval;

[0074] The execution module is used for, in response to the real-time data being abnormal, using the offline data to cover the real-time data in the preset interval.

[0075] In a specific embodiment, the computing module is also used to obtain business data through the Kafka data platform, perform streaming computing on the business data, obtain business data calculation results, and save the business data calculation results in a data container; obtain the business data of the Kafka data platform, and collect the business data calculation results into a data warehouse through the data container and according to preset dimensions; count the business data calculation results in the data warehouse to form a data report, and set the data report to be sent out to the Kafka queue to form the offline data.

[0076] In a specific embodiment, the calculation module is also used to use a preset data script to clean the business data calculation results in the data warehouse to form a data model; and associate the data model with the real-time data to form the data report.

[0077] In a specific embodiment, it also includes an early warning module for obtaining offline data in any preset interval of the offline data, and verifying whether there is real-time data in the corresponding preset interval in the active order trend chart; in response to the absence of real-time data in the preset interval, an alarm is issued.

[0078] In a specific embodiment, the execution module is also used to, in response to the existence of real-time data in the preset interval, read the real-time data of the preset interval in the active order trend chart, and obtain the offline data corresponding to the preset interval; compare whether the real-time data of the preset interval is consistent with the offline data of the preset interval; in response to the real-time data of the preset interval being inconsistent with the offline data of the preset interval, use the offline data to cover the real-time data of the preset interval, and update the active order trend chart.

[0079] In a specific embodiment, the computing module is also used to obtain the business data type and obtain the user operation behavior corresponding to each of the business data types, where the user operation behavior includes viewing products, collecting coupons, and collecting products; and combine the user operation behavior with the offline data to perform streaming computing to form real-time traffic data.

[0080] In a specific embodiment, it also includes a timing polling module for setting a preset interval time to poll the key value corresponding to the preset interval in all active order trend charts; query whether the key value exists, and in response to the key value not existing, the real-time data is abnormal.

[0081] For the specific definition of the real-time order data management system, please refer to the definition of the real-time order data management method above, which will not be repeated here. Each module in the above-mentioned real-time order data management system can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0082] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 6 As shown. The computer device includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store offline data. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a real-time order data management method is implemented.

[0083] Those skilled in the art will understand that Figure 6 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0084] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program:

[0085] Step 101: Obtain business data through the Kafka data platform, and perform streaming calculation on the business data to obtain offline data;

[0086] Step 102: obtaining an active order trend graph, reading real-time data of a preset interval in the active order trend graph, and comparing the real-time data of the preset interval with the offline data of the preset interval;

[0087] Step 103: In response to the real-time data being abnormal, using the offline data to cover the real-time data in the preset interval.

[0088] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0089] The business data is obtained through the Kafka data platform, and streaming calculations are performed on the business data to obtain business data calculation results, and the business data calculation results are saved in a data container; the business data of the Kafka data platform is obtained, and the business data calculation results are collected into a data warehouse through the data container and according to preset dimensions; the business data calculation results in the data warehouse are counted to form a data report, and the data report is set to be sent out of the warehouse to the Kafka queue to form the offline data.

[0090] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0091] The business data calculation results in the data warehouse are cleaned using a preset data script to form a data model; and the data model is associated with the real-time data to form the data report.

[0092] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0093] Obtain offline data in any preset interval of the offline data, and verify whether there is real-time data in the corresponding preset interval in the active order trend chart; in response to the absence of real-time data in the preset interval, issue an alarm.

[0094] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0095] In response to the existence of real-time data in the preset interval, the real-time data of the preset interval in the active order trend chart is read to obtain the offline data corresponding to the preset interval; the real-time data of the preset interval is compared with the offline data of the preset interval to see if they are consistent; in response to the real-time data of the preset interval being inconsistent with the offline data of the preset interval, the offline data is used to cover the real-time data of the preset interval, and the active order trend chart is updated.

[0096] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0097] The business data type is obtained, and the user operation behavior corresponding to each of the business data types is obtained, wherein the user operation behavior includes viewing products, collecting coupons, and collecting products; the user operation behavior is combined with the offline data for streaming computing to form real-time traffic data.

[0098] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0099] Set a preset interval time, poll the key value corresponding to the preset interval in all active order trend charts; query whether the key value exists, and in response to the key value not existing, the real-time data is abnormal.

[0100] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0101] Step 201: Acquire business data through the Kafka data platform, and perform stream computing on the business data to obtain offline data;

[0102] Step 202: obtaining an active order trend graph, reading real-time data of a preset interval in the active order trend graph, and comparing the real-time data of the preset interval with the offline data of the preset interval;

[0103] Step 203: In response to the real-time data being abnormal, using the offline data to cover the real-time data in the preset interval.

[0104] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0105] The business data is obtained through the Kafka data platform, and streaming calculations are performed on the business data to obtain business data calculation results, and the business data calculation results are saved in a data container; the business data of the Kafka data platform is obtained, and the business data calculation results are collected into a data warehouse through the data container and according to preset dimensions; the business data calculation results in the data warehouse are counted to form a data report, and the data report is set to be sent out of the warehouse to the Kafka queue to form the offline data.

[0106] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0107] The business data calculation results in the data warehouse are cleaned using a preset data script to form a data model; and the data model is associated with the real-time data to form the data report.

[0108] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0109] Obtain offline data in any preset interval of the offline data, and verify whether there is real-time data in the corresponding preset interval in the active order trend chart; in response to the absence of real-time data in the preset interval, issue an alarm.

[0110] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0111] In response to the existence of real-time data in the preset interval, the real-time data of the preset interval in the active order trend chart is read to obtain the offline data corresponding to the preset interval; the real-time data of the preset interval is compared with the offline data of the preset interval to see if they are consistent; in response to the real-time data of the preset interval being inconsistent with the offline data of the preset interval, the offline data is used to cover the real-time data of the preset interval, and the active order trend chart is updated.

[0112] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0113] The business data type is obtained, and the user operation behavior corresponding to each of the business data types is obtained, wherein the user operation behavior includes viewing products, collecting coupons, and collecting products; the user operation behavior is combined with the offline data for streaming computing to form real-time traffic data.

[0114] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0115] Set a preset interval time, poll the key value corresponding to the preset interval in all active order trend charts; query whether the key value exists, and in response to the key value not existing, the real-time data is abnormal.

[0116] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0117] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0118] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A real-time order data management method, applied to the Kafka data platform, characterized in that: The method comprises: Acquire business data through the Kafka data platform, and perform streaming calculation on the business data to obtain offline data; Obtain an active order trend graph, read real-time data of a preset interval in the active order trend graph, and compare the real-time data of the preset interval with the offline data of the preset interval; In response to the real-time data being abnormal, the real-time data in the preset interval is covered by the offline data.

2. The real-time order data management method according to claim 1, characterized in that: The business data is obtained through the Kafka data platform, and stream computing is performed on the business data to obtain offline data, specifically including: Acquire business data through the Kafka data platform, perform stream computing on the business data, obtain business data computing results, and save the business data computing results in a data container; Obtain the business data of the Kafka data platform, and collect the business data calculation results into the data warehouse through the data container and according to the preset dimensions; The business data calculation results in the data warehouse are counted to form a data report, and the data report is set to be sent to a kafka queue to form the offline data.

3. The real-time order data management method according to claim 2, characterized in that: The method further comprises: Using a preset data script to clean the business data calculation results in the data warehouse to form a data model; The data model is associated with the real-time data to form the data report.

4. The real-time order data management method according to any one of claims 1, 2 or 3, characterized in that: The method further comprises: Obtain offline data in any preset interval of the offline data, and verify whether there is real-time data in the corresponding preset interval in the active order trend chart; In response to the absence of real-time data in the preset interval, an alarm is issued.

5. The real-time order data management method according to claim 4 is characterized in that: The method further comprises: In response to the presence of real-time data in the preset interval, reading the real-time data of the preset interval in the active order trend chart, and acquiring the offline data corresponding to the preset interval; Comparing the real-time data of the preset interval with the offline data of the preset interval to see whether they are consistent; In response to the real-time data of the preset interval being inconsistent with the offline data of the preset interval, the offline data is used to cover the real-time data of the preset interval, and the active order trend chart is updated.

6. The real-time order data management method according to claim 2, characterized in that: The method further comprises: Acquire the business data type, and acquire the user operation behavior corresponding to each business data type, wherein the user operation behavior includes viewing products, receiving coupons, and collecting products; The user operation behavior is combined with the offline data to perform streaming computing to form real-time traffic data.

7. The real-time order data management method according to claim 4, characterized in that: The method further comprises: Set the preset interval time to poll the key values ​​corresponding to the preset interval in all active order trend charts; It is queried whether the key value exists. In response to the key value not existing, the real-time data is abnormal.

8. A real-time order data management system, used to implement the real-time order data management method according to any one of claims 1 to 7, applied to a Kafka data platform, characterized in that: The system comprises: A computing module, used to obtain business data through the Kafka data platform, and perform streaming computing on the business data to obtain offline data; An analysis module is used to obtain an active order trend graph, read real-time data of a preset interval in the active order trend graph, and compare the real-time data of the preset interval with the offline data of the preset interval; The execution module is used for, in response to the real-time data being abnormal, using the offline data to cover the real-time data in the preset interval.

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

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Data storage method and system

    CN112667635A

  • Data processing method based on data medium table and related equipment thereof

    CN113836235A

  • Data warehouse construction method and device, electronic equipment and readable storage medium

    CN114564514A

  • Data availability maintenance method and device of data system

    CN116108005A

  • High-Performance Streaming Dictionary

    US20110246503A1