User orientation method, device, computer equipment, and computer-readable storage medium

By obtaining and replacing variables in user targeting expressions, user autonomous targeting is achieved, the problem of invalid user targeting is solved, and the efficiency and scope of targeting are improved.

CN116578771BActive Publication Date: 2025-09-16BEIJING WATERDROP TECH GRP CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310213400.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-03-07
Publication Date
2025-09-16
Estimated Expiration
2043-03-07

AI Technical Summary

Technical Problem

In the prior art, user orientation is ineffective, resulting in limitations and omissions in subsequent user selections, and low selection efficiency.

Method used

By responding to user targeting requests, determining the user to be targeted and the targeting execution parameters, obtaining the targeting expression, querying the address information and replacing the variable placeholder, executing the replaced expression to verify the address information, and outputting the execution result.

Benefits of technology

It improves the efficiency of user targeting, expands the scope of user targeting, avoids omissions, and reduces the need for manual screening by staff.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116578771B_ABST
    Figure CN116578771B_ABST
Patent Text Reader

Abstract

The present application discloses a user orientation method, apparatus, computer equipment and computer-readable storage medium, which relates to the field of big data technology. By defining a user environment identifier, some users who are not currently being oriented can be oriented according to their current environment, thereby improving orientation efficiency, making up for scenarios that cannot be reached by tags, expanding the scope of user orientation and avoiding omissions. The method includes: responding to a user orientation request, determining the user to be oriented, the orientation execution parameters, and obtaining the orientation expression based on the user environment identifier included in the orientation execution parameters; querying the address information of the user to be oriented, obtaining the variable replacement value in the orientation execution parameters; replacing the variable placeholder in the orientation expression with the address information and the variable replacement value, and executing the replaced orientation expression to obtain an execution result; when the execution result indicates that the address information verification is successful, determining that the orientation of the user to be oriented is successful, and outputting the execution result.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of big data technology, and in particular to a user orientation method, apparatus, computer equipment, and computer-readable storage medium. Background Art

[0002] With the continuous development of big data technology, big data-based applications and services are expanding across various scenarios. User profiling services, based on the big data platform, provide comprehensive and rapid descriptions and tagging of user groups for various service providers, enabling accurate and rapid user selection and improving search efficiency.

[0003] In related technologies, the system selects existing tags to define user groups, performs user targeting, and stores tag data based on ClickHouse (a column-based database management system) to implement user selection. However, the applicant recognizes that in some business scenarios, users need to be targeted promptly after their behavior occurs. However, if the user is not tagged at this time, the targeting is ineffective and inefficient, resulting in limitations in the subsequent user selection and prone to omissions. Summary of the Invention

[0004] In view of this, the present application provides a user orientation method, apparatus, computer device and computer-readable storage medium, the main purpose of which is to solve the problem that the current orientation is invalid, resulting in limitations in subsequent user selection, easy omissions and low selection efficiency.

[0005] According to a first aspect of the present application, a user orientation method is provided, the method comprising:

[0006] In response to a user orientation request, determining a user to be oriented, orientation execution parameters, and obtaining an orientation expression based on a user environment identifier included in the orientation execution parameters;

[0007] Querying the address information of the user to be directed, and obtaining a variable replacement value in the directed execution parameter;

[0008] Replacing variable placeholders in the directional expression with the address information and the variable replacement values, and executing the replaced directional expression to obtain an execution result;

[0009] When the execution result indicates that the address information verification is successful, it is determined that the user to be directed is successfully directed, and the execution result is output.

[0010] Optionally, before determining the user to be directed, the directed execution parameters, and obtaining the directed expression based on the user environment identifier included in the directed execution parameters in response to the user directed request, the method further includes:

[0011] In response to the environment variable setting request, display an environment variable management page, so that the developer can define at least one environment variable on the environment variable management page, wherein each of the at least one environment variable corresponds to a variable identifier;

[0012] When a confirmation instruction from the developer is received based on the environment variable management page, a user environment definition page is displayed, so that the developer can enter the user environment identifier on the user environment definition page, select environment variables to be used, and set variable replacement values ​​for the environment variables to be used;

[0013] receiving a definition completion instruction from the R&D personnel, determining the environment variable to be used selected by the R&D personnel, and reading a variable replacement value corresponding to the environment variable to be used;

[0014] The variable replacement value and the user environment identifier are used as the directional execution parameters.

[0015] Optionally, obtaining a directional expression according to a user environment identifier included in the directional execution parameter includes:

[0016] Parsing the directional execution parameter, and obtaining the user environment identifier from the directional execution parameter;

[0017] A directional expression template is obtained, and the user environment identifier is sorted according to the directional expression template to obtain the directional expression.

[0018] Optionally, the variable placeholders in the directional expression are replaced by using the address information and the variable replacement values, and the directional expression after replacement is executed to obtain an execution result:

[0019] When the execution result indicates that the address information verification fails, obtaining a verification failure identifier;

[0020] The address information is marked with the verification failure identifier, a direction failure reminder including the marked address information and the user to be directed is generated, and the direction failure reminder is output.

[0021] Optionally, the method further includes:

[0022] When a target user tag of the user to be directed is received based on the execution result, a distributed data flow task is constructed based on the target user tag, and the distributed data flow task is executed to update the target user tag to a distributed database; or

[0023] Receive a target user tag of the user to be directed based on the execution result feedback, record the target user tag based on a log, and continuously detect the time interval between the current time point and the last update time point. When the time interval reaches a preset update period, obtain log data, obtain at least one user tag to be updated from the log data, and synchronize the at least one user tag to be updated to the distributed database, wherein the at least one user tag to be updated is a user tag recorded in the log that has not been synchronized to the distributed database.

[0024] Optionally, the method further includes:

[0025] Generate a write-ahead log based on the user tag updated to the distributed database;

[0026] The write-ahead log is parsed using a distributed database transfer project, and the parsed write-ahead log is sent to a distributed message publishing system, so that the distributed message publishing system writes the parsed write-ahead log to a distributed search server.

[0027] Optionally, after sending the parsed write-ahead log to the distributed message publishing system so that the distributed message publishing system writes the parsed write-ahead log to the distributed search server, the method further includes:

[0028] When a crowd selection request is received based on the distributed search server, determining an initiator of the crowd selection request and determining a tag to be selected indicated by the crowd selection request, wherein the initiator is a platform or a management party connected to the distributed search server;

[0029] Based on the distributed search server, query at least one target user indicated by the to-be-selected tag, and use the at least one user as a query result;

[0030] Based on the interface between the distributed search server and the initiator, the query result is fed back to the initiator.

[0031] According to a second aspect of the present application, a user orientation device is provided, the device comprising:

[0032] A determination module, configured to determine, in response to a user orientation request, a user to be oriented, orientation execution parameters, and obtain an orientation expression based on a user environment identifier included in the orientation execution parameters;

[0033] A query module, configured to query the address information of the user to be directed and obtain a variable replacement value in the directed execution parameter;

[0034] an execution module, configured to replace the variable placeholders in the directional expression with the address information and the variable replacement values, and execute the replaced directional expression to obtain an execution result;

[0035] An output module is used to determine that the user to be directed is successfully directed when the execution result indicates that the address information verification is successful, and output the execution result.

[0036] Optionally, the device further comprises:

[0037] a display module, configured to display an environment variable management page in response to an environment variable setting request, so that a developer can define at least one environment variable on the environment variable management page, wherein each of the at least one environment variable corresponds to a variable identifier;

[0038] The display module is further configured to, upon receiving a confirmation instruction from the developer based on the environment variable management page, display a user environment definition page, so that the developer can enter the user environment identifier on the user environment definition page, select environment variables to be used, and set variable replacement values ​​for the environment variables to be used;

[0039] The determination module is further configured to receive a definition completion instruction from the R&D personnel, determine the environment variables to be used selected by the R&D personnel, and read variable replacement values ​​corresponding to the environment variables to be used;

[0040] The determining module is further configured to use the variable replacement value and the user environment identifier as the directional execution parameters.

[0041] Optionally, the determination module is used to parse the directional execution parameters and obtain the user environment identifier from the directional execution parameters; obtain a directional expression template, and organize the user environment identifier according to the directional expression template to obtain the directional expression.

[0042] Optionally, the execution module is used to obtain a verification failure identifier when the execution result indicates that the address information verification fails; use the verification failure identifier to mark the address information, generate a directional failure reminder including the marked address information and the user to be directed, and output the directional failure reminder.

[0043] Optionally, the device further comprises:

[0044] A storage module is used to, when receiving a target user tag of the user to be directed based on the execution result, construct a distributed data flow task based on the target user tag, and execute the distributed data flow task to update the target user tag to the distributed database; or, receive the target user tag of the user to be directed based on the feedback of the execution result, record the target user tag based on a log, and continuously detect the time interval between the current time point and the last update time point, when the time interval reaches a preset update period, obtain log data, obtain at least one user tag to be updated in the log data, and synchronize the at least one user tag to be updated to the distributed database, wherein the at least one user tag to be updated is a user tag recorded in the log that has not been synchronized to the distributed database.

[0045] Optionally, the storage module is also used to generate a pre-write log based on the user tag updated to the distributed database; parse the pre-write log using a distributed database transfer project, and send the parsed pre-write log to a distributed message publishing system, so that the distributed message publishing system writes the parsed pre-write log to a distributed search server.

[0046] Optionally, the storage module is further used to determine, when a crowd selection request is received based on the distributed search server, the initiator of the crowd selection request and the tag to be selected indicated by the crowd selection request, where the initiator is a platform or management party connected to the distributed search server; based on the distributed search server, query at least one target user indicated by the tag to be selected, and use the at least one user as the query result; and based on the interface between the distributed search server and the initiator, feed back the query result to the initiator.

[0047] According to a third aspect of the present application, a computer device is provided, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of any one of the methods described in the first aspect when executing the computer program.

[0048] According to a fourth aspect of the present application, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of any one of the methods in the first aspect are implemented.

[0049] By means of the above technical solution, the present application provides a user orientation method, apparatus, computer equipment and computer-readable storage medium. The present application responds to a user orientation request, determines the user to be directed, the orientation execution parameters, and the user environment identifier included in the orientation execution parameters, obtains the orientation expression, queries the address information of the user to be directed, obtains the variable replacement value in the orientation execution parameter, uses the address information and the variable replacement value to replace the variable placeholder in the orientation expression, and executes the replaced orientation expression to obtain an execution result. When the execution result indicates that the address information verification is successful, it is determined that the orientation of the user to be directed is successful, and the execution result is output. By defining the user environment identifier, some users who are temporarily not directed can be directed according to their current environment by themselves, without the need for staff to manually screen and direct users, thereby improving orientation efficiency, making up for scenarios that cannot be reached by tags, expanding the scope of user orientation, and avoiding omissions.

[0050] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] Various other advantages and benefits will become apparent to those skilled in the art upon reading the detailed description of the preferred embodiment below. The accompanying drawings are for illustration purposes only and are not to be considered as limiting the present application. The same reference symbols are used throughout the drawings to represent the same components. In the drawings:

[0052] Figure 1 A schematic diagram of a user orientation method provided in an embodiment of the present application is shown;

[0053] Figure 2A A schematic diagram of another user orientation method provided in an embodiment of the present application is shown;

[0054] Figure 2B A schematic diagram of a user orientation method provided in an embodiment of the present application is shown;

[0055] Figure 2C A schematic diagram of a user orientation method provided in an embodiment of the present application is shown;

[0056] Figure 2D A schematic diagram of a user orientation method provided in an embodiment of the present application is shown;

[0057] Figure 3 A schematic structural diagram of a user orientation device provided in an embodiment of the present application is shown;

[0058] Figure 4 A schematic diagram of the device structure of a computer device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0059] The following describes exemplary embodiments of the present application in more detail with reference to the accompanying drawings. Although exemplary embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided to enable a more thorough understanding of the present application and to fully convey the scope of the present application to those skilled in the art.

[0060] The present application embodiment provides a user orientation method, such as Figure 1 As shown, the method includes:

[0061] 101. In response to a user orientation request, determine a user to be oriented, orientation execution parameters, and obtain an orientation expression based on a user environment identifier included in the orientation execution parameters.

[0062] Nowadays, more and more product operations are beginning to pay attention to data-driven refined operation methods, so as to achieve accurate and fast user selection and improve search efficiency, and user portraits are an effective means of refined operation. When targeting users, the system will select existing tags to define user groups and perform user targeting, or it will also store tag data based on ClickHouse to achieve user selection. However, the applicant recognizes that there are two disadvantages in this approach. First, in some business scenarios, users need to be targeted in a timely manner after their behavior occurs. At this time, the user has not been labeled, resulting in invalid user targeting; second, Clickhouse is not very friendly to frequent data updates. When adding new tags, empty tags will also occupy storage. Therefore, this application proposes a user targeting method. By defining user environment identifiers, some users who are not targeted temporarily can be targeted according to their current environment. There is no need for staff to manually screen and target users, thereby improving targeting efficiency, making up for scenarios that cannot be reached by tags, expanding the scope of user targeting, and avoiding omissions.

[0063] This application can be applied to a data processing system. The data processing system can provide a directional entry for R&D personnel. When it is detected that the directional entry is triggered, it is determined that the R&D personnel currently have a directional demand. The R&D personnel define the directional execution parameters by themselves, wherein the directional execution parameters are used to indicate which variables are used to achieve user orientation, so as to verify the user's actual parameters, achieve user orientation, and output the user's orientation results to the R&D personnel for subsequent marking processing. When it is detected that the R&D personnel confirms the defined directional execution parameters, it is determined that the user orientation request of the R&D personnel is received. The data processing system will determine the user to be oriented, the directional execution parameters, and the user environment identifier included in the directional execution parameters, obtain the directional expression, and meet the user orientation needs of the R&D personnel.

[0064] The directional expression can be a SQL (Structured Query Language) search statement, which can be obtained based on the user environment identifier included in the directional execution parameter, thereby obtaining the search statement to be executed. For example, assuming that the directional execution parameter indicates that the user's directional operation is to be executed according to the "province" where the user is currently located, a search statement including the variable placeholder "province" can be generated, so that the province information of the user to be targeted can be verified by running the directional expression later.

[0065] 102. Query the address information of the user to be directed, and obtain the variable replacement value in the directed execution parameter.

[0066] In an embodiment of the present application, after obtaining the targeted expression, the data processing system will query the address information of the user to be targeted, obtain the variable replacement value in the targeted execution parameter, and then use the address information and variable replacement value to replace the variable placeholder in the targeted expression, and determine whether the targeted operation can be performed on the user to be targeted according to the currently obtained address information by executing the targeted expression.

[0067] The address information may be the resolved IP (Internet Protocol) information of the user to be directed, which is not specifically limited in this application. The variable replacement value is the variable value set by the developer for the environment variable selected when defining the directed execution parameters.

[0068] 103. Variable placeholders in a directed expression are replaced using address information and variable replacement values, and the directed expression after replacement is executed to obtain an execution result.

[0069] In the embodiment of the present application, after determining the address information and variable replacement values, the data processing system will use the address information and variable replacement values ​​to replace the variable placeholders in the targeted expression. After the replacement, the data processing system will execute the replaced targeted expression and verify the address information through the replaced targeted expression. The execution result can then be sent to the R&D personnel, who can then perform related processing such as tagging the targeted users based on the execution result.

[0070] 104. When the execution result indicates that the address information verification is successful, it is determined that the user to be directed is successfully directed, and the execution result is output.

[0071] In the embodiment of the present application, when the execution result indicates that the address information verification is successful, it indicates that the address information of the user to be directed is successfully verified, and the current environment of the user to be directed can be determined. The current environment of the user to be directed actually determines the direction of the directed orientation. Therefore, the data processing system determines that the directed orientation of the user to be directed is successful and outputs the execution result, which facilitates the R&D personnel to perform subsequent related processing such as tagging the directed user according to the execution result.

[0072] The method provided in the embodiment of the present application responds to a user orientation request, determines the user to be directed, orientation execution parameters, and the user environment identifier included in the orientation execution parameters, obtains a orientation expression, queries the address information of the user to be directed, obtains a variable replacement value in the orientation execution parameter, uses the address information and the variable replacement value to replace the variable placeholder in the orientation expression, and executes the replaced orientation expression to obtain an execution result. When the execution result indicates that the address information verification is successful, it is determined that the orientation of the user to be directed is successful, and the execution result is output. By defining the user environment identifier, some users who are temporarily not directed can be directed according to their current environment by themselves, without the need for staff to manually screen and direct users, thereby improving orientation efficiency, making up for scenarios that cannot be reached by tags, expanding the scope of user orientation, and avoiding omissions.

[0073] Furthermore, as a refinement and extension of the specific implementation of the above embodiment, in order to fully illustrate the specific implementation process of this embodiment, the embodiment of the present application provides another user orientation method, such as Figure 2A As shown, the method includes:

[0074] 201. In response to an environment variable setting request, obtain a variable replacement value and a user environment identifier defined by a developer, and use the variable replacement value and the user environment identifier as directional execution parameters.

[0075] The present application can be applied to a data processing system, which can provide a directional entry for R&D personnel. When it is detected that the directional entry is triggered, it is determined that the R&D personnel currently have a directional demand, and the R&D personnel define the directional execution parameters by themselves. The directional execution parameters are used to indicate which variables are used to achieve user orientation, so as to verify the user's actual parameters, achieve user orientation, and output the user's orientation results to the R&D personnel for subsequent labeling processing.

[0076] Specifically, when it is detected that the directional entry is triggered, the data processing system will determine that an environment variable setting request has been received. In response to the environment variable setting request, the data processing system will display the environment variable management page to enable the R&D personnel to define at least one environment variable on the environment variable management page. Among them, each environment variable in at least one environment variable corresponds to a variable identifier. When defining environment variables, R&D personnel can use system variables and custom variables to define the user's environment variables. The method of use is similar to that of the crowd package. The difference lies in the source of the data. The label data comes from the processed label data, and the environment variables come from the environment of the C (Customer) end user at that time. For example, environment variables may include the live broadcast room ID (Identity document), disease, current product code, current product category, etc.

[0077] When the developer receives a confirmation instruction based on the environment variable management page, it indicates that the developer has completed the definition of the environment variables. Next, the data processing system will display the user environment definition page, allowing the developer to enter the user environment ID, select the environment variables to be used, and set the variable replacement values ​​for the environment variables to be used. The variable replacement value setting of the environment variable is in the form of an interface. Regardless of the platform, developers can use the interface between the data processing system and the user environment ID and the value of the environment variable to define the parameters.

[0078] Then, when the data processing system receives the definition completion instruction from the R&D personnel, it means that the R&D personnel have completed the definition of variables and information. The data processing system will determine the environment variables to be used selected by the R&D personnel, read the variable replacement values ​​corresponding to the environment variables to be used, and use the variable replacement values ​​and user environment identifiers as directional execution parameters, and subsequently execute the user's directional operations according to the directional execution parameters.

[0079] 202. In response to the user orientation request, determine the user to be oriented, orientation execution parameters, and obtain the orientation expression according to the user environment identifier included in the orientation execution parameters.

[0080] In an embodiment of the present application, when it is detected that the R&D personnel confirms the defined directional execution parameters, it is determined that the user directional request of the R&D personnel has been received. The data processing system will determine the user to be directed, the directional execution parameters, and the user environment identifier included in the directional execution parameters, and obtain the directional expression to meet the user directional requirements of the R&D personnel.

[0081] Among them, the directional expression can be a SQL (Structured Query Language) search statement, which can be obtained specifically according to the user environment identifier included in the directional execution parameter, thereby obtaining the search statement to be executed. For example, assuming that the directional execution parameter indicates that the user's directional operation is executed according to the "province" where the user is currently located, a search statement including the variable placeholder "province" can be generated, so that the province information of the user to be targeted can be verified by running the directional expression later. When obtaining the directional expression, the data processing system will parse the directional execution parameter, obtain the user environment identifier in the directional execution parameter, and obtain the directional expression template, organize the user environment identifier according to the directional expression template, and obtain the directional expression.

[0082] 203. Query the address information of the user to be directed, and obtain the variable replacement value in the directed execution parameter.

[0083] In the embodiment of the present application, after obtaining a targeted expression, since some variables in the targeted expression are represented by variable placeholders, in actual application, it is necessary to obtain specific values ​​according to different targeted requirements and replace these variable placeholders with specific values. Therefore, the data processing system will query the address information of the user to be targeted and obtain the variable replacement values ​​in the targeted execution parameters, so that the address information and variable replacement values ​​can be used to replace the variable placeholders in the targeted expression.

[0084] 204. Use the address information and variable replacement values ​​to replace the variable placeholders in the directional expression, and execute the replaced directional expression to obtain an execution result. When the execution result indicates that the address information verification is successful, execute the following step 205; when the execution result indicates that the address information verification fails, execute the following step 206.

[0085] In an embodiment of the present application, after obtaining the address information and variable replacement values, the data processing system replaces the variable placeholders in the directional expression with the address information and variable replacement values, and executes the replaced directional expression to obtain an execution result. The execution result is in the form of True or False, where True or False is used to indicate whether the address information input into the directional expression is successfully verified.

[0086] Accordingly, if the execution result is True, it indicates that the address information verification is successful, and the result can be notified to the R&D personnel so that they can use the tag related to the address information to mark the user. That is, when the execution result indicates that the address information verification is successful, the following step 205 is executed. If the execution result is False, it indicates that the address information verification failed, and the R&D personnel need to be notified of the verification failure. The R&D personnel need to manually adjust the targeted execution parameters or manually troubleshoot the abnormal problem. That is, the following step 206 is executed.

[0087] 205. When the execution result indicates that the address information verification is successful, it is determined that the user to be directed is successfully directed, and the execution result is output.

[0088] In an embodiment of the present application, when the execution result indicates that the address information verification is successful, it means that the address information verification is successful, and the result can be informed to the R&D personnel so that the R&D personnel can use the tags related to the address information to mark the user. Therefore, the data processing system determines that the user to be directed is successfully directed and outputs the execution result.

[0089] During actual application, after the data processing system outputs the execution results, the R&D personnel will use the tags related to the address information to tag the users. In this way, the data processing system will receive the tagging results fed back by the R&D personnel. The data processing system will store the tags added this time in order to expand the tags and make the tags cover a wider range of users. Considering that Clickhouse is not very friendly to the frequent updates of data, when adding new tags, empty tags will also occupy storage. Therefore, in the embodiment of the present application, Elasticsearch (a Lucene-based search server) is used to store tag data for crowd selection. There are two ways to store tags, one is real-time storage and the other is offline storage. The storage process of the two methods is described below:

[0090] If real-time storage is adopted, when the data processing system receives the target user tag of the user to be directed based on the execution result, it will build a distributed data flow task based on the target user tag and execute the distributed data flow task to update the target user tag to the distributed database.

[0091] If offline storage is used, the data processing system receives target user tags for the users to be targeted based on the execution result feedback, records the target user tags in the log, and continuously monitors the time interval between the current time point and the last update time point. When the time interval reaches a preset update period, the system obtains log data, obtains at least one user tag to be updated from the log data, and synchronizes the at least one user tag to be updated to the distributed database. The at least one user tag to be updated is a user tag recorded in the log that has not yet been synchronized to the distributed database.

[0092] Specifically, in the actual application process, Figure 2B As shown in the figure, when using real-time storage, you can also obtain various embedded data from Kafka (distributed streaming platform). Based on user tags and various embedded data from Kafka, you can build a flink streaming (distributed data flow task) in SQL as a distributed data flow task. By executing the flink streaming task, you can update user tags and various embedded data from Kafka to Hbase (i.e., distributed database). When using offline storage, as shown in the figure, Figure 2B As shown, the server's computing power can be used to write the queried data into Kafka to form historical log data, and then at least one user tag to be updated is obtained from the historical log data, and the at least one user tag to be updated is synchronized to Hbase (i.e., a distributed database).

[0093] After writing the user tags to the distributed database, the data processing system will synchronize the updated content to the distributed search server, as it will be necessary to implement user selection based on the user tags. This allows the distributed search service to directly perform the selection operation when the developer performs the selection operation, without having to request the distributed database to update the data. The specific process of synchronizing the updated content to the distributed search server is as follows:

[0094] First, the data processing system generates a pre-write log based on the user tags updated to the distributed database. Then, the distributed database transfer project is used to parse the pre-write log and send the parsed pre-write log to the distributed message publishing system, so that the distributed message publishing system writes the parsed pre-write log to the distributed search server. In the actual application process, see Figure 2CThe distributed database Hbase can generate WAL (Write Ahead Log) logs as pre-written logs. Then, the hbase-transfer project (distributed database transfer project) is used as a distributed database transfer project. This project parses the WAL logs and sends them to Kafka (a distributed messaging system). Kafka then uses Flink tasks to batch write the parsed pre-written logs to Elasticsearch (a distributed search server). This process allows subsequent user selection to parse the crowd package expression into ESPainless Script (Elasticsearch Painless Script, a scripting language), query the tag data, and select users.

[0095] In addition, it should be noted that after synchronization with the distributed search server, any party connected to the distributed search server can request the distributed search server to recall the user they want. The specific process is as follows: When a crowd selection request is received based on the distributed search server, indicating that an party wants to select a user, the data processing system will determine the initiator of the crowd selection request and the tag to be selected indicated by the crowd selection request. The initiator is the platform or management party connected to the distributed search server, that is, any party connected to the distributed search server. Next, the data processing system will query the distributed search server for at least one target user indicated by the tag to be selected, use the at least one user as the query result, and feedback the query result to the initiator based on the interface between the distributed search server and the initiator.

[0096] 206. When the execution result indicates that the address information verification fails, obtain a verification failure identifier, mark the address information with the verification failure identifier, generate a targeting failure reminder including the marked address information and the user to be targeted, and output the targeting failure reminder.

[0097] In an embodiment of the present application, when the execution result indicates that the address information verification failed, it means that the address information verification failed, and the R&D personnel need to be informed of the verification failure. The R&D personnel need to manually adjust the directional execution parameters or manually check for abnormal problems. Therefore, the data processing system obtains a verification failure identifier, uses the verification failure identifier to mark the address information, generates a directional failure reminder including the marked address information, the user to be directed, and outputs the directional failure reminder.

[0098] In summary, the process of user orientation in this application is summarized as follows: Figure 2DAs shown, the user to be targeted is determined, the targeted execution parameters are obtained, and a targeted expression is determined based on the user environment identifier included in the targeted execution parameters. The address information of the user to be targeted is queried, and variable replacement values ​​are obtained from the targeted execution parameters. The address information and variable replacement values ​​are used to replace the variable placeholders in the targeted expression, and the replaced targeted expression is executed to obtain an execution result, which is then output.

[0099] The method provided in the embodiment of the present application responds to a user orientation request, determines the user to be directed, orientation execution parameters, and the user environment identifier included in the orientation execution parameters, obtains a orientation expression, queries the address information of the user to be directed, obtains a variable replacement value in the orientation execution parameter, uses the address information and the variable replacement value to replace the variable placeholder in the orientation expression, and executes the replaced orientation expression to obtain an execution result. When the execution result indicates that the address information verification is successful, it is determined that the orientation of the user to be directed is successful, and the execution result is output. By defining the user environment identifier, some users who are temporarily not directed can be directed according to their current environment by themselves, without the need for staff to manually screen and direct users, thereby improving orientation efficiency, making up for scenarios that cannot be reached by tags, expanding the scope of user orientation, and avoiding omissions.

[0100] Further, as Figure 1 In the specific implementation of the method, the embodiment of the present application provides a user orientation device, such as Figure 3 As shown, the device includes: a determination module 301, a query module 302, an execution module 303 and an output module 304.

[0101] The determination module 301 is configured to determine, in response to a user orientation request, a user to be oriented, orientation execution parameters, and obtain an orientation expression based on a user environment identifier included in the orientation execution parameters;

[0102] The query module 302 is used to query the address information of the user to be directed and obtain the variable replacement value in the directed execution parameter;

[0103] The execution module 303 is configured to replace the variable placeholders in the directional expression with the address information and the variable replacement values, and execute the replaced directional expression to obtain an execution result;

[0104] The output module 304 is configured to determine that the user to be directed is successfully directed when the execution result indicates that the address information verification is successful, and output the execution result.

[0105] In a specific application scenario, the device also includes: a display module.

[0106] a display module, configured to display an environment variable management page in response to an environment variable setting request, so that a developer can define at least one environment variable on the environment variable management page, wherein each of the at least one environment variable corresponds to a variable identifier;

[0107] The display module is further configured to, upon receiving a confirmation instruction from the developer based on the environment variable management page, display a user environment definition page, so that the developer can enter the user environment identifier on the user environment definition page, select environment variables to be used, and set variable replacement values ​​for the environment variables to be used;

[0108] The determination module 301 is further configured to receive a definition completion instruction from the developer, determine the environment variable to be used selected by the developer, and read a variable replacement value corresponding to the environment variable to be used;

[0109] The determining module 301 is further configured to use the variable replacement value and the user environment identifier as the directional execution parameters.

[0110] In a specific application scenario, the determination module 301 is used to parse the directional execution parameters and obtain the user environment identifier in the directional execution parameters; obtain a directional expression template, organize the user environment identifier according to the directional expression template, and obtain the directional expression.

[0111] In a specific application scenario, the execution module 303 is used to obtain a verification failure identifier when the execution result indicates that the address information verification fails; use the verification failure identifier to mark the address information, generate a directed failure reminder including the marked address information and the user to be directed, and output the directed failure reminder.

[0112] In a specific application scenario, the device also includes:

[0113] The storage module is used to, when receiving the target user tag of the user to be directed based on the execution result, construct a distributed data flow task based on the target user tag, and execute the distributed data flow task to update the target user tag to the distributed database; or, receive the target user tag of the user to be directed based on the feedback of the execution result, record the target user tag based on the log, and continuously detect the time interval between the current time point and the last update time point, when the time interval reaches a preset update period, obtain log data, obtain at least one user tag to be updated in the log data, and synchronize the at least one user tag to be updated to the distributed database, wherein the at least one user tag to be updated is a user tag recorded in the log that has not been synchronized to the distributed database.

[0114] In a specific application scenario, the storage module is also used to generate a pre-write log based on the user tag updated to the distributed database; use a distributed database transfer project to parse the pre-write log, and send the parsed pre-write log to a distributed message publishing system, so that the distributed message publishing system writes the parsed pre-write log to a distributed search server.

[0115] In a specific application scenario, the storage module is also used to determine the initiator of the crowd selection request and the tag to be selected indicated by the crowd selection request when the distributed search server receives the crowd selection request, where the initiator is a platform or management party connected to the distributed search server; based on the distributed search server, query at least one target user indicated by the tag to be selected, and use the at least one user as the query result; and based on the interface between the distributed search server and the initiator, feed back the query result to the initiator.

[0116] The device provided in the embodiment of the present application responds to a user orientation request, determines the user to be directed, orientation execution parameters, and the user environment identifier included in the orientation execution parameters, obtains a orientation expression, queries the address information of the user to be directed, obtains a variable replacement value in the orientation execution parameter, uses the address information and the variable replacement value to replace the variable placeholder in the orientation expression, and executes the replaced orientation expression to obtain an execution result. When the execution result indicates that the address information verification is successful, it is determined that the orientation of the user to be directed is successful, and the execution result is output. By defining the user environment identifier, some users who are temporarily not directed can be directed according to their current environment by themselves, without the need for staff to manually screen and direct users, thereby improving orientation efficiency, making up for scenarios that cannot be reached by tags, expanding the scope of user orientation, and avoiding omissions.

[0117] It should be noted that for other corresponding descriptions of the functional units involved in the user orientation device provided in the embodiment of the present application, please refer to Figure 1 and Figures 2A to 2D The corresponding description in will not be repeated here.

[0118] It should 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 analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.

[0119] The technical features of the above embodiments can 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.

[0120] The above-described embodiments merely represent several implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present application. It should be noted that a person of ordinary skill in the art may make various modifications and improvements without departing from the spirit of the present application, and these modifications and improvements fall within the scope of protection of the present application. Therefore, the scope of protection of the present application shall be determined by the appended claims.

[0121] In an exemplary embodiment, see Figure 4 A computer device is also provided. The computer device includes a bus, a processor, a memory, and a communication interface. The computer device may also include an input / output interface and a display device. The various functional units can communicate with each other via the bus. The memory stores a computer program, and the processor is configured to execute the program stored in the memory and perform the user orientation method in the above embodiment.

[0122] A computer-readable storage medium stores a computer program, which implements the steps of the user orientation method when executed by a processor.

[0123] Through the description of the above implementation methods, those skilled in the art can clearly understand that the present application can be implemented through hardware or by means of software plus a necessary general hardware platform. Based on this understanding, the technical solution of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.), including a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each implementation scenario of the present application.

[0124] Those skilled in the art will understand that the accompanying drawings are only schematic diagrams of a preferred implementation scenario, and the modules or processes in the accompanying drawings are not necessarily required to implement the present application.

[0125] Those skilled in the art will appreciate that the modules in the devices in the implementation scenario can be distributed in the devices of the implementation scenario according to the implementation scenario description, or can be modified accordingly and located in one or more devices different from the implementation scenario. The modules in the above implementation scenario can be combined into one module or further split into multiple submodules.

[0126] The above application serial numbers are for description only and do not represent the advantages or disadvantages of the implementation scenarios.

[0127] The above disclosure only describes several specific implementation scenarios of the present application. However, the present application is not limited thereto, and any changes that can be conceived by those skilled in the art should fall within the scope of protection of the present application.

Claims

1. A user orientation method, characterized in that: include: In response to a user orientation request, determining a user to be oriented, an orientation execution parameter, and obtaining an orientation expression based on a user environment identifier included in the orientation execution parameter, wherein the orientation execution parameter is used as a variable used when oriented to the user; Querying the address information of the user to be targeted, and obtaining a variable replacement value in the targeted execution parameter, wherein the address information is the resolved IP information of the user to be targeted, and the variable replacement value is the variable value set for the selected environment variable when defining the targeted execution parameter; Replacing variable placeholders in the directional expression with the address information and the variable replacement value, and executing the replaced directional expression to obtain an execution result, wherein the directional expression is an SQL search statement obtained according to the user environment identifier included in the directional execution parameter; When the execution result indicates that the address information is successfully verified, it is determined that the user to be directed is successfully directed, and the execution result is output. The execution result is in the form of True or False, and True or False is used to indicate whether the address information input into the direction expression is successfully verified; The method further includes: when a target user tag of the user to be directed is received based on the execution result, a distributed data flow task is constructed based on the target user tag, and the distributed data flow task is executed to update the target user tag to a distributed database.

2. The method according to claim 1, characterized in that Before determining the user to be directed, the directed execution parameters in response to the user directed execution request, and obtaining the directed expression based on the user environment identifier included in the directed execution parameters, the method further includes: In response to the environment variable setting request, display an environment variable management page, so that the developer can define at least one environment variable on the environment variable management page, wherein each of the at least one environment variable corresponds to a variable identifier; When a confirmation instruction from the developer is received based on the environment variable management page, a user environment definition page is displayed, so that the developer can enter the user environment identifier on the user environment definition page, select environment variables to be used, and set variable replacement values ​​for the environment variables to be used; receiving a definition completion instruction from the R&D personnel, determining the environment variable to be used selected by the R&D personnel, and reading a variable replacement value corresponding to the environment variable to be used; The variable replacement value and the user environment identifier are used as the directional execution parameters.

3. The method according to claim 1, characterized in that The acquiring of the directional expression according to the user environment identifier included in the directional execution parameter includes: Parsing the directional execution parameter, and obtaining the user environment identifier from the directional execution parameter; A directional expression template is obtained, and the user environment identifier is sorted according to the directional expression template to obtain the directional expression.

4. The method according to claim 1, wherein The variable placeholders in the directional expression are replaced by using the address information and the variable replacement values, and the directional expression after replacement is executed to obtain an execution result: When the execution result indicates that the address information verification fails, obtaining a verification failure identifier; The address information is marked with the verification failure identifier, a direction failure reminder including the marked address information and the user to be directed is generated, and the direction failure reminder is output.

5. The method according to claim 1, wherein The method further comprises: Receive a target user tag of the user to be directed based on the execution result feedback, record the target user tag based on a log, and continuously detect the time interval between the current time point and the last update time point. When the time interval reaches a preset update period, obtain log data, obtain at least one user tag to be updated from the log data, and synchronize the at least one user tag to be updated to the distributed database, wherein the at least one user tag to be updated is a user tag recorded in the log that has not been synchronized to the distributed database.

6. The method according to claim 5, characterized in that The method further comprises: Generate a write-ahead log based on the user tag updated to the distributed database; The write-ahead log is parsed using a distributed database transfer project, and the parsed write-ahead log is sent to a distributed message publishing system, so that the distributed message publishing system writes the parsed write-ahead log to a distributed search server.

7. The method according to claim 6, characterized in that After sending the parsed write-ahead log to the distributed message publishing system so that the distributed message publishing system writes the parsed write-ahead log to the distributed search server, the method further includes: When a crowd selection request is received based on the distributed search server, determining an initiator of the crowd selection request and determining a tag to be selected indicated by the crowd selection request, wherein the initiator is a platform or a management party connected to the distributed search server; Based on the distributed search server, query at least one target user indicated by the to-be-selected tag, and use the at least one user as a query result; Based on the interface between the distributed search server and the initiator, the query result is fed back to the initiator.

8. A user orientation device, characterized in that: include: a determination module, configured to determine, in response to a user orientation request, a user to be oriented, orientation execution parameters, and obtain an orientation expression based on a user environment identifier included in the orientation execution parameters, wherein the orientation execution parameters are variables used when oriented to the user; a query module, configured to query the address information of the user to be targeted and obtain a variable replacement value in the targeted execution parameter, wherein the address information is the resolved IP information of the user to be targeted, and the variable replacement value is the variable value set for the environment variable selected when defining the targeted execution parameter; an execution module, configured to replace variable placeholders in the directional expression with the address information and the variable replacement values, and execute the replaced directional expression to obtain an execution result, wherein the directional expression is an SQL search statement obtained according to the user environment identifier included in the directional execution parameter; an output module, configured to determine that the user to be directed is successfully directed when the execution result indicates that the address information is successfully verified, and output the execution result, wherein the execution result is in the form of True or False, and True or False is used to indicate whether the address information input into the direction expression is successfully verified; The device further includes: a storage module for constructing a distributed data flow task based on the target user tag when receiving the target user tag of the user to be directed based on the execution result, and executing the distributed data flow task to update the target user tag to the distributed database.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

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

Citation Information

Patent Citations

  • Video searching method and device

    CN108763369A

  • User tag generation method and device, computer equipment and readable storage medium

    CN115048456A