A data burying method and device

The data attributes of business instance categories are obtained through reflection mechanisms, and the buried point structure is generated and updated. This solves the problem of low data buried point efficiency in the case of multiple business instances, realizes automated buried point and flexible data processing, and improves development efficiency and code consistency.

CN111767185BActive Publication Date: 2024-09-20BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD +1
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN201910536113.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-06-20
Publication Date
2024-09-20
Estimated Expiration
2039-06-20

AI Technical Summary

Technical Problem

In the process of data burying, it is difficult to realize automated burying of points with multiple instances of the same business, resulting in low development efficiency; manual configuration is required for new or changes in queue topic fields, which is inconvenient to maintain, especially when business needs change frequently. In the case of

Method used

The reflection mechanism is used to obtain data attributes in the business instance category, generate buried point structures, and generate and update buried point message queues based on these attributes to realize an automated data buried point process, reducing manual intervention and code changes.

Benefits of technology

It improves the efficiency of burying points for different types of data in multiple services, reduces development and maintenance work, ensures the consistency of code structure, and realizes the automation and flexibility of burying points.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111767185B
    Figure CN111767185B
Patent Text Reader

Abstract

The present invention discloses a data burying method and device, and relates to the field of computer technology. A specific implementation of the method includes: using a reflection mechanism to determine the data attributes contained in a business instance category based on business data, and generating a burying structure based on the data attributes; obtaining the value of the data attribute from the business data, and generating a burying message queue based on the data attribute and its value; updating the burying structure based on the burying demand, and determining the value of the data attribute in the updated burying structure from the burying message queue; and performing data burying according to the updated burying structure and the value of the data attribute. This implementation can achieve the technical effect that data of different types of multiple businesses can be directly buried at one time, and the efficiency of burying can be improved, and it can be automatically and dynamically configured and monitored. Whether it is for the data system party that needs burying or the maintenance party of the data processing center, it can realize automatic processing and effectively reduce manpower.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a data burying method and device. Background Art

[0002] Data tracking refers to collecting some information in a specific process of an application, collecting (storing) some process data or result data, and tracking the status of application usage. In the Internet platform, due to the horizontal segmentation of the business, the data module is usually distinguished from the business module, so that the system that needs to track the data (i.e., the business module) becomes an independent general logic processing module. Therefore, the design of the data module and how to accurately, safely and automatically complete the data tracking become the top priority. The existing technical solutions mainly include: the upstream tracking system puts the data that needs to be tracked into the message queue of different queue topics in the form of original classes or manually loaded containers; the downstream data processing center manually adds monitoring of different queue topics in the message queue according to business needs, introduces data packets (jar packages) containing original classes for data analysis, maintains the mapping relationship between queue topics and fields (i.e., data attributes) through development or configuration, and performs data processing and storage; regularly manually organizes the monitored queue topics and closes the message queue configuration that no longer needs to be monitored.

[0003] In the process of implementing the present invention, the inventors found that there are at least the following problems in the prior art:

[0004] For systems that require burial points:

[0005] 1. It is not easy to track multiple instances of the same business. Whether it is manually extracting the attributes of multiple objects and writing them into a map data structure for tracking, or dividing them into multiple different contents for tracking and then adding data processing, there are a lot of meaningless work, which affects development efficiency.

[0006] 2. Every time a new field is added to an existing tracking queue topic, the tracking code needs to be changed, which is very inconvenient and not suitable for systems with frequent changes in tracking requirements.

[0007] For data processing centers:

[0008] 1. When adding or changing fields to an existing queue topic, you need to manually configure the queue topic and fields, and may even need to introduce a new jar package for development.

[0009] 2. The monitoring of existing queue topics requires manual modification of tracking content, which is inconvenient to maintain. Summary of the invention

[0010] In view of this, an embodiment of the present invention provides a data tracking method and device, which can use the reflection mechanism to obtain data attributes in the business instance category, solving the problem that it is difficult to track multiple instances of the same business, thereby affecting development efficiency.

[0011] To achieve the above-mentioned purpose, according to one aspect of an embodiment of the present invention, a data burying method is provided, including: utilizing a reflection mechanism to determine data attributes contained in a business instance category based on business data, and generating a burying structure based on the data attributes; obtaining the value of the data attribute from the business data based on the data attribute, and generating a burying message queue based on the data attribute and its value; updating the burying structure based on burying requirements, and determining the value of the data attribute in the updated burying structure from the burying message queue; and performing data burying based on the updated burying structure and the value of the data attribute.

[0012] According to another aspect of an embodiment of the present invention, a data burying method is provided, which is applied to a data processing center, and includes: acquiring and parsing data packets to obtain a burying message queue and a burying structure; updating the burying structure based on burying requirements, and determining the values ​​of data attributes in the updated burying structure from the burying message queue; and performing data burying according to the updated burying structure and the values ​​of the data attributes.

[0013] Optionally, the burying point structure is updated based on the burying point demand, and the values ​​of data attributes in the updated burying point structure are determined from the burying point message queue, including: using the burying point structure as the first mapping data structure and the second mapping data structure respectively; determining the values ​​of data attributes in the first mapping data structure from the burying point message queue, and storing the first mapping data structure and the values ​​of its data attributes; obtaining the burying point demand, and updating the second mapping data structure based on the burying point demand; and determining the values ​​of data attributes in the updated second mapping data structure from the burying point message queue.

[0014] Optionally, data embedding is performed according to the updated embedding structure and the value of the data attribute, including: performing data embedding according to the updated second mapping data structure and the corresponding value of the data attribute.

[0015] Optionally, acquiring and parsing a data packet to obtain a buried point message queue and a buried point structure also includes: taking the data packet as the first data packet, parsing the first data packet to obtain the queue subject and service identifier of the buried point message queue; determining whether a second data packet has been acquired within a first set time range before the moment of acquiring the first data packet; if so, pausing the process and deleting the first data packet and its parsed content; if not, determining a thread for processing the data buried point corresponding to the queue subject; wherein the second data packet includes a data packet that is identical to the queue subject and the service identifier parsed from the first data packet.

[0016] Optionally, obtaining and parsing data packets to obtain a burying point message queue and a burying point structure also includes: if a second data packet is not obtained within a second set time range after the moment of obtaining the first data packet, then closing the thread for processing the data burying point corresponding to the queue topic.

[0017] According to another aspect of an embodiment of the present invention, a data embedding method is provided, which is applied to a business system, including: utilizing a reflection mechanism to determine data attributes contained in a business instance category based on business data, and generating a embedding structure based on the data attributes; obtaining values ​​of the data attributes from business data based on the data attributes, and generating a embedding message queue based on the data attributes and their values; generating a data packet based on the embedding message queue and its queue topic, the embedding structure and the business identifier; and sending the data packet so that a recipient completes data embedding according to the data packet.

[0018] Optionally, a point-of-care message queue is generated based on the data attributes and their values, including: sorting the business instance categories, and using the data attributes as elements in a class array according to the sorting of the business instance categories; using the values ​​of the data attributes as elements of a class object array according to the order of the elements in the class array; generating a point-of-care message queue based on the class array and the class object array, and splicing the business instance categories as queue topics of the point-of-care message queue according to the sorting of the business instance categories.

[0019] Optionally, generating a data packet based on the burying point message queue and its queue topic, the burying point structure and the service identifier includes: setting a time interval; and generating a data packet based on the latest burying point message queue and its queue topic, the burying point structure and the service identifier according to the time interval.

[0020] According to another aspect of an embodiment of the present invention, a data burying device is provided, including: a structure generation module, used to: utilize a reflection mechanism to determine data attributes contained in a business instance category based on business data, and generate a burying structure based on the data attributes; a queue generation module, used to: obtain the value of the data attribute from the business data based on the data attribute, and generate a burying message queue based on the data attribute and its value; a burying data determination module, used to: update the burying structure based on burying requirements, and determine the value of the data attribute in the updated burying structure from the burying message queue; a burying module, used to: perform data burying according to the updated burying structure and the value of the data attribute.

[0021] According to another aspect of an embodiment of the present invention, there is provided a data burying device, which is arranged in a data processing center, and includes: a data packet acquisition module, used to acquire and parse data packets to obtain a burying message queue and a burying structure; a burying data determination module, used to update the burying structure based on burying requirements, and determine the value of the data attribute in the updated burying structure from the burying message queue; a burying module, used to perform data burying according to the updated burying structure and the value of the data attribute.

[0022] Optionally, the burying point data determination module is also used to: use the burying point structure as the first mapping data structure and the second mapping data structure respectively; determine the value of the data attribute in the first mapping data structure from the burying point message queue, and store the value of the first mapping data structure and its data attribute; obtain the burying point demand, and update the second mapping data structure based on the burying point demand; determine the value of the data attribute in the updated second mapping data structure from the burying point message queue.

[0023] Optionally, the tracking module is also used to: perform data tracking according to the updated second mapping data structure and the value of the corresponding data attribute.

[0024] Optionally, the data packet acquisition module is also used to: take the data packet as the first data packet, parse the first data packet to obtain the queue topic and service identifier of the buried point message queue; determine whether the second data packet has been obtained within a first set time range before the moment of obtaining the first data packet; if so, suspend the process and delete the first data packet and its parsed content, if not, determine the thread for processing the data buried point corresponding to the queue topic; wherein, the second data packet includes a data packet that is identical to the queue topic and the service identifier parsed from the first data packet.

[0025] Optionally, the data packet acquisition module is also used to: if the second data packet is not acquired within a second set time range after the moment of acquiring the first data packet, then close the thread for processing the data embedding point corresponding to the queue topic.

[0026] According to another aspect of an embodiment of the present invention, there is provided a data embedding device, which is arranged in a business system and includes: a structure generation module, which is used to: utilize a reflection mechanism to determine data attributes contained in a business instance category based on business data, and generate a embedding structure based on the data attributes; a queue generation module, which is used to: obtain the value of the data attribute from the business data based on the data attribute, and generate a embedding message queue based on the data attribute and its value; a data packet generation module, which is used to: generate a data packet based on the embedding message queue and its queue topic, the embedding structure and the business identifier; and a sending module, which is used to: send the data packet so that the recipient completes the data embedding according to the data packet.

[0027] Optionally, the queue generation module is also used to: sort the business instance categories, and use the data attributes as elements in the class array according to the sorting of the business instance categories; use the values ​​of the data attributes as elements of the class object array according to the order of the elements in the class array; generate a buried point message queue based on the class array and the class object array, and splice the business instance categories as the queue topics of the buried point message queue according to the sorting of the business instance categories.

[0028] Optionally, the data packet generation module is also used to: set a time interval; and generate data packets based on the latest burying point message queue and its queue topic, the burying point structure and the service identifier according to the time interval.

[0029] According to another aspect of an embodiment of the present invention, there is provided an electronic device, comprising: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the data burying method proposed in the aforementioned embodiment.

[0030] According to another aspect of an embodiment of the present invention, a computer-readable medium is provided, on which a computer program is stored. When the program is executed by a processor, the data burying method proposed in the above embodiment is implemented.

[0031] An embodiment of the above invention has the following advantages or beneficial effects: because the technical means of using the reflection mechanism to obtain the data attributes in the business instance category is adopted, the problem that it is not easy to track the data in multiple instances of the same business, thus affecting the development efficiency, can be solved. The technical effect of directly tracking the data of different classes of multiple businesses at one time and improving the tracking efficiency can be achieved. Through the reflection mechanism, all attributes in the class are automatically looped to assemble the tracking data, which reduces the development and online work of the tracking party and the receiving party, and also reduces the subsequent configuration and maintenance work, and ensures the consistency of the code structure.

[0032] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.

[0034] Figure 1 It is a flowchart of a method for data embedding in the prior art;

[0035] Figure 2 It is a schematic diagram of the basic process of the data embedding method according to an embodiment of the present invention;

[0036] Figure 3 It is a schematic diagram of the basic process of the data burying method applied to the data processing center according to an embodiment of the present invention;

[0037] Figure 4 It is a schematic diagram of the basic process of the data tracking method applied to the business system according to an embodiment of the present invention;

[0038] Figure 5 It is a schematic diagram of a preferred process of a data burying method according to an embodiment of the present invention;

[0039] Figure 6 is a schematic diagram of basic modules of a data burying device according to an embodiment of the present invention;

[0040] Figure 7 is an exemplary system architecture diagram to which embodiments of the present invention may be applied;

[0041] Figure 8 It is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present invention. DETAILED DESCRIPTION

[0042] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.

[0043] Figure 1 It is a flow chart of the method of data tracking in the prior art; as shown in the figure, the upstream tracking system, i.e., system A, system B, and system C in the figure (i.e., the systems that need tracking), puts the data that needs tracking into the message queues of different queue topics (i.e., queue A, queue B, and queue C in the figure) in the form of original classes or manually loaded containers; the downstream data processing center manually adds monitoring of different queue topics in the message queue according to business needs, and introduces data packets (jar packages) containing original classes for data parsing. Tracking is to convert different class data into a unified format (which may include but is not limited to json) and put them into the message queue. The data processing center may need to do different processing for different classes, so it is necessary to convert the unified format into the previous format for corresponding operations. This re-conversion operation requires parsing and obtaining each attribute in the class. The mapping relationship between queue topics and fields is maintained through development or configuration, and data processing and storage are performed; the monitored queue topics are manually sorted regularly, and the message queue configuration that does not need to be monitored is closed.

[0044] In the case of wanting to track different attributes of multiple objects in the same place, the existing technology is that developers write code to extract the required class attributes from multiple objects and write them into a map structure for tracking, or track multiple businesses into multiple tables and then merge the multiple tables through other methods. In either case, there is a lot of meaningless work in the tracking process, which affects development efficiency. Figure 2 FIG. 1 is a schematic diagram of the basic process of the data embedding method according to an embodiment of the present invention. Figure 2 As shown, in order to solve the above problems, an embodiment of the present invention provides a data embedding method, including:

[0045] Step S201. Using the reflection mechanism, determine the data attributes included in the business category according to the business data, and generate a point embedding structure according to the data attributes;

[0046] Step S202. Obtain the value of the data attribute from the business data according to the data attribute, and generate a buried message queue based on the data attribute and its value;

[0047] Step S203: updating the tracking point structure based on the tracking point demand, and determining the value of the data attribute in the updated tracking point structure from the tracking point message queue;

[0048] Step S204: Perform data embedding according to the updated embedding structure and the value of the data attribute.

[0049] Specifically, the upstream business system A (the system that needs tracking) is a response system with three instances (a1, a2, a3, that is, each instance does the same work) as an example: it includes three business function modules: business allocation, semantic recognition, and answer matching. When a message reaches the upstream business system A, the following steps and data will be generated:

[0050] After being processed by the business allocation module, the data object of the allocation class is generated:

[0051] The allocation class (Allocate) contains two attributes: message id and robot or manual identification;

[0052] The corresponding attribute value is {message id: "message_1", identifier: "robot"}.

[0053] After being processed by the semantic recognition module, the data object of the intent class is generated:

[0054] The intent class (Intention) contains four attributes: message id, question content, intent, and recognition status;

[0055] The corresponding attribute value is {message id: "message_1", question content: "Why is this product out of stock", intent: "product consultation", identification status: "clear"}.

[0056] After being processed by the matching answer module, a data object of the answer class is generated:

[0057] The answer class (Answer) contains two attributes: message id and answer content;

[0058] The corresponding attribute value is {message id: "message_1", answer content: "Currently supply is in short supply, please wait patiently~"}.

[0059] Using the reflection mechanism of Java, generate the tracking structure of {message id, identification, question content, intent, recognition, answer content}; generate the tracking message queue: {message id: "message_1", identification: "robot", question content: "Why is this product out of stock", intent: "Product consultation", recognition: "clear", answer content: "Currently in short supply, please wait patiently~"}. The tracking demand only requires the three attributes {message id, question content, answer content}, and the updated tracking structure according to the tracking demand is {message id, question content, answer content}; only get {message id: "message_1", question content: "Why is this product out of stock", answer content: "Currently in short supply, please wait patiently~"} from the message queue for tracking.

[0060] The embodiment of the present invention adopts the technical means of obtaining data attributes in the business instance category through the reflection mechanism, thereby solving the problem that it is difficult to track multiple instances of the same business, thus affecting the development efficiency. It can achieve the technical effect of directly tracking data of different categories of multiple businesses at one time and improving the tracking efficiency, reducing the development and online work of the tracking party and the receiving party, and also reducing the subsequent configuration and maintenance work.

[0061] Figure 3 Schematic diagram of the basic process of the data embedding method applied to the data processing center according to an embodiment of the present invention; Figure 3 As shown, an embodiment of the present invention provides a data tracking method, which is applied to a data processing center, including:

[0062] Step S301. Obtain and parse the data packet to obtain the embedding message queue and embedding structure;

[0063] Step S302: updating the tracking point structure based on the tracking point demand, and determining the value of the data attribute in the updated tracking point structure from the tracking point message queue;

[0064] Step S303: Perform data embedding according to the updated embedding structure and the value of the data attribute.

[0065] Among them, the data processing center in the embodiment of the present invention is a module or unit used to perform specific point-of-sale operations or data processing.

[0066] Step S302 in the embodiment of the present invention updates the burying point structure based on the burying point demand, and determines the value of the data attribute in the updated burying point structure from the burying point message queue, including: using the burying point structure as the first mapping data structure and the second mapping data structure respectively; determining the value of the data attribute in the first mapping data structure from the burying point message queue, storing the first mapping data structure and the value of its data attribute; obtaining the burying point demand, updating the second mapping data structure based on the burying point demand; determining the value of the data attribute in the updated second mapping data structure from the burying point message queue. Performing data burying according to the updated burying point structure and the value of the data attribute includes: performing data burying according to the updated second mapping data structure and the value of the corresponding data attribute.

[0067] Specifically, the data processing center parses the structure of the embedded content as {message id, identifier, question content, intent, recognition status, answer content}, and initializes two mapping data structures Map1 and Map2, both of which cache the embedded structure. Map1 is used to store the original structure and cannot be modified; Map2 is used to store the actual embedded structure and can be modified. Initially, the contents of the two are the same, that is, {message id, identifier, question content, intent, recognition status, answer content}. Both Map1 and Map2 will be fed back to the maintenance personnel of the data processing center through the interface, so that the maintenance personnel can clearly grasp the entire structure and the structure of the embedded part, and can flexibly modify the embedded. For example, if the embedded content only requires the three attributes of {message id, question content, answer content}, you only need to modify map2 to such a structure. The message content obtained by the consumer thread in the queue is {message id: "message_1", identification: "robot", question content: "Why is this product out of stock", intention: "Product consultation", identification situation: "clear", answer content: "Currently supply is in short supply, please wait patiently~"}. According to the attributes in the tracking point requirement map2, only {message id: "message_1", question content: "Why is this product out of stock", answer content: "Currently supply is in short supply, please wait patiently~"} is obtained for tracking.

[0068] Step S301 in the embodiment of the present invention obtains and parses the data packet to obtain the buried point message queue and the buried point structure, and also includes: taking the data packet as the first data packet, parsing the first data packet to obtain the queue subject and service identifier of the buried point message queue; judging whether the second data packet has been obtained within a first set time range before the moment of obtaining the first data packet; if so, pausing the process and deleting the first data packet and its parsed content; if not, determining the thread for processing the data buried point corresponding to the queue subject; wherein the second data packet includes a data packet that is identical to the queue subject and the service identifier parsed from the first data packet.

[0069] Specifically, since the upstream systems that need to track points are all multi-instance, there will be a situation where data packets of the same queue topic are received from different instances in a short period of time. In order to avoid repeated processing and wasting resources, the data processing center will use the topic: Allocate_Intention_Answer and the application name (upstream business system) A to splice them into a cache content with the key Allocate_Intention_Answer_A_Filter, and its life cycle is only 3 minutes (the first set time range can include but is not limited to 3 minutes). Data packets with the same key received within 3 minutes will be directly deleted. After 3 minutes, the cache disappears, and the next round of data packet parsing will be performed.

[0070] In the embodiment of the present invention, step S301 obtains and parses the data packet to obtain the burying point message queue and the burying point structure, and also includes: if the second data packet is not obtained within a second set time range after the moment of obtaining the first data packet, the thread of processing the data burying point corresponding to the queue topic is closed.

[0071] Specifically, in order to dynamically turn on and off data monitoring, the data processing center will cache each topic separately, for example, generating a cached content named Allocate_Intention_Answer_A_Monitor with a life cycle of 10 minutes (the second set time range may include but is not limited to 10 minutes). If data packets containing the queue topic Allocate_Intention_Answer are always received, the life cycle of the topic cache is always updated and exists, and the entire tracking process can also run normally; if more than 10 minutes later, the life cycle ends and no new data packets with the queue topic Allocate_Intention_Answer are received, the thread that previously listened to the jmq topic will be closed, and the tracking process responsible for processing data packets containing the queue topic Allocate_Intention_Answer will be terminated.

[0072] Figure 4 Schematic diagram of the basic process of the data tracking method applied to the business system according to an embodiment of the present invention. Figure 4 As shown, an embodiment of the present invention provides a data tracking method, which is applied to a business system and includes:

[0073] Step S401. Using the reflection mechanism, determine the data attributes contained in the business instance category according to the business data, and generate a tracking point structure according to the data attributes;

[0074] Step S402. Obtain the value of the data attribute from the business data according to the data attribute, and generate a buried message queue based on the data attribute and its value;

[0075] Step S403. Generate a data packet based on the embedding message queue and its queue topic, the embedding structure and the service identifier;

[0076] Step S404. Send the data packet so that the receiver completes data embedding according to the data packet.

[0077] The business system in the embodiment of the present invention refers to a system that needs data embedding. The receiving party may include but is not limited to a unit or module for completing data embedding.

[0078] In the embodiment of the present invention, step S402 generates a point-of-care message queue based on the data attributes and their values, including: sorting the business instance categories (the sorting rule here can be to randomly sort the business instance categories, or to sort them in a set order, such as lexicographical order, flow program, time sequence of production data, etc.), and according to the sorting of the business instance categories, the data attributes are used as elements in the class array; according to the order of the elements in the class array, the values ​​of the data attributes are used as elements of the class object array; a point-of-care message queue is generated based on the class array and the class object array, and according to the sorting of the business instance categories, the business instance categories are spliced ​​as the queue topics of the point-of-care message queue.

[0079] Specifically, the upstream business system generates a total of three different data classes, and later data analysis or data statistics mostly need to combine these contents together, so they need to be merged and assembled. That is, the corresponding generated tracking data is {message id: "message_1", identification: "robot", question content: "Why is this product out of stock", intention: "Product consultation", identification situation: "clear", answer content: "Currently in short supply, please wait patiently~"}. In the prior art, the merging of content usually requires manual operation by developers. This solution implements unified operations in the SDK package. It only needs to pass in the three class arrays of Allocate, Intention and Answer and their corresponding content arrays in turn when calling the SDK method. In order to achieve the versatility of tracking, the structure of the tracking content is designed as a map data structure. After skd completes the data merging, sdk generates a message queue topic for tracking points based on the three class names of Allocate, Intention, and Answer: Allocate_Intention_Answer (this generation is mainly to automatically avoid duplication of tracking points for different businesses), and writes attribute values ​​to the queue in the order of the passed class array.

[0080] In the embodiment of the present invention, step S403 generates a data packet based on the burying point message queue and its queue topic, the burying point structure and the service identifier, including: setting a time interval; and according to the time interval, periodically generating a data packet based on the latest burying point message queue and its queue topic, the burying point structure and the service identifier.

[0081] Specifically, the SDK will create a timer, and send a data packet to the data processing center every 2 minutes (the time interval may include but is not limited to 2 minutes), or generate a new data packet every 2 minutes and send the newly generated data packet to the data processing center, and the data packet also includes information data such as service identification and IP. Among them, the SDK software development kit can be an external application program interface based on the tracking function in the embodiment of the present invention, which is part of the tracking process.

[0082] Figure 5 Schematic diagram of the preferred process of the data embedding method according to an embodiment of the present invention. Figure 5 As shown, the preferred process of the embodiment of the present invention is as follows:

[0083] 1) The upstream tracking system references the tracking SDK, calls the static tracking method in the SDK, and passes in the class and class object that need to be tracked (both the class and the object can be arrays, but the order of the classes and objects is the same);

[0084] 2) The embedding method maps the class object array to a map (here dataMap) and converts it into json; at the same time, it generates a unique message queue topic based on the class name in the passed class array, and writes the converted json into the corresponding message queue; in addition, it uses the reflection mechanism of Java to obtain all the attributes of the embedding class array and concatenate them into a string set Set (attributes with the same name are merged), and maintains a map (here topicMap) with topic as the key and attribute character set as the value;

[0085] 3) The tracking SDK will create a timer and send a data packet containing the topicMap in step 2) to the data processing center every two minutes. The data packet will also include information such as the instance application name and IP address.

[0086] 4) After receiving the data packet, the data processing center parses and caches the topicMap content, traverses the keys in the topicMap, creates corresponding topics in the multi-threaded monitoring message queue, consumes the content of each topic, obtains the value in the corresponding attribute according to the value in the topicMap, and writes it into the memory for storage.

[0087] 5) The data processing center will maintain two sets of mapping relationships between topics and attribute sets. One set is used to record the original mapping data of the received data packets and parse the JSON data obtained by the message queue; the other set is used for data processing and storage (stored in a database, such as a traditional database or a distributed database), and the fields can be dynamically modified and deleted manually.

[0088] 6) Since there are multiple instances sending multiple data packets at the same time, the data processing center can cache the data packets of the same application name for a life cycle of 1 minute, parse only the first packet, and filter out all the subsequent packets. Among them, the content of the topic cannot be found in the cache, that is, the first one.

[0089] More specifically, when calling the SDK method, the three class arrays of Allocate, Intention and Answer and their corresponding content arrays are passed in in sequence. In order to achieve the universality of the embedding point, the structure of the embedding point content is designed as a map data structure. After skd completes the data merging, the SDK generates a message queue topic for the embedding point based on the three class names of Allocate, Intention and Answer: Allocate_Intention_Answer (this generation is mainly to automatically avoid duplication of embedding points for different businesses), and writes data to the queue. At the same time, the SDK will periodically send the embedding point structure containing the attributes of {message id, identification, question content, intention, recognition situation, answer content}, plus the topic (i.e. Allocate_Intention_Answer), the application (business system) name A of the instance, and the IP to the data processing center in the form of a data packet.

[0090] After receiving the data packet, the data center analyzes and learns that application A needs to track the content of the queue named Allocate_Intention_Answer, and then creates a thread to listen to the message queue of the topic. At the same time, the data center also analyzes the structure of the tracking content as {message id, identifier, question content, intention, recognition status, answer content}, and initializes two map1 and map2 to cache the tracking structure. Map1 is used to store the original structure and cannot be modified; map2 is used to store the actual tracking structure and can be modified. Initially, the contents of the two are the same, that is, {message id, identifier, question content, intention, recognition status, answer content}. Map1 and Map2 will be fed back to the maintenance personnel of the data processing center through the interface, so that the maintenance personnel can clearly understand the entire structure and the structure of the tracking part, and can flexibly modify the tracking. For example, if the tracking content only requires the three attributes of {message id, question content, answer content}, you only need to modify map2 to such a structure. The message content obtained by the consumer thread in the queue is {message id: "message_1", identification: "robot", question content: "Why is this product out of stock", intention: "Product consultation", identification situation: "clear", answer content: "Currently supply is in short supply, please wait patiently~"}. According to the attributes in the tracking point requirement map2, only {message id: "message_1", question content: "Why is this product out of stock", answer content: "Currently supply is in short supply, please wait patiently~"} is obtained for tracking.

[0091] The SDK is set to send a data packet every 5 minutes. However, since the upstream systems are all multi-instance, there are situations where data packets from the same topic are received from different instances within 5 minutes (i.e., a1, a2, and a3 send packets at t1, t2, and t3, respectively, t1<5, t2<5, and t3<5). In order to avoid repeated processing and wasting resources, the data processing center will use the topic: Allocate_Intention_Answer and the application name: A to splice into a cache content named Allocate_Intention_Answer_A_Filter with a life cycle of only 3 minutes. The keys with the same name received within 3 minutes will be directly excluded. After 3 minutes, the cache disappears and the next round of parsing is performed.

[0092] In addition, in order to dynamically open and close data monitoring, the data processing center will cache each topic separately. In this example, a cache content named Allocate_Intention_Answer_A_Monitor with a life cycle of 10 minutes is generated. If more than 10 minutes pass and the life cycle ends without receiving a new Allocate_Intention_Answer data packet, the thread that previously monitored the jmq topic will be closed, and the Allocate_Intention_Answer tracking process will be terminated.

[0093] Through the above embodiments, the automation of the entire tracking work can be achieved. Data of different types of multiple businesses can be directly tracked at one time, and the business fields can be assembled by the SDK. The SDK can dynamically obtain attributes in the class, and developers do not need to perform additional development for tracking. The routine maintenance operations of the data processing center are automated, and the mapping relationship between topics and fields is dynamically obtained by parsing timed data packets, and monitoring of message queue topics can be automatically created and closed. The development and online work of the tracking party and the receiving party is reduced, and the subsequent configuration and maintenance work is also reduced; in addition, the business side (business system) and the data side (data processing center) can be better distinguished, so that both sides can better focus on their own content without being disturbed by other modules, and can be automatically and dynamically configured and monitored. Whether it is for the data system party that needs to track points or the maintenance party of the data processing center, automatic processing can be achieved, effectively reducing manpower.

[0094] Figure 6 is a schematic diagram of basic modules of a data embedding device according to an embodiment of the present invention; Figure 6 As shown, an embodiment of the present invention provides a data embedding device 600, including:

[0095] The structure generation module 601 is used to: determine the data attributes contained in the business instance category according to the business data by using the reflection mechanism, and generate the embedding structure according to the data attributes;

[0096] The queue generation module 602 is used to: obtain the value of the data attribute from the business data according to the data attribute, and generate a buried message queue based on the data attribute and its value;

[0097] The burying point data determination module 603 is used to: update the burying point structure based on the burying point demand, and determine the value of the data attribute in the updated burying point structure from the burying point message queue;

[0098] The tracking module 604 is used to: perform data tracking according to the updated tracking structure and the value of the data attribute.

[0099] According to another aspect of an embodiment of the present invention, there is provided a data burying device, which is arranged in a data processing center, and includes: a data packet acquisition module, used to acquire and parse data packets to obtain a burying message queue and a burying structure; a burying data determination module, used to update the burying structure based on burying requirements, and determine the value of the data attribute in the updated burying structure from the burying message queue; a burying module, used to perform data burying according to the updated burying structure and the value of the data attribute.

[0100] In an embodiment of the present invention, the module for determining the burying point data is also used to: use the burying point structure as the first mapping data structure and the second mapping data structure respectively; determine the value of the data attribute in the first mapping data structure from the burying point message queue, and store the value of the first mapping data structure and its data attribute; obtain the burying point demand, and update the second mapping data structure based on the burying point demand; determine the value of the data attribute in the updated second mapping data structure from the burying point message queue.

[0101] In the embodiment of the present invention, the tracking module is also used to: perform data tracking according to the updated second mapping data structure and the value of the corresponding data attribute.

[0102] In an embodiment of the present invention, the data packet acquisition module is also used to: take the data packet as the first data packet, parse the first data packet to obtain the queue topic and service identifier of the buried point message queue; determine whether the second data packet has been obtained within a first set time range before the moment of obtaining the first data packet; if so, suspend the process and delete the first data packet and its parsed content, if not, determine the thread for processing the data buried point corresponding to the queue topic; wherein, the second data packet includes a data packet that is identical to the queue topic and the service identifier parsed from the first data packet.

[0103] In the embodiment of the present invention, the data packet acquisition module is also used to: if the second data packet is not acquired within a second set time range after the moment of acquiring the first data packet, then close the thread for processing the data embedding point corresponding to the queue topic.

[0104] According to another aspect of an embodiment of the present invention, there is provided a data embedding device, which is arranged in a business system and includes: a structure generation module, which is used to: utilize a reflection mechanism to determine data attributes contained in a business instance category based on business data, and generate a embedding structure based on the data attributes; a queue generation module, which is used to: obtain the value of the data attribute from the business data based on the data attribute, and generate a embedding message queue based on the data attribute and its value; a data packet generation module, which is used to: generate a data packet based on the embedding message queue and its queue topic, the embedding structure and the business identifier; and a sending module, which is used to: send the data packet so that the recipient completes the data embedding according to the data packet.

[0105] In the embodiment of the present invention, the queue generation module is also used to: sort the business instance categories, and use the data attributes as elements in the class array according to the sorting of the business instance categories; use the values ​​of the data attributes as elements of the class object array according to the order of the elements in the class array; generate a buried point message queue based on the class array and the class object array, and splice the business instance categories as the queue topics of the buried point message queue according to the sorting of the business instance categories.

[0106] In the embodiment of the present invention, the data packet generation module is also used to: set a time interval; and generate data packets based on the latest burying point message queue and its queue topic, the burying point structure and the service identifier according to the time interval.

[0107] Figure 7 An exemplary system architecture 700 is shown to which the data burying method or data burying device according to an embodiment of the present invention can be applied.

[0108] like Figure 7 As shown, system architecture 700 may include terminal devices 701, 702, 703, network 704 and server 705. Network 704 is used to provide a medium for communication links between terminal devices 701, 702, 703 and server 705. Network 704 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0109] Users can use terminal devices 701, 702, and 703 to interact with server 705 through network 704 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 701, 702, and 703, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc.

[0110] The terminal devices 701 , 702 , and 703 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers.

[0111] Server 705 may be a server that provides various services, such as a backend management server that provides support for shopping websites browsed by users using terminal devices 701, 702, and 703. The backend management server may analyze and process received data such as product information query requests, and feed back processing results such as target push information to the terminal device.

[0112] It should be noted that the data embedding method provided in the embodiment of the present invention is generally executed by the server 705, and accordingly, the data embedding device is generally set in the server 705.

[0113] It should be understood that Figure 7 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.

[0114] According to an embodiment of the present invention, the present invention further provides an electronic device and a readable medium.

[0115] The electronic device of the present invention includes: one or more processors; a storage device for storing one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors implement the data burying method proposed in the above-mentioned embodiment.

[0116] The computer-readable medium of the present invention stores a computer program thereon, and when the program is executed by a processor, the data embedding method proposed in the aforementioned embodiment is implemented.

[0117] Reference below Figure 8 , which shows a schematic diagram of the structure of a computer system 800 of a terminal device suitable for implementing an embodiment of the present invention. Figure 8 The terminal device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0118] like Figure 8 As shown, the computer system 800 includes a central processing unit (CPU) 801, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 802 or a program loaded from a storage part 808 into a random access memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the system 800 are also stored. The CPU 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.

[0119] The following components are connected to the I / O interface 805: an input section 806 including a keyboard, a mouse, etc.; an output section 807 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 808 including a hard disk, etc.; and a communication section 809 including a network interface card such as a LAN card, a modem, etc. The communication section 809 performs communication processing via a network such as the Internet. A drive 810 is also connected to the I / O interface 805 as needed. A removable medium 811, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 810 as needed, so that a computer program read therefrom is installed into the storage section 808 as needed.

[0120] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 809, and / or installed from the removable medium 811. When the computer program is executed by the central processing unit (CPU) 801, the above-mentioned functions defined in the system of the present invention are executed.

[0121] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0122] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0123] The modules involved in the embodiments of the present invention may be implemented by software or hardware. The modules described may also be provided in a processor. For example, they may be described as follows: a data burying device includes: a structure generation module, a queue generation module, a burying data determination module, and a burying module. Among them, the names of these modules do not constitute a limitation on the module itself in certain cases. For example, a burying module may also be described as a "module for performing data burying according to the value of the burying structure and data attributes."

[0124] As another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiment; or it may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs. When the above one or more programs are executed by a device, the device includes: using the reflection mechanism to determine the data attributes contained in the business instance category according to the business data, and generating a burying point structure according to the data attributes; obtaining the value of the data attribute from the business data according to the data attribute, and generating a burying point message queue based on the data attribute and its value; updating the burying point structure based on the burying point demand, and determining the value of the data attribute in the updated burying point structure from the burying point message queue; performing data burying according to the updated burying point structure and the value of the data attribute.

[0125] The embodiment of the present invention adopts a reflection mechanism to obtain the technical means of data attributes in the business instance category, which solves the problem that it is not easy to track the same business multiple instances, thereby affecting the development efficiency. It can achieve the technical effect that data of different classes of multiple businesses can be directly tracked at one time, improving the tracking efficiency, reducing the development and online work of the tracking party and the receiving party, and also reducing the later configuration and maintenance work. The automation of the entire tracking work can be realized, and data of different classes of multiple businesses can be directly tracked at one time, and the business fields are assembled by the SDK. The SDK can dynamically obtain the attributes in the class, and the developer does not need to perform additional development for the tracking. The routine maintenance operation of the data processing center is automated, and the mapping relationship between the topic and the field is dynamically obtained by parsing the timing data packet, and the monitoring of the message queue topic can be automatically created and closed. In addition, the business side (business system) and the data side (data processing center) can be better distinguished, so that both sides can better focus on their own content without being interfered by other modules.

[0126] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A data embedding method, characterized in that: include: Using the reflection mechanism, determine the data attributes contained in the business instance category based on the business data, and generate the tracking point structure according to the data attributes; Obtaining the value of the data attribute from the business data according to the data attribute, and generating a buried point message queue based on the data attribute and its value; The tracking point structure is updated based on the tracking point demand, and the value of the data attribute in the updated tracking point structure is determined from the tracking point message queue; Perform data embedding according to the updated embedding structure and the value of the data attribute; Generating a message queue based on the data attributes and their values ​​includes: Sorting the service instance categories, and using the data attributes as elements in a class array according to the order of the service instance categories; According to the order of the elements in the class array, the values ​​of the data attributes are used as elements of the class object array; Generate a point-embedding message queue according to the class array and the class object array, and splice the business instance categories according to the order of the business instance categories as queue topics of the point-embedding message queue; Updating the tracking point structure based on the tracking point demand, and determining the value of the data attribute in the updated tracking point structure from the tracking point message queue, including: The buried point structure is used as a first mapping data structure and a second mapping data structure respectively; Determine the value of the data attribute in the first mapping data structure from the embedded point message queue, and store the first mapping data structure and the value of its data attribute; Obtaining the tracking point requirement, and updating the second mapping data structure based on the tracking point requirement; Determine the value of the data attribute in the updated second mapping data structure from the embedded point message queue.

2. A data burying method, characterized in that: Applied in data processing centers, including: Obtain and parse the data packet to obtain the tracking message queue and tracking structure; The tracking point structure is updated based on the tracking point demand, and the value of the data attribute in the updated tracking point structure is determined from the tracking point message queue; Perform data embedding according to the updated embedding structure and the value of the data attribute; Updating the tracking point structure based on the tracking point demand, and determining the value of the data attribute in the updated tracking point structure from the tracking point message queue, including: The buried point structure is used as a first mapping data structure and a second mapping data structure respectively; Determine the value of the data attribute in the first mapping data structure from the embedded point message queue, and store the first mapping data structure and the value of its data attribute; Obtaining the tracking point requirement, and updating the second mapping data structure based on the tracking point requirement; Determine the value of the data attribute in the updated second mapping data structure from the embedded point message queue.

3. The method according to claim 2, characterized in that Performing data embedding according to the updated embedding structure and the value of the data attribute includes: Data embedding is performed based on the updated second mapping data structure and the value of the corresponding data attribute.

4. The method according to claim 2, characterized in that: Get and parse the data packet to get the tracking message queue and tracking structure, including: Taking the data packet as the first data packet, parsing the first data packet to obtain the queue topic and service identifier of the embedding point message queue; Determine whether the second data packet has been obtained within a first set time range before the moment when the first data packet is obtained; if so, suspend the process and delete the first data packet and its parsed content; if not, determine the thread that processes the data embedding point corresponding to the queue topic; The second data packet includes a data packet having the same queue topic and service identifier as those parsed from the first data packet.

5. The method according to claim 4, characterized in that Get and parse the data packet to get the tracking message queue and tracking structure, including: If the second data packet is not obtained within a second set time range after the moment of obtaining the first data packet, the thread for processing the data embedding point corresponding to the queue topic is closed.

6. A data embedding method, characterized in that: Applied to business systems, including: Using the reflection mechanism, determine the data attributes contained in the business instance category based on the business data, and generate the tracking point structure according to the data attributes; Obtaining the value of the data attribute from the business data according to the data attribute, and generating a buried point message queue based on the data attribute and its value; Generate a data packet based on the embedding message queue and its queue topic, the embedding structure and the service identifier; Sending the data packet so that the receiving party completes data embedding according to the data packet; Generating a message queue based on the data attributes and their values ​​includes: Sorting the service instance categories, and using the data attributes as elements in a class array according to the order of the service instance categories; According to the order of the elements in the class array, the values ​​of the data attributes are used as elements of the class object array; A buried point message queue is generated according to the class array and the class object array, and the business instance categories are spliced ​​according to the order of the business instance categories as queue topics of the buried point message queue.

7. The method according to claim 6, characterized in that Generate a data packet based on the embedding message queue and its queue topic, the embedding structure and the service identifier, including: Set the time interval; According to the time interval, data packets are periodically generated based on the latest embedded point message queue and its queue topic, the embedded point structure and the service identifier.

8. A data embedding device, characterized in that: include: The structure generation module is used to: determine the data attributes contained in the business instance category according to the business data by using the reflection mechanism, and generate the embedding structure according to the data attributes; A queue generation module, used to: obtain the value of the data attribute from the business data according to the data attribute, and generate a buried message queue based on the data attribute and its value; and sort the business instance categories, and use the data attributes as elements in a class array according to the sorting of the business instance categories; According to the order of the elements in the class array, the values ​​of the data attributes are used as elements of the class object array; Generate a point-embedding message queue according to the class array and the class object array, and splice the business instance categories according to the order of the business instance categories as queue topics of the point-embedding message queue; Determine the burying point data module, used for: updating the burying point structure based on the burying point demand, and determining the value of the data attribute in the updated burying point structure from the burying point message queue; and using the burying point structure as the first mapping data structure and the second mapping data structure respectively; determining the value of the data attribute in the first mapping data structure from the burying point message queue, storing the first mapping data structure and the value of its data attribute; obtaining the burying point demand, and updating the second mapping data structure based on the burying point demand; determining the value of the data attribute in the updated second mapping data structure from the burying point message queue; The tracking module is used to: perform data tracking according to the updated tracking structure and the value of the data attribute.

9. A data embedding device, characterized in that: Set up in the data processing center, including: The data packet acquisition module is used to: acquire and parse the data packet to obtain the embedded point message queue and embedded point structure; Determine the burying point data module, used for: updating the burying point structure based on the burying point demand, and determining the value of the data attribute in the updated burying point structure from the burying point message queue; and using the burying point structure as the first mapping data structure and the second mapping data structure respectively; determining the value of the data attribute in the first mapping data structure from the burying point message queue, storing the first mapping data structure and the value of its data attribute; obtaining the burying point demand, and updating the second mapping data structure based on the burying point demand; determining the value of the data attribute in the updated second mapping data structure from the burying point message queue; The tracking module is used to: perform data tracking according to the updated tracking structure and the value of the data attribute.

10. The device according to claim 8 or 9, characterized in that The module for determining buried point data is also used for: The buried point structure is used as a first mapping data structure and a second mapping data structure respectively; Determine the value of the data attribute in the first mapping data structure from the embedded point message queue, and store the first mapping data structure and the value of its data attribute; Obtaining the tracking point requirement, and updating the second mapping data structure based on the tracking point requirement; Determine the value of the data attribute in the updated second mapping data structure from the embedded point message queue.

11. The device according to claim 10, characterized in that The tracking module is also used for: Data embedding is performed based on the updated second mapping data structure and the value of the corresponding data attribute.

12. The device according to claim 9, characterized in that The Get Packet module is also used to: Taking the data packet as the first data packet, parsing the first data packet to obtain the queue topic and service identifier of the embedding point message queue; Determining whether a second data packet has been acquired within a first set time range before the moment when the first data packet is acquired; If yes, the process is suspended and the first data packet and its parsed content are deleted. If no, a thread for processing the data embedding point corresponding to the queue topic is determined; The second data packet includes a data packet having the same queue topic and service identifier as those parsed from the first data packet.

13. The device according to claim 12, characterized in that The Get Packet module is also used to: If the second data packet is not obtained within a second set time range after the moment of obtaining the first data packet, the thread for processing the data embedding point corresponding to the queue topic is closed.

14. A data embedding device, characterized in that: Set up in the business system, including: The structure generation module is used to: determine the data attributes contained in the business instance category according to the business data by using the reflection mechanism, and generate the embedding structure according to the data attributes; A queue generation module, used to: obtain the value of the data attribute from the business data according to the data attribute, and generate a buried point message queue based on the data attribute and its value; and, sort the business instance categories, and use the data attributes as elements in the class array according to the sorting of the business instance categories; and use the values ​​of the data attributes as elements in the class object array according to the order of the elements in the class array; generate a buried point message queue according to the class array and the class object array, and splice the business instance categories as the queue topics of the buried point message queue according to the sorting of the business instance categories; A data packet generation module, used to: generate a data packet based on the embedding message queue and its queue topic, the embedding structure and the service identifier; The sending module is used to send the data packet so that the receiving party completes data embedding according to the data packet.

15. The device according to claim 14, characterized in that The packet generation module is also used to: Set the time interval; According to the time interval, data packets are periodically generated based on the latest embedded point message queue and its queue topic, the embedded point structure and the service identifier.

16. An electronic device, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 7.

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

Citation Information

Patent Citations

  • Method and device for embedding points for controls of client application in real time

    CN104572043A

  • Method and device for burying point into control of application, and readable storage medium

    CN106844217A

  • Processing method and device of buried-point data, server and client

    CN107196788A

  • Point burying method and equipment and computer readable storage medium

    CN107894889A

  • Buried point data reporting method and device and electronic device

    CN108156006A