Label production configuration method and device, electronic equipment and storage medium
The configuration method and device for label production enable automated, efficient, and cost-effective production of user tags by configuring production levels and establishing data-source relationships, addressing the challenges of expertise and cycle time in traditional methods.
Patent Information
- Application Number
- CN202411174927.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-26
- Publication Date
- 2024-12-10
AI Technical Summary
Traditional methods for producing user tags require high professional expertise and result in long production cycles, making it difficult to meet rapidly changing user insights and refined business needs.
A configuration method and device for label production that allows technicians to configure target production levels, determine hierarchical production configuration information, and establish routing relationships between data sources and production environments, enabling automated label production without specialized knowledge.
Reduces development costs and shortens production cycles, allowing for faster label production that matches business needs, including real-time and non-real-time requirements, and supports personalized labeling tasks.
Smart Images

Figure CN119106355A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a configuration method, device, electronic device and storage medium for label production. Background Art
[0002] In the digital age, user tags have become an important tool to help companies achieve user insights and refine their business. Faced with a variety of business needs, the customization and production of user tags has become particularly important. In the traditional production method of user tags, developers are required to develop the corresponding code for the user tag production process based on business needs.
[0003] However, the traditional method of producing user tags not only requires developers to have extremely high professional basic requirements, but also leads to a long production cycle and slow response speed for user tags, making it difficult to meet rapidly changing user insights and refined business needs. Summary of the invention
[0004] Based on this, it is necessary to provide a configuration method, device, electronic device and storage medium for label production in response to the above technical problems.
[0005] In a first aspect, a configuration method for label production is provided, the method comprising:
[0006] In response to the production level configuration operation instruction, a target production level of the tag to be produced is obtained, wherein the target production level is used to characterize the response time of producing the tag to be produced;
[0007] Determining hierarchical production configuration information of the labels to be produced according to the target production level;
[0008] According to the hierarchical production configuration information, a routing relationship is established between the target data source of the label to be produced and the target production environment, wherein the target production environment is used to produce the label to be produced according to the user data provided by the target data source.
[0009] In a second aspect, a configuration device for label production is provided, the device comprising:
[0010] A first acquisition module, configured to acquire a target production level of a tag to be produced in response to a production level configuration operation instruction, wherein the target production level is used to characterize a response time for producing the tag to be produced;
[0011] A first determination module, configured to determine the hierarchical production configuration information of the to-be-produced labels according to the target production level;
[0012] The first establishment module is used to establish a routing relationship between the target data source of the label to be produced and the target production environment according to the hierarchical production configuration information, wherein the target production environment is used to produce the label to be produced according to the user data provided by the target data source.
[0013] According to a third aspect, an electronic device is provided, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; the memory is used to store computer programs; and the processor is used to implement any method described in the first aspect when executing the program stored in the memory.
[0014] According to a fourth aspect, a computer-readable storage medium is provided, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the method described in any one of the first aspects is implemented.
[0015] The present disclosure provides a configuration method, device, electronic device and storage medium for label production. The technical solution provided by the embodiments of the present disclosure brings at least the following beneficial effects: in response to the production grade configuration operation instruction, the target production grade of the label to be produced is obtained, wherein the target production grade is used to characterize the response time of producing the label to be produced; according to the target production grade, the hierarchical production configuration information of the label to be produced is determined; according to the hierarchical production configuration information, a routing relationship is established between the target data source and the target production environment of the label to be produced, wherein the target production environment is used to produce the label to be produced according to the user data provided by the target data source. In this way, through the label hierarchical production platform, technicians can realize full configuration of label production without relevant professional basic requirements, reduce development costs, and shorten the label production cycle. In addition, through the label grading production platform, the corresponding graded production configuration process can be carried out according to the target production level of the labels to be produced, so as to establish a routing relationship between the target data source and the target production environment that matches the target production level of the labels to be produced. In this way, when the configured labels to be produced need to perform labeling tasks, the target production environment can automatically pull user data from the target data source to perform the labeling tasks. The higher the production level, the faster the label production can be completed, and the faster the labeling task can be completed. This is conducive to realizing a more personalized labeling task execution mode.
[0016] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0018] Figure 1 A schematic diagram of a label grading production platform provided in an embodiment of the present disclosure;
[0019] Figure 2 A class diagram of a metadata management module provided in an embodiment of the present disclosure;
[0020] Figure 3 A class diagram of an access module provided in an embodiment of the present disclosure;
[0021] Figure 4 A class diagram of a grading module provided in an embodiment of the present disclosure;
[0022] Figure 5 A flowchart of a configuration method for label production provided by an embodiment of the present disclosure;
[0023] Figure 6 A flowchart of an example of a configuration method for label production provided by an embodiment of the present disclosure;
[0024] Figure 7 A schematic diagram of the structure of a configuration device for label production provided by an embodiment of the present disclosure;
[0025] Figure 8 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0026] In order to make the purpose, technical solution and advantages of the present disclosure more clear, the present disclosure 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 disclosure and are not used to limit the present disclosure.
[0027] A label production configuration method provided by an embodiment of the present disclosure can be applied to a label grading production platform. Figure 1 Schematic diagram of a label grading production platform provided by an embodiment of the present disclosure. Figure 1 As shown, the label grading production platform includes three functional modules, namely metadata management module, access module and grading module.
[0028] The metadata management module includes tag classification management, tag management and tag authority management, which mainly realizes the management of tags to be produced in tag grading production. Figure 2 A class diagram of a metadata management module provided in an embodiment of the present disclosure, such as Figure 2 As shown in the figure, the tag classification adopts a recursive relationship design. The parent classification identifier (parentid) is used to associate the parent and child classifications; the tag is associated with a tag classification through the classification identifier (classid), the tag permission is associated with a tag permission through the tag code (tagCode), and the access party is associated with the access party through the access party identifier (partnerid). The access module includes access party management and production source management, which mainly realizes the source management of user data in tag classification production. Figure 3 A class diagram of an access module provided in an embodiment of the present disclosure, such as Figure 3 As shown in the figure, the production source (AbstractSource) base class has two inherited classes, namely data source (DataSource) and message source (MessageSource). The data source has two subclasses, namely MySQL (MySQLSoruce) subclass and data warehouse (DataWarehouseSource) subclass, which can be horizontally expanded according to actual needs. The message source has two subclasses, namely Kafka (KafkaSource) subclass and RocketMQ (RocketMQSource), which can be horizontally expanded according to actual needs. The hierarchical module includes three parts: processor management, hierarchical configuration, and hierarchical routing, which mainly realizes resource and scheduling management of label hierarchical production. Figure 4 A class diagram of a hierarchical module provided in an embodiment of the present disclosure, such as Figure 4 As shown, the hierarchical module implements routing of hierarchical production configuration information to the corresponding processor for processing. Processor management is used to implement the relationship binding between the processor class name and the production level. The hierarchical service implements hierarchical configuration and hierarchical routing. Hierarchical configuration is used to implement binding of production sources and labels to corresponding processors. Hierarchical routing implements routing to the processor according to the hierarchical configuration for subsequent label production task processing. The hierarchical production configuration information configured by the user calls the configuration function (config function) of the hierarchical service to save. When the label goes online, the hierarchical routing (route) will be triggered. The hierarchical routing calls the corresponding processor for processing according to the production level, binds to the web service or generates a production task.
[0029] The following will describe in detail a configuration method for label production provided by an embodiment of the present disclosure in conjunction with a specific implementation method. Figure 5 A flowchart of a configuration method for label production provided by an embodiment of the present disclosure, such as Figure 5 As shown, the specific steps are as follows:
[0030] S510. In response to the production level configuration operation instruction, obtain a target production level for the tag to be produced, wherein the target production level is used to represent the response time for producing the tag to be produced.
[0031] In the disclosed embodiment, the response time of the label to be produced corresponding to different services is different, and the response time of the label to be produced can be characterized by the production level. Exemplarily, the production level is divided into four levels, namely S, A, B and C. Among them, S level is the real-time synchronization level, which requires synchronization of business production labels; A level is the quasi-real-time second level, and the label production is completed within a few seconds (such as 5S) after the business occurs; B level is the quasi-real-time minute level, and the label production is completed within a few minutes (such as 5min) after the business occurs; C level is the offline level, and the label production is completed several days after the business occurs, but it is not limited to this. When the technician receives the label production demand of the business personnel for a certain business, the technician can configure the target production level of the label to be produced on the label grading production platform through the production level configuration operation instruction. Correspondingly, the label grading production platform responds to the user's production level configuration operation instruction to obtain the target production level of the label to be produced.
[0032] Specifically, the tags to be produced may be tags to be produced corresponding to any business, wherein the tags are used to classify and mark users so as to better understand users or provide personalized services. For example, the tags to be produced may be tags corresponding to businesses such as user activity records on shopping platforms (such as browsing history, search history, click-through rate, purchase behavior, etc.), or user social behaviors on social media (such as likes, comments, shares, etc.).
[0033] Specifically, the target production grade is the production grade of the labels to be produced.
[0034] S520: Determine hierarchical production configuration information of the labels to be produced according to the target production level.
[0035] In the disclosed embodiment, the label grading production platform is provided with different grading production configuration processes corresponding to different production levels. After the technician configures the target production level for the label to be produced, the technician can configure the grading production configuration information of the label to be produced in the grading production configuration process corresponding to the target production level through the configuration operation instructions for the grading production configuration information. Accordingly, in the grading production configuration process corresponding to the target production level, the label grading production platform determines the grading production configuration information of the label to be produced in response to the user's configuration operation instructions for the grading production configuration information. Through the pre-defined grading production configuration process, the technical threshold can be lowered, the time and complexity of manual configuration can be reduced, and work efficiency can be improved.
[0036] S530. Establish a routing relationship between the target data source of the to-be-produced label and the target production environment according to the hierarchical production configuration information, wherein the target production environment is used to produce the to-be-produced label according to the user data provided by the target data source.
[0037] In the disclosed embodiment, the hierarchical production configuration information includes information related to the target data source and information related to the target production environment information. In this way, the label hierarchical production platform can establish a routing relationship between the target data source of the label to be produced and the target production environment according to the hierarchical production configuration information. In this way, when the configured label to be produced needs to perform a labeling task, the target production environment can automatically pull user data from the target data source to perform the labeling task.
[0038] Specifically, user data is used to generate the labels to be produced. Exemplarily, user data may include user activity data on shopping platforms (such as user browsing history, purchase records, search keywords and other behavioral data), and / or user activity data on social media (such as user interaction, sharing, commenting and other behavioral data on social media), but is not limited thereto.
[0039] Specifically, the target data source is the data source of “user data used to produce the labels to be produced”.
[0040] Specifically, the target production environment is a production environment (ie, a processor) “used to produce tags to be produced”.
[0041] Optionally, before S510, the method further includes: acquiring label information of the label to be produced in response to a label configuration operation instruction.
[0042] In the disclosed embodiment, when a technician receives a label production demand for a certain business from a business person, the technician can configure the label information of the label to be produced through label configuration operation instructions on the label grading production platform. Correspondingly, the label grading production platform obtains the label information of the label to be produced in response to the user's label configuration operation instructions. In this way, the subsequent target production environment can produce labels to be produced that match the label information based on the user data provided by the target data source. Through the label grading production platform, technicians can quickly and conveniently configure and manage label information, eliminating tedious manual operations and greatly improving work efficiency.
[0043] Specifically, the tag information is used to describe the tag. Exemplarily, the tag information may include a tag name, a tag description, a tag classification, a tag definition, a tag authority, etc., but is not limited thereto.
[0044] In the disclosed embodiment, through the label hierarchical production platform, technicians can realize full configuration of label production without relevant professional basic requirements, reduce development costs, and shorten label production cycle. In addition, considering that different businesses have different real-time requirements for labels, through the label hierarchical production platform, it is possible to perform corresponding hierarchical production configuration processes according to the target production level of the labels to be produced, so as to establish a routing relationship between the target data source and the target production environment of the labels to be produced that match the target production level, so that when the configured labels to be produced need to perform labeling tasks later, the target production environment can automatically pull user data from the target data source to perform labeling tasks, so that the higher the production level, the faster the label production is completed, that is, the faster the labeling task can be completed, ensuring that the production speed of the label matches the business needs and meets the diversified business needs. In this way, for business activities that require real-time feedback, such as online promotions or real-time data analysis, the production level of S or A can ensure the timely production of labels, making business activities more accurate and effective. For business activities that do not require high real-time performance, such as long-term tracking or periodic analysis, the production level of B or C can be used to optimize system resource allocation and avoid unnecessary resource waste. This is conducive to achieving a more personalized labeling task execution mode.
[0045] In some embodiments of the present disclosure, the production level of the label includes a first production level, a second production level, and a third production level. The response time corresponding to the first production level is shorter than the response time corresponding to the second production level, and the response time corresponding to the second production level is shorter than the response time corresponding to the third production level. For example, the first production level may correspond to the S level mentioned above, the second production level may correspond to the A level and / or the B level mentioned above, and the third production level may correspond to the C level mentioned above. The configuration method of label production provided by the embodiment of the present disclosure is described in detail below in combination with the above three production levels.
[0046] In some embodiments, the target production level of the tag to be produced is the first production level. Accordingly, S510 includes: S510A, in response to the access party configuration operation instruction, obtaining access party information, wherein the access party is used to produce user data;
[0047] S520 includes: S520A, authenticating the access policy's production authority for the tag to be produced according to the access party information;
[0048] If the access party passes the authentication, the access verification information is generated, and the access party is used as the target data source and the preset production environment is used as the target production environment;
[0049] A routing relationship is established between the target data source and the target production environment, wherein when the target data source produces user data, the called production environment is immediately called through access verification information to produce a to-be-produced tag.
[0050] In the embodiment of the present disclosure, when the target production level is the first production level, the response time of the label to be produced is relatively short, and the user data needs to be directly obtained from the service interface of the access party. Therefore, the technician can configure the access party information corresponding to the label to be produced through the access party information configuration operation instruction. Correspondingly, the label grading production platform obtains the access party information corresponding to the label to be produced in response to the user's access party information configuration operation instruction. Then, the label grading production platform can further authenticate the access policy's production authority for the label to be produced based on the access party information. If the access party authentication is passed, access verification information is generated, and a routing relationship is established between the access party and the pre-set production environment to be called. In this way, when the access party produces user data, it can immediately call the called production environment through the access verification information to produce the label to be produced, thereby shortening the response time of the label to be produced.
[0051] Specifically, when the target production level is the first production level, the production level configuration information includes access party information. The access party is the producer of user data, and is able to use the services provided by the label grading production platform to produce labels. Exemplarily, the access party may include a shopping platform, a social media platform, etc., but is not limited to this. Optionally, the access party information may include the access party name, English abbreviation, and query rate per second (QPS), etc., wherein the access party name is used to identify the access party, QPS is an indicator of processing power, which refers to the number of queries that can be processed per second, and the estimated QPS is the estimated number of queries that can be processed per second, but is not limited to this.
[0052] Specifically, the label grading production platform can authenticate the production authority of the labels to be produced based on the access party information (i.e., authentication information). Once the authentication is passed, a unique access verification information will be generated for the access party. Among them, this verification information will be used as the identity credential of the access party, allowing the access party to access the label grading production platform, thereby calling the production environment to be called. Exemplarily, the access verification information may include a token, etc., but is not limited thereto.
[0053] Specifically, the adjusted production environment is a processor pre-defined by the label grading production platform, which can meet the demand for synchronous business production labels.
[0054] It can be understood that by configuring the to-be-produced tag through S510A and S520A, a routing relationship can be established between the access party and the pre-set production environment. In this way, when the access party produces user data, it can immediately call the called production environment to produce the to-be-produced tag through the access verification information, thereby shortening the response time of the to-be-produced tag and meeting the needs of synchronous business production tags.
[0055] In some other embodiments, the target production level is a lower production level (corresponding to the second production level or the third production level mentioned above), and accordingly, S510 includes: S511, if the target production level is a lower production level, in response to the data source configuration operation instruction, obtaining data source information of the target data source, wherein the target data source is used to transmit or store user data;
[0056] S512, in response to the key data extraction configuration operation instruction, obtaining key data extraction information for extracting key data from user data;
[0057] S513, in response to the production task configuration operation instruction, obtaining production task information;
[0058] S520 includes: S521, creating a target production task according to data source information, key data extraction information and production task information;
[0059] S522. Determine a matching target production environment according to the production task information;
[0060] S523. Establish a routing relationship between the target data source and the target production environment, wherein the target production environment executes the target production task according to the user data pulled from the target data source, thereby producing the to-be-produced label.
[0061] In the embodiment of the present disclosure, when the target production level is a low production level, user data can be obtained from a device that transmits or stores user data. Therefore, the technician can configure the data source information through the data source configuration operation instruction, and configure the key data extraction information through the key data extraction configuration operation instruction. Accordingly, the label grading production platform can determine the target data source in response to the user's data source configuration operation instruction, and obtain the key data extraction information in response to the user's key data extraction configuration operation instruction. In addition, the technician can configure the production task information through the production task configuration operation instruction. Correspondingly, the label grading production platform can determine the production task information in response to the user's production task configuration operation instruction, and then determine the matching target production environment according to the production task information, and create a target production task for producing the label to be produced according to the data source information, the key data extraction information and the production task information, and establish a routing relationship between the user-configured target data source and the target production environment, so that the target production environment can pull the user data from the target data source and produce the label to be produced according to the user data by executing the target production task.
[0062] Specifically, when the target production level is a low production level, the production level configuration information includes data source information, key data extraction information and production task information.
[0063] Specifically, the data source information is information related to the source of the target data and is used to determine the source of the target data.
[0064] Specifically, the key data extraction information is used to indicate how to extract key data from user data, wherein the key data is data selected from user data that is important for producing the label to be produced.
[0065] Specifically, the production task information is information related to the execution of the target production task. Optionally, the production task information includes resource information, wherein the resource information is used to describe the processor resources (such as CPU, memory, etc.) of the target production environment for executing the target production task. Further optionally, the production task information also includes scheduling information, wherein the scheduling information is used to describe when the target production task is to be executed (such as once a day, etc.) and how it is to be executed.
[0066] Specifically, the target production task refers to a series of specific work or operation processes performed in the target production environment. For example, the target production task may involve extracting user data from the target data source, extracting key data from the user data according to key data extraction information, and producing labels to be produced according to key data and label information, etc., but is not limited thereto.
[0067] Specifically, the target production environment is a processor that matches the resource information and is used to execute the target production task. When the target production environment executes the target production task, it can pull user data from the target data source and produce labels to be produced based on the user data.
[0068] It can be understood that by configuring the labels to be produced through S511-S513 and S521-S523, it is possible to create a target production task based on data source information, key data extraction information and production task information (including at least resource information), and establish a routing relationship between the target data source (device that transmits or stores user data) and the target production environment that matches the resource information, so that the target production environment can execute the target production task, thereby pulling user data from the target data source and producing the labels to be produced based on the user data. By creating a target production task, the production process of the labels to be produced can be automated, efficiency can be improved, and the accuracy of the labels can be ensured.
[0069] In some examples, the low production level includes the second production level, and the target data source is a message source for transmitting user data, and optionally, the message source includes a cluster Kafka and / or RockrtMQ. Accordingly, S511 includes: if the target production level is the second production level, in response to a message source configuration operation instruction, obtaining message source information of the target data source;
[0070] S512 includes: in response to the tag extraction field configuration operation instruction, obtaining the tag extraction field;
[0071] S513 includes: in response to the resource configuration operation instruction, obtaining resource information of the target production environment;
[0072] S521 includes: creating a target production task according to message source information, tag extraction fields and resource information;
[0073] S522 includes: determining a matching target production environment according to the resource information;
[0074] S523 includes: establishing a routing relationship between the message source and the target production environment, wherein the message source immediately sends the user data to the target production environment upon receiving the user data.
[0075] In the embodiment of the present disclosure, when the target production level is the second production level, the response time of the label to be produced is medium, and user data needs to be obtained from the message source. Therefore, the technician can configure the message source information through the message source configuration operation instruction, and configure the label extraction field through the label extraction field configuration operation instruction. Correspondingly, the label grading production platform can respond to the user's message source configuration operation instruction, determine the message source (i.e., the target data source) corresponding to the label to be produced in the message source corresponding to the second production level, and respond to the user's label extraction field configuration operation instruction to obtain the label extraction field. In addition, the technician can configure the resource information of the target production environment through the production task configuration operation instruction. Correspondingly, the label grading production platform can respond to the user's production task configuration operation instructions, determine the resource information of the target environment, and then determine the target production environment that matches the resource information, and create a target production task for producing the labels to be produced based on the message source information, label extraction fields and resource information, and establish a routing relationship between the user-configured message source and the target production environment. In this way, when the message source receives user data, it can immediately send the user data to the target production environment, and the target production environment can produce the labels to be produced as soon as possible by executing the target production task. In this way, it can meet the production requirements of labels several seconds or minutes after the business occurs.
[0076] Specifically, when the target production level is the second production level, the production level configuration information includes message source information, tag extraction fields and resource information, but is not limited thereto.
[0077] Specifically, the message source information is information related to the target data source (belonging to the message source), which is used to determine the target data source. Among them, the message source refers to message middleware such as cluster Kafka, RocketMQ, etc., which can efficiently process a large amount of real-time data streams. Optionally, the message source information may include a message source type (such as Kafka or RocketMQ), a topic, and / or a consumer group. Among them, in Kafka and RocketMQ, user data is organized in the form of a topic, a topic is a logical name, and all user data of the same topic will be sent to the same topic. A consumer group is a collection of a group of users (consumers), which subscribe to the same topic, but can distribute messages to different users according to different strategies. Exemplarily, the process of configuring a message source generally includes: selecting a suitable message source type (such as Kafka or RocketMQ), specifying the topic name to be used, and defining a consumer group to facilitate the management of the consumption behavior of multiple users, but is not limited to this.
[0078] Specifically, the tag extraction field refers to which fields are extracted from the user data provided by the message source to produce the labels to be produced. Exemplarily, fields such as user_id (i.e. user ID), product_id (i.e. product ID), action_type (i.e. user behavior, such as "browse", "purchase", "collection", etc.) are extracted from the user data. Exemplarily, the process of configuring the tag extraction field generally includes: determining which fields are useful for producing the labels to be produced, designing rules or algorithms to process the data of these fields so as to be used to produce the labels to be produced, but is not limited to this.
[0079] Specifically, when the target production level is the second production level, the production task information includes resource information.
[0080] Specifically, the target production task refers to a series of specific work or operation processes performed in the target production environment. For example, the target production task may involve extracting user data from a configured message source, extracting corresponding fields from user data according to the tag extraction field, and producing the to-be-produced tags according to these fields and tag information, etc., but is not limited thereto.
[0081] Specifically, the target production environment is a processor that matches the resource information and is used to execute the target production task. When the target production environment executes the target production task, it can pull user data from the configured message source and produce labels to be produced based on the user data.
[0082] It can be understood that by configuring the to-be-produced labels through the above steps, it is possible to create a target production task based on the message source information, label extraction fields and resource information, and establish a routing relationship between the configured message source (device that transmits user data) and the target production environment that matches the resource information. In this way, when the message source receives user data, it can immediately send the user data to the target production environment. The target production environment can produce the to-be-produced labels as soon as possible by executing the target production task. In this way, the production of labels can be met several seconds or minutes after the business occurs.
[0083] In some other examples, the low production level includes the third production level, and the target data source is a message source for storing user data, and optionally, the message source includes MySQL and / or a data warehouse information library. Accordingly, S511 includes: if the target production level is the third production level, in response to the data source configuration operation instruction, obtaining data source information of the target data source;
[0084] S512 includes: obtaining a label query statement in response to a label query statement configuration operation instruction;
[0085] S513 includes: in response to the resource scheduling configuration operation instruction, obtaining resource information of the target production environment and scheduling information of the target production task;
[0086] S521 includes: creating a target production task according to data source information, label query statements, resource information and scheduling information;
[0087] S522 includes: determining a matching target production environment according to the resource information;
[0088] S523 includes: establishing a routing relationship between the data source and the target production environment, wherein the target production environment pulls user data from the data source according to the scheduling information.
[0089] In the embodiment of the present disclosure, when the target production level is the third production level, the response time of the label to be produced is relatively long, and user data needs to be obtained from the data source. Therefore, the technician can configure the data source information through the data source configuration operation instruction, and configure the label query statement through the label query statement configuration operation instruction. Correspondingly, the label grading production platform can respond to the user's data source configuration operation instruction, determine the data source (i.e., the target data source) corresponding to the label to be produced in the data source corresponding to the third production level, and respond to the user's label query statement configuration operation instruction to obtain the label query statement. In addition, the technician can configure the resource information of the target production environment through the production task configuration operation instruction. Correspondingly, the label grading production platform can respond to the user's production task configuration operation instructions, determine the resource information and scheduling information, and then determine the target production environment that matches the resource information, and create a target production task for producing the labels to be produced based on the data source information, label query statements, resource information and scheduling information, and establish a routing relationship between the user-configured data source and the target production environment. In this way, when the target production environment executes the target production task according to the scheduling information, it can pull user data from the configured data source and produce the labels to be produced based on the user data. In this way, it can meet the production of labels several days after the business occurs.
[0090] Specifically, when the target production level is the third production level, the production level configuration information includes data source information, label query statements, resource information and scheduling information, but is not limited thereto.
[0091] Specifically, the data source information is information related to the source of the target data (belonging to the data source), which is used to determine the source of the target data. Optionally, the data source information may include a data source type (such as MySQL, or a data warehouse information library). Among them, the data source refers to a place where user data is stored, such as a relational database (such as MySQL), a data warehouse information library, etc. Among them, MySQL is a widely used open source relational database management system. The data warehouse information library is a system used to store historical data and support business intelligence activities, which usually contains a large amount of historical data and summary data. Exemplarily, the process of configuring a data source generally includes: selecting an appropriate data source type (such as MySQL, or a data warehouse information library), specifying a specific database instance (such as a database server address, port, user name and password and other connection information), and specifying the database name and table name to be used, but is not limited to this.
[0092] Specifically, the tag query statement is used to extract the data related to the tag (i.e., key data) from the configured data source. Optionally, the tag query statement may include tag extraction SQL, where SQL (Structured Query Language) is a standard language for managing and operating relational databases, but is not limited to this. Exemplarily, the process of writing tag extraction SQL generally includes: determining the fields to be queried according to the needs of tag production; writing SQL query statements, selecting the required key data and applying necessary filtering conditions and aggregation functions, etc., but is not limited to this.
[0093] Specifically, when the target production level is the third production level, the production task information includes resource information and scheduling information.
[0094] Specifically, the target production task refers to a series of specific work or operation processes performed in the target production environment. For example, the target production task may involve extracting user data from a configured data source, extracting key data from user data through a tag query statement, and producing a tag to be produced based on the key data and tag information, but is not limited thereto.
[0095] Specifically, the target production environment is a processor that matches the resource information and is used to execute the target production task. When the target production environment executes the target production task according to the scheduling information, it can pull user data from the configured data source and produce the labels to be produced according to the user data.
[0096] It can be understood that by configuring the to-be-produced labels through the above steps, it is possible to create a target production task based on the data source information, label query statements, resource information and scheduling information, and establish a routing relationship between the configured message source (device that stores user data) and the target production environment that matches the resource information. In this way, the target production environment can produce the to-be-produced labels as soon as possible by executing the target production task. In this way, when the target production environment executes the target production task according to the scheduling information, it can pull user data from the configured data source and produce the to-be-produced labels based on the user data. In this way, it can meet the production of labels several days after the business occurs.
[0097] It should be noted that the above-mentioned message sources and data sources can be horizontally expanded according to actual needs, which can achieve full-scenario coverage of label production and better support business development.
[0098] Figure 6 A flowchart of an example of a configuration method for label production provided by an embodiment of the present disclosure, such as Figure 6 As shown, the specific processing process is as follows: On the label hierarchical production platform, the designer configures the label information and target production level of the label to be produced. After selecting the target production level, the corresponding hierarchical production configuration process will be entered. The first production level configures the access party information and generates access verification information, and establishes a routing relationship between the access party and the pre-defined production environment to be called; the second production level configures the message source, label extraction field and production task information (including resource information), and creates the target production task according to the message source information, label extraction field and resource information, and establishes a routing relationship between the configured message source and the target production environment matching the resource information; the third production level configures the data source, label query statement and production task information (including resource information and scheduling information), and creates the target production task according to the data source information, label query statement, resource information and scheduling information, and establishes a routing relationship between the configured data source and the target production environment matching the resource information. In this way, the production configuration of the label to be produced can be completed. It can be seen that in order to reduce the technical learning and development costs of label production, improve label production efficiency, and support label production in all scenarios, the disclosed embodiment proposes a label hierarchical production platform to realize full configuration of label production, reduce development costs, and shorten label production cycles. And by defining production grading configuration, the entire label production scenario can be covered, and it can be expanded horizontally to achieve full coverage of label production scenarios and better support business development.
[0099] It should be understood that although Figure 5 and Figure 6 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. Moreover, Figure 5 and Figure 6 At least part of the steps may include multiple steps or multiple stages. These steps or stages are not necessarily performed at the same time, but can be performed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed in turn or alternately with other steps or at least part of the steps or stages in other steps.
[0100] It can be understood that the same / similar parts between the various embodiments of the above method in this specification can refer to each other, and each embodiment focuses on the differences from other embodiments. For related points, please refer to the description of other method embodiments.
[0101] The present disclosure also provides a configuration device for label production, such as Figure 7 As shown, the device comprises:
[0102] A first acquisition module 710 is used to acquire a target production level of a tag to be produced in response to a production level configuration operation instruction, wherein the target production level is used to represent a response time for producing the tag to be produced;
[0103] A first determination module 720, configured to determine the hierarchical production configuration information of the to-be-produced label according to the target production grade;
[0104] The first establishing module 730 is used to establish a routing relationship between the target data source of the label to be produced and the target production environment according to the hierarchical production configuration information, wherein the target production environment is used to produce the label to be produced according to the user data provided by the target data source.
[0105] Optionally, the first determining module 720 is specifically configured to obtain access party information in response to an access party configuration operation instruction if the target production level is the first production level, wherein the access party is used to produce the user data;
[0106] A first establishing module 730 is specifically configured to authenticate the access party's production authority for the label to be produced according to the access party information;
[0107] If the access party passes the authentication, access verification information is generated, and the access party is used as the target data source and the preset adjusted production environment is used as the target production environment;
[0108] A routing relationship is established between the target data source and the target production environment, wherein when the target data source produces the user data, the called production environment is immediately called through the access verification information to produce the tag to be produced.
[0109] Optionally, the first determination module 720 includes: a first acquisition submodule, configured to acquire data source information of the target data source in response to a data source configuration operation instruction if the target production level is a low production level, wherein the target data source is used to transmit or store the user data;
[0110] A second acquisition submodule, configured to acquire key data extraction information for extracting key data from the user data in response to the key data extraction configuration operation instruction;
[0111] A third acquisition submodule is used to acquire production task information in response to the production task configuration operation instruction;
[0112] The first establishing module 730 includes: a first creating submodule, which is used to create a target production task according to the data source information, the key data extraction information and the production task information;
[0113] A first determination submodule, configured to determine a matching target production environment according to the production task information;
[0114] The first establishment submodule is used to establish a routing relationship between the target data source and the target production environment, wherein the target production environment executes the target production task according to the user data pulled from the target data source, thereby producing the label to be produced.
[0115] Optionally, the low production level includes a second production level, and the target data source is a message source for transmitting the user data;
[0116] The first acquisition submodule is specifically used to acquire the message source information of the target data source in response to the message source configuration operation instruction if the target production level is the second production level;
[0117] A second acquisition submodule is specifically used to acquire the tag extraction field in response to the tag extraction field configuration operation instruction;
[0118] A third acquisition submodule is specifically used to obtain resource information of the target production environment in response to the resource configuration operation instruction;
[0119] A first creation submodule is specifically used to create the target production task according to the message source information, the tag extraction field and the resource information;
[0120] A first determination submodule, specifically configured to determine the matching target production environment according to the resource information;
[0121] The first establishing submodule is specifically used to establish a routing relationship between the message source and the target production environment, wherein the message source immediately sends the user data to the target production environment upon receiving the user data.
[0122] Optionally, the message source includes cluster Kafka and / or RockrtMQ.
[0123] Optionally, the low production level includes a third production level, and the target data source is a data source for storing the user data;
[0124] The first acquisition submodule is specifically configured to acquire the data source information of the target data source in response to the data source configuration operation instruction if the target production level is the third production level;
[0125] A second acquisition submodule is specifically used to acquire a label query statement in response to a label query statement configuration operation instruction;
[0126] The third acquisition submodule is specifically used to obtain the resource information of the target production environment and the scheduling information of the target production task in response to the resource scheduling configuration operation instruction;
[0127] A first creation submodule is specifically used to create the target production task according to the data source information, the label query statement, the resource information and the scheduling information;
[0128] A first determination submodule, specifically configured to determine the matching target production environment according to the resource information;
[0129] The first establishing submodule is specifically used to establish a routing relationship between the data source and the target production environment, wherein the target production environment pulls the user data from the data source according to the scheduling information.
[0130] Optionally, the data source includes MySQL and / or a data warehouse information database.
[0131] Optionally, the response time corresponding to the first production level is shorter than the response time corresponding to the second production level, and the response time corresponding to the second production level is shorter than the response time corresponding to the third production level.
[0132] For the specific definition of the configuration device for label production, please refer to the definition of the configuration method for label production above, which will not be repeated here. Each module in the above-mentioned configuration device for label production 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 electronic device in the form of hardware, or can be stored in the memory of the electronic device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0133] In one embodiment, an electronic device is provided, such as Figure 8 As shown, it includes a processor 801, a communication interface 802, a memory 803 and a communication bus 804, wherein the processor 801, the communication interface 802, and the memory 803 communicate with each other through the communication bus 804; the memory 803 is used to store computer programs; the processor 801 is used to implement the above-mentioned video processing method steps when executing the program stored in the memory 803.
[0134] 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 steps of the configuration method for label production are implemented.
[0135] 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 by the present disclosure 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).
[0136] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0137] It should also be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for display, data for analysis, etc.) involved in this disclosure are all information and data authorized by the user or fully authorized by all parties.
[0138] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0139] 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.
[0140] The above-mentioned embodiments only express several implementation methods of the present disclosure, 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 ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present disclosure, and these all belong to the protection scope of the present disclosure. Therefore, the protection scope of the patent of the present disclosure shall be subject to the attached claims.
Claims
1. A configuration method for label production, characterized in that: The method comprises: In response to the production level configuration operation instruction, a target production level of the tag to be produced is obtained, wherein the target production level is used to characterize the response time of producing the tag to be produced; Determining hierarchical production configuration information of the labels to be produced according to the target production level; According to the hierarchical production configuration information, a routing relationship is established between the target data source of the label to be produced and the target production environment, wherein the target production environment is used to produce the label to be produced according to the user data provided by the target data source.
2. The method according to claim 1, characterized in that The step of determining the hierarchical production configuration information of the labels to be produced according to the target production level includes: If the target production level is the first production level, in response to the access party configuration operation instruction, obtaining access party information, wherein the access party is used to produce the user data; The step of establishing a routing relationship between the target data source of the to-be-produced label and the target production environment according to the hierarchical production configuration information includes: Authenticating the access party's production authority for the label to be produced according to the access party information; If the access party passes the authentication, access verification information is generated, and the access party is used as the target data source and the preset adjusted production environment is used as the target production environment; A routing relationship is established between the target data source and the target production environment, wherein when the target data source produces the user data, the called production environment is immediately called through the access verification information to produce the tag to be produced.
3. The method according to claim 1, characterized in that The step of determining the hierarchical production configuration information of the labels to be produced according to the target production level includes: If the target production level is a low production level, in response to a data source configuration operation instruction, obtaining data source information of the target data source, wherein the target data source is used to transmit or store the user data; In response to the key data extraction configuration operation instruction, acquiring key data extraction information for extracting key data from the user data; Responding to the production task configuration operation instruction, obtaining production task information; The step of establishing a routing relationship between the target data source of the to-be-produced label and the target production environment according to the hierarchical production configuration information includes: Creating a target production task according to the data source information, the key data extraction information and the production task information; Determining the matching target production environment according to the production task information; A routing relationship is established between the target data source and the target production environment, wherein the target production environment executes the target production task according to the user data pulled from the target data source, thereby producing the label to be produced.
4. The method according to claim 3, characterized in that The low production level includes a second production level, and the target data source is a message source for transmitting the user data; Wherein, if the target production level is a low production level, in response to a data source configuration operation instruction, obtaining data source information of the target data source includes: If the target production level is the second production level, in response to the message source configuration operation instruction, obtaining the message source information of the target data source; Wherein, in response to the key data extraction configuration operation instruction, obtaining key data extraction information for extracting key data from the user data includes: In response to the tag extraction field configuration operation instruction, obtaining the tag extraction field; The step of obtaining the production task information in response to the production task configuration operation instruction includes: In response to the resource configuration operation instruction, obtaining resource information of the target production environment; The step of creating a target production task according to the data source information, the key data extraction information and the production task information includes: Creating the target production task according to the message source information, the tag extraction field and the resource information; Wherein, determining the matching target production environment according to the production task information includes: Determining the matching target production environment according to the resource information; Wherein, establishing a routing relationship between the target data source and the target production environment includes: A routing relationship is established between the message source and the target production environment, wherein the message source immediately sends the user data to the target production environment upon receiving the user data.
5. The method according to claim 4, characterized in that The message source includes cluster Kafka and / or RockrtMQ.
6. The method according to claim 3, characterized in that The low production level includes a third production level, and the target data source is a data source for storing the user data; Wherein, if the target production level is a low production level, in response to a data source configuration operation instruction, obtaining data source information of the target data source includes: If the target production level is the third production level, in response to the data source configuration operation instruction, obtaining data source information of the target data source; Wherein, in response to the key data extraction configuration operation instruction, obtaining key data extraction information for extracting key data from the user data includes: Responding to the tag query statement configuration operation instruction, obtaining the tag query statement; The step of obtaining the production task information in response to the production task configuration operation instruction includes: In response to the resource scheduling configuration operation instruction, obtaining resource information of the target production environment and scheduling information of the target production task; The step of creating a target production task according to the data source information, the key data extraction information and the production task information includes: Creating the target production task according to the data source information, the tag query statement, the resource information and the scheduling information; Wherein, determining the matching target production environment according to the production task information includes: Determining the matching target production environment according to the resource information; Wherein, establishing a routing relationship between the target data source and the target production environment includes: A routing relationship is established between the data source and the target production environment, wherein the target production environment pulls the user data from the data source according to the scheduling information.
7. The method according to claim 1, characterized in that The data source includes MySQL and / or a data warehouse information database.
8. The method according to any one of claims 1 to 7, characterized in that: The response time corresponding to the first production level is shorter than the response time corresponding to the second production level, and the response time corresponding to the second production level is shorter than the response time corresponding to the third production level.
9. A configuration device for label production, characterized in that: The device comprises: A first acquisition module, configured to acquire a target production level of a tag to be produced in response to a production level configuration operation instruction, wherein the target production level is used to characterize a response time for producing the tag to be produced; A first determination module, configured to determine the hierarchical production configuration information of the to-be-produced labels according to the target production level; The first establishment module is used to establish a routing relationship between the target data source of the label to be produced and the target production environment according to the hierarchical production configuration information, wherein the target production environment is used to produce the label to be produced according to the user data provided by the target data source.
10. An electronic device, characterized in that: The invention comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; the memory is used to store computer programs; and the processor is used to implement the method described in any one of claims 1 to 8 when executing the program stored in the memory.
11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.
Citation Information
Patent Citations
Label processing method for civil aviation data, electronic equipment and storage medium
CN115062232A
Combined label generation method for civil aviation data
CN115062233A
Target data determination method and device, electronic equipment and storage medium
CN116227848A
Data label curing method and device, computer equipment and storage medium
CN116775955A
Method and apparatus for determining user tag
WO2022257604A1
