Deployment management method and device of recall service, storage medium and electronic equipment
By obtaining recall process and result data, automatic deployment and management of recall services solves the problem of low recall service deployment and management efficiency, and achieves efficient automated deployment of recall services and priority scheduling of high-quality recall services.
Patent Information
- Application Number
- CN202310324713.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-28
- Publication Date
- 2024-10-01
AI Technical Summary
The deployment and management efficiency of recall services is low, resulting in repeated manpower investment and long processes caused by manual operations, resulting in low efficiency.
By obtaining the recall process data and recall result data, the recall service is automatically deployed and managed based on these data, including determining target recall objects, counting recall source information, calculating deployment ratios, and deploying high-quality recall services with high weight and low-weighting low-quality recall services. Weight deployment realizes automated deployment management of recall services.
It improves the deployment and management efficiency of the recall service, reduces the repetitive work of manual operations, and improves the overall call efficiency and accuracy of the recall service.
Smart Images

Figure CN118735528A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computers, and in particular, to a deployment management method, device, storage medium and electronic device for recall services. Background Art
[0002] In the deployment and management scenario of recall services, manual operation is usually used to deploy and manage recall services. However, since recall services are the most basic services that provide recall objects, with a wide variety and quantity, manual operation will bring a large amount of repeated manpower input and a long process, which will lead to the problem of low deployment and management efficiency of recall services. Therefore, there is a problem of low deployment and management efficiency of recall services.
[0003] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention
[0004] The embodiments of the present application provide a deployment management method, device, storage medium and electronic device for a recall service, so as to at least solve the technical problem of low efficiency in deployment management of a recall service.
[0005] According to one aspect of an embodiment of the present application, a deployment management method for a recall service is provided, comprising: obtaining recall process data, wherein the recall process data is data corresponding to multiple recall objects obtained by at least one recall service in response to a recall request for a recommendation service, and the recommendation service request is used to request a target recommendation object; obtaining recall result data, wherein the recall result data is data corresponding to at least one target recall object determined from the multiple recall objects as the target recommendation object; and based on the recall result data and the recall process data, deploying and managing the recall service in the at least one recall service.
[0006] According to another aspect of an embodiment of the present application, a deployment management device for a recall service is also provided, including: a first acquisition unit, used to acquire recall process data, wherein the recall process data is data corresponding to multiple recall objects obtained by at least one recall service in response to a recall request for a recommendation service, and the recommendation service request is used to request a target recommended object; a second acquisition unit, used to acquire recall result data, wherein the recall result data is data corresponding to at least one target recall object determined from the multiple recall objects as the target recommended object; and a management unit, used to deploy and manage the recall service in the at least one recall service based on the recall result data and the recall process data.
[0007] As an optional scheme, the above-mentioned management unit includes: a first determination module, used to determine the above-mentioned at least one target recall object from the above-mentioned multiple recall objects using the above-mentioned recall result data; a first acquisition module, used to obtain the recall source information corresponding to each target recall object in the above-mentioned at least one target recall object using the above-mentioned recall process data, wherein the above-mentioned recall source information is used to indicate the recall service of the above-mentioned each target recall object obtained through recall; a statistical module, used to count the target number of the above-mentioned target recall objects obtained by recalling each recall service in the above-mentioned at least one recall service according to the above-mentioned recall source information; a first management module, used to deploy and manage the recall services in the above-mentioned at least one recall service based on the above-mentioned target number.
[0008] As an optional solution, the apparatus further includes: a second acquisition module, configured to acquire a first total number of the at least one target recall object before deploying and managing the recall service in the at least one recall service based on the target number;
[0009] The above-mentioned first management module includes: a first calculation submodule, used to respectively calculate the first ratio between each of the above-mentioned target quantities and the above-mentioned first total quantity; a first deployment submodule, used to deploy each recall service in the above-mentioned at least one recall service using the above-mentioned first ratio, and determine the first recall service and the second recall service, wherein the above-mentioned first recall service is a recall service in the above-mentioned at least one recall service, and the above-mentioned second recall service is a recall service in the above-mentioned at least one recall service, and the above-mentioned first ratio is less than the above-mentioned first preset threshold value; the first management submodule is used to perform a first mode of deployment management on the above-mentioned first recall service, and a second mode of deployment management on the above-mentioned second recall service.
[0010] As an optional solution, the apparatus further includes: a third acquisition module, configured to acquire a second total number of the recall objects obtained by recalling each recall service in the at least one recall service before deploying and managing the recall service in the at least one recall service based on the target number;
[0011] The above-mentioned first management module includes: a second calculation submodule, used to respectively calculate the second ratio between each of the above-mentioned target quantities and the respectively corresponding above-mentioned second total quantities; a second deployment submodule, used to deploy each recall service in the above-mentioned at least one recall service using the above-mentioned second ratio, and determine the third recall service and the fourth recall service, wherein the above-mentioned third recall service is a recall service in the above-mentioned at least one recall service, in which the above-mentioned second ratio is less than the second preset threshold value, and the above-mentioned fourth recall service is a recall service in the above-mentioned at least one recall service, in which the above-mentioned second ratio is greater than or equal to the above-mentioned second preset threshold value; the second management submodule is used to perform third-party deployment management on the above-mentioned third recall service, and perform fourth-way deployment management on the above-mentioned fourth recall service.
[0012] As an optional scheme, the above-mentioned device also includes: a deletion unit, which is used to delete the recall service in the whitelist from the above-mentioned at least one recall service before deploying and managing the recall service in the above-mentioned at least one recall service based on the above-mentioned recall result data and the above-mentioned recall process data, so as to obtain at least one candidate recall service; the above-mentioned management unit includes: a second management module, which is used to deploy and manage the recall service in the above-mentioned at least one candidate recall service based on the above-mentioned recall result data and the above-mentioned recall process data.
[0013] As an optional scheme, the above-mentioned device also includes: a fourth acquisition module, which is used to obtain the recall type corresponding to each recall service in the above-mentioned at least one recall service before deleting the recall service in the whitelist from the above-mentioned at least one recall service to obtain at least one candidate recall service; a second determination module, which is used to determine the recall service whose recall type is the whitelist recall type in the above-mentioned at least one recall service as the recall service in the above-mentioned whitelist before deleting the recall service in the whitelist from the above-mentioned at least one recall service to obtain at least one candidate recall service.
[0014] As an optional solution, the above-mentioned first acquisition unit includes: a first aggregation module, which is used to aggregate the above-mentioned first process data and the above-mentioned second process data to obtain the above-mentioned recall process data when the first process data stored locally and the second process data stored remotely are acquired; the above-mentioned second acquisition unit includes: a second aggregation module, which is used to aggregate the above-mentioned first result data and the above-mentioned second result data to obtain the above-mentioned recall result data when the first result data stored locally and the second result data stored remotely are acquired.
[0015] As an optional solution, the above-mentioned first aggregation module includes: a first aggregation sub-module, which is used to aggregate the above-mentioned first process data and the above-mentioned second process data to obtain the above-mentioned recall process data when the timestamp corresponding to the above-mentioned second process data is consistent with the timestamp returned by the above-mentioned at least one recall service; the above-mentioned second aggregation module includes: a second aggregation sub-module, which is used to aggregate the above-mentioned first result data and the above-mentioned second result data to obtain the above-mentioned recall result data when the timestamp corresponding to the above-mentioned second result data is consistent with the timestamp returned by the above-mentioned at least one recall service.
[0016] As an optional solution, the above-mentioned device also includes: a third aggregation module, which is used to obtain a first scene identifier and a first time window before aggregating the above-mentioned first process data and the above-mentioned second process data to obtain the above-mentioned recall process data, wherein the above-mentioned first scene identifier is used to specify the process data belonging to a specific scene, and the above-mentioned first time window is used to specify the process data belonging to a first time period; determine the above-mentioned second process data belonging to the above-mentioned first scene and within the above-mentioned first time period from the remotely stored process data; the above-mentioned device also includes: a fourth aggregation module, which is used to obtain a second scene identifier and a second time window before aggregating the above-mentioned first result data and the above-mentioned second result data to obtain the above-mentioned recall result data, wherein the above-mentioned second scene identifier is used to specify the result data belonging to the second scene, and the above-mentioned second time window is used to specify the acquisition of result data within a second time period from the current time forward; determine the above-mentioned second result data belonging to the above-mentioned second scene and within the above-mentioned second time period from the remotely stored result data.
[0017] As an optional solution, the above-mentioned management unit includes at least one of the following: a third management module, which is used to determine a first target recall service from the above-mentioned at least one recall service based on the above-mentioned recall result data and the above-mentioned recall process data, and set the above-mentioned first target recall service to not participate in the response recall of any service request, wherein the above-mentioned any service request includes the above-mentioned recommended service request; a fourth management module, which is used to determine a second target recall service from the above-mentioned at least one recall service based on the above-mentioned recall result data and the above-mentioned recall process data, and set the above-mentioned second target recall service to not participate in the deployment management of subsequent recall services; a fifth management module, which is used to determine a third target recall service from the above-mentioned at least one recall service based on the above-mentioned recall result data and the above-mentioned recall process data, and increase the recommendation priority of the above-mentioned third target recall service in the above-mentioned at least one recall service; a sixth management module, which is used to determine a fourth target recall service from the above-mentioned at least one recall service based on the above-mentioned recall result data and the above-mentioned recall process data, and reduce the recommendation priority of the above-mentioned fourth target recall service in the above-mentioned at least one recall service.
[0018] According to another aspect of an embodiment of the present application, a computer-readable storage medium is provided, characterized in that the above-mentioned computer-readable storage medium includes a computer program, wherein the above-mentioned computer program executes the deployment management method of the recall service as mentioned above when run by an electronic device (such as a user device or a server).
[0019] According to another aspect of an embodiment of the present application, there is also provided an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the deployment management method of the recall service through the computer program.
[0020] According to another aspect of the embodiments of the present application, a computer program product or a computer program is provided, the computer program product or the computer program includes computer instructions, the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the lighting rendering method of the virtual model as described above.
[0021] In an embodiment of the present application, recall process data is obtained, wherein the recall process data is data corresponding to multiple recall objects obtained by at least one recall service in response to a recommendation service request, and the recommendation service request is used to request a target recommendation object; recall result data is obtained, wherein the recall result data is data corresponding to at least one target recall object determined from the multiple recall objects as the target recommendation object; and based on the recall result data and the recall process data, the recall service in the at least one recall service is deployed and managed. The recall process data and the recall process data are used to participate in the deployment and management of the recall service, thereby achieving the purpose of automated deployment and management of the recall service, thereby achieving the technical effect of improving the deployment and management efficiency of the recall service, and thereby solving the technical problem of low deployment and management efficiency of the recall service. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0023] Figure 1 is a schematic diagram of an application environment of an optional deployment management method for a recall service according to an embodiment of the present application;
[0024] Figure 2 is a schematic diagram of a process of an optional deployment management method for a recall service according to an embodiment of the present application;
[0025] Figure 3 is a schematic diagram of an optional deployment management method for a recall service according to an embodiment of the present application;
[0026] Figure 4 is a schematic diagram of another optional deployment management method for recall services according to an embodiment of the present application;
[0027] Figure 5 is a schematic diagram of another optional deployment management method for recall services according to an embodiment of the present application;
[0028] Figure 6 is a schematic diagram of another optional deployment management method for recall services according to an embodiment of the present application;
[0029] Figure 7 is a schematic diagram of another optional deployment management method for recall services according to an embodiment of the present application;
[0030] Figure 8 is a schematic diagram of another optional deployment management method for recall services according to an embodiment of the present application;
[0031] Fig. 9 is a schematic diagram of another optional deployment management method for recall services according to an embodiment of the present application;
[0032] Fig.10 is a schematic diagram of another optional deployment management method for recall services according to an embodiment of the present application;
[0033] Fig.11 is a schematic diagram of another optional deployment management method for recall services according to an embodiment of the present application;
[0034] Fig.12 is a schematic diagram of another optional deployment management method for recall services according to an embodiment of the present application;
[0035] Fig.13 is a schematic diagram of an optional deployment management device for a recall service according to an embodiment of the present application;
[0036] Fig.14 It is a schematic diagram of the structure of an optional electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0037] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0038] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0039] According to one aspect of the embodiments of the present application, a deployment management method for a recall service is provided. Optionally, as an optional implementation, the deployment management method for the recall service can be applied to, but is not limited to, Figure 1 In the environment shown, the environment may include, but is not limited to, a user device 102 and a server 112 . The user device 102 may include, but is not limited to, a display 104 , a processor 106 , and a memory 108 . The server 112 includes a database 114 and a processing engine 116 .
[0040] The specific process can be as follows:
[0041] Step S102, the user device 102 obtains the recall process data and the recall result data;
[0042] Steps S104-S106, sending the recall process data and the recall result data to the server 112 via the network 110;
[0043] Step S108, the server 112 performs deployment management on the recall service in the at least one recall service based on the recall result data and the recall process data through the processing engine 116, and obtains the deployment management status of the at least one recall service;
[0044] Steps S110 - S112 , sending the deployment management status to the user device 102 via the network 110 , the user device 102 displays the deployment management status on the display 104 via the processor 106 , and stores the above deployment management status in the memory 108 .
[0045] remove Figure 1 In addition to the examples shown, the above steps can be completed independently by the user device or the server, or by the user device and the server in collaboration, such as the user device 102 performing the above steps of deploying and managing the recall service in at least one recall service, thereby reducing the processing pressure of the server 112. The user device 102 includes but is not limited to handheld devices (such as mobile phones), laptops, tablet computers, desktop computers, vehicle-mounted devices, smart TVs, etc., and the present application does not limit the specific implementation of the user device 102. The server 112 can be a single server or a server cluster consisting of multiple servers, or a cloud server.
[0046] Optionally, as an optional implementation, as Figure 2 As shown, the deployment management method of the recall service can be executed by an electronic device, such as Figure 1 The user device or server shown in the figure comprises:
[0047] S202, obtaining recall process data, wherein the recall process data is data corresponding to a plurality of recall objects obtained by at least one recall service in response to a recall request of a recommendation service, wherein the recommendation service request is used to request to obtain a target recommendation object;
[0048] S204, obtaining recall result data, wherein the recall result data is data corresponding to at least one target recall object determined from multiple recall objects and serving as a target recommendation object;
[0049] S206: Based on the recall result data and the recall process data, deploy and manage the recall service in at least one recall service.
[0050] Optionally, in this embodiment, the deployment management method of the recall service can be but is not limited to being applied in the background online service of the microservice architecture. For example, in the background online service using the microservice architecture, it is usually the case that in response to the recommendation service request, a single upstream service calls multiple downstream recall services. Each recall service will perform the corresponding recall operation, obtain multiple recall objects, and display, store, or subsequently process the obtained recall objects in the form of entry information. Among them, the recall service refers to a service that triggers the correct recall result (object) from the full information set and returns the recall result to the caller. The entry information can be understood as a detailed list of the content of the above recall result, which is similar to the entry in form.
[0051] To further illustrate the recommendation scenario of media information, assuming that a recommendation service request for the target media information is currently obtained, the recommendation service request is further responded to by calling multiple downstream recall services to recall each user account in the user account cluster, and multiple recalled accounts (objects) are obtained. The target media information is then pushed to the clients of the above-mentioned multiple recalled accounts to achieve accurate delivery of media information.
[0052] Let's take the recommendation scenario of interactive information as an example. Suppose that a recommendation service request triggered by user account A is currently obtained, wherein the recommendation service request carries the interactive information proposed by user account A. In the interactive information, it is requested to recommend sports-related equipment to user account A. In further response to the recommendation service request, multiple downstream recall services are called to recall each device information in the device information cluster, and multiple recalled devices (objects) are obtained. Then, the device information corresponding to the above multiple recalled devices is pushed to the client of user account A, so as to achieve accurate response to the interactive information.
[0053] However, not all recalled objects can be used as the recommended output required for the recommendation service request. It is also possible but not limited to sorting, filtering and screening all recalled objects to determine the recommended output required for the recommendation service request from all recalled recall objects. Among them, microservices can be understood as a cloud-native architecture approach, in which a single application is composed of many loosely coupled and independently deployable smaller components or services. In the response process of the above-mentioned recommendation service request, in order to improve the calling efficiency of the recall service, it is possible but not limited to automatically deploy and manage the recall service to call high-quality recall services and not call low-quality recall services.
[0054] To further illustrate, for example, Figure 3 In the background online service of the microservice architecture 302 shown, in response to the recommendation service request, multiple recall services (such as recall service 1, recall service 2, recall service n, etc.) are called for recall, and multiple recall objects (such as object a, object b, object c, object d) respectively recalled by each recall service are obtained; object a, object b, object c, object d are further scored, wherein the scoring rule may be but is not limited to inputting the recalled object into a pre-trained neural network model to output the recommendation score, the higher the score, the higher the recommendation index, such as object a is 2, object b is 3, object c is 1, and object d is 4;
[0055] Furthermore, based on the output of the above recommendation scores, objects a, b, c, and d are sorted, such as object c < object a < object b < object d; and based on the sorting results, objects a, b, c, and d are screened to retain target recall objects for recommendation output, such as object c and object d;
[0056] Optionally, in this embodiment, in order to improve the calling efficiency of the recall service, multiple recall services such as recall service 1, recall service 2, recall service n, etc. can be automatically deployed and managed based on but not limited to the relevant data of the recall object, so as to call high-quality recall services and not call low-quality recall services, such as taking recall service 1 offline, to improve the overall calling efficiency of the recall service.
[0057] Optionally, in this embodiment, the recall service may be, but is not limited to, a program deployed on a server for executing a service that triggers as many correct results as possible from a full information set and returns the results to the caller, and each server may be, but is not limited to, deploying one or more recall services; in addition, multiple servers may be, but are not limited to, decentralized deployment of a large number of recall services, and each server may recall information by running its own deployed recall service.
[0058] Optionally, in this embodiment, the recall process data is data corresponding to multiple recall objects obtained by at least one recall service in response to a recall request from a recommendation service, wherein the recall process data may include but is not limited to at least one of the following: the source of the recall objects (or which recall service recalled them), the number of recall objects, the type of recall objects, the specific information content of the recall objects, the user groups for which the recall objects are targeted, the quality scores of the recall objects, etc.
[0059] Optionally, in this embodiment, the recall result data is data corresponding to at least one target recall object determined from multiple recall objects as a target recommendation object, wherein the recall result data may be but is not limited to including at least one of the following: an identifier of the target recall object (used to indicate which recall object), a recommended ranking of the target recall object (the ranking of each target recall object in the recommendation), a reason for recommending the target recall object, a source of the target recall object, etc.
[0060] Optionally, in this embodiment, based on the recall result data and the recall process data, the recall services in at least one recall service are deployed and managed, such as deploying calling methods of each recall service, and efficiently managing the recall services based on different calling methods.
[0061] To further illustrate, for example, Figure 4 As shown, based on the recall result data and the recall process data, the recall services in at least one recall service (such as recall service 1, recall service 2, recall service 3) are deployed and managed. For example, recall service 2 is taken offline, and then in the subsequent response process of the recommended service request, recall service 2 will not be called to perform the recall operation of the object, thereby improving the overall calling efficiency of the recall service.
[0062] It should be noted that the recall process data and the recall result data are used to participate in the deployment management of the recall service, and then the recall service is automatically deployed and managed, thereby achieving the technical effect of improving the deployment management efficiency of the recall service.
[0063] To further illustrate, the optional Figure 5 As shown, recall process data 502 is obtained, wherein the recall process data 502 is data corresponding to multiple recall objects (such as object a, object b, object c, object d) recalled by at least one recall service (such as recall service 1, recall service 2, recall service n, etc.) in response to a recommendation service request 504, and the recommendation service request 504 is used to request a target recommended object; recall result data 506 is obtained, wherein the recall result data 506 is data corresponding to at least one target recall object (such as object c, object d) determined from multiple recall objects as a target recommended object; based on the recall result data and the recall process data, the recall service in at least one recall service is deployed and managed.
[0064] Through the embodiments provided by the present application, recall process data is obtained, wherein the recall process data is data corresponding to multiple recall objects obtained by at least one recall service in response to a recommendation service request, and the recommendation service request is used to request to obtain a target recommendation object; recall result data is obtained, wherein the recall result data is data corresponding to at least one target recall object determined from multiple recall objects as a target recommendation object; and recall services in at least one recall service are deployed and managed based on the recall result data and the recall process data. The method of using the recall process data and the recall result data to participate in the deployment and management of the recall service achieves the purpose of automated deployment and management of the recall service, thereby achieving the technical effect of improving the deployment and management efficiency of the recall service.
[0065] As an optional solution, based on the recall result data and the recall process data, the recall service in at least one recall service is deployed and managed, including:
[0066] S1, using the recall result data to determine at least one target recall object from multiple recall objects;
[0067] S2, using the recall process data to obtain recall source information corresponding to each target recall object in at least one target recall object, wherein the recall source information is used to indicate the recall service obtained for each target recall object through the recall;
[0068] S3, according to the recall source information, counting the target number of target recall objects obtained by each recall service in at least one recall service;
[0069] S4, deploying and managing the recall service in at least one recall service based on the target quantity.
[0070] To further illustrate, the optional Figure 5 As shown, the recall result data 506 is used to determine each target recall object (such as object c, object d); the recall process data 502 is used to obtain the recall source information corresponding to each target recall object in at least one target recall object, such as object c originates from the recall of recall service 2, and object d originates from the recall of recall service n; according to the recall source information, the target number of target recall objects obtained by each recall service is counted; based on the target number, if object a recalled by recall service 1 is not reflected in the recall result data 506, then the target number of recall service 1 is counted as 0; similarly, objects c and b recalled by recall service 2, among which object c is reflected in the recall result data 506, then the target number of recall service 2 is counted as 1.
[0071] Through the embodiments provided by the present application, at least one target recall object is determined from multiple recall objects using recall result data; recall source information corresponding to each target recall object in at least one target recall object is obtained using recall process data, wherein the recall source information is used to indicate the recall service for each target recall object obtained through the recall; according to the recall source information, the target number of target recall objects obtained by recalling each recall service in at least one recall service is counted; based on the target number, the recall service in at least one recall service is deployed and managed, thereby achieving the purpose of improving the reference reliability of the deployment management, thereby realizing the technical effect of improving the accuracy of the deployment management of the recall service.
[0072] As an optional solution, before deploying and managing the recall service in at least one recall service based on the target quantity, the method further includes: obtaining a first total quantity of at least one target recall object;
[0073] Based on the target quantity, deploy and manage the recall service in at least one recall service, including:
[0074] S1-1, respectively calculating a first ratio between each target quantity and the first total quantity;
[0075] S1-2, deploying each recall service in at least one recall service using the first ratio to determine a first recall service and a second recall service, wherein the first recall service is a recall service in at least one recall service whose first ratio is greater than or equal to a first preset threshold, and the second recall service is a recall service in at least one recall service whose first ratio is less than the first preset threshold;
[0076] S1-3, performing deployment management of the first recall service in a first manner, and performing deployment management of the second recall service in a second manner.
[0077] Optionally, in this embodiment, the deployment management of the first mode and the deployment management of the second mode can be understood but not limited to different deployment management modes. For example, for the first recall service with a higher recommendation ratio, high-weight deployment management (deployment management of the first mode) can be performed to increase the priority of the first recall service in the overall recall service; conversely, for the second recall service with a lower recommendation ratio, low-weight deployment management can be performed to reduce the priority of the second recall service in the overall recall service (deployment management of the second mode), thereby refining the deployment of the recall services, increasing the proportion of high-quality recall services, and reducing the proportion of low-quality recall services, thereby achieving the technical effect of improving the accuracy of the deployment management of recall services.
[0078] It should be noted that in order to determine the proportion (first ratio) of the number of objects recalled and successfully recommended by each recall service (target number) in the total number of recommended objects (first total number), the first ratio between each target number and the first total number is calculated, and then the recommendation proportion of each recall service in the entire recall service cluster is determined, and the recall service with a higher recommendation proportion (first recall service) and the recall service with a lower recommendation proportion (second recall service) are determined to refine the deployment of the recall service.
[0079] To further illustrate, for example, the target number of recall service 1 is 0, the target number of recall service 2 is 1, the target number of recall service 3 is 3, and the target number of recall service 4 is 2, and the total number of recommended objects is calculated to be 6. In this way, it can be determined that the target number of recall service 1 accounts for 0 of the total number of recommended objects, the target number of recall service 2 accounts for 1 / 6 of the total number of recommended objects, the target number of recall service 3 accounts for 3 / 6 of the total number of recommended objects, and the target number of recall service 4 accounts for 2 / 6 of the total number of recommended objects; further assuming that the first preset threshold is 1 / 6, wherein the proportions of recall service 2, recall service 3, and recall service 4 are all higher than 1 / 6, that is, they are greater than or equal to the first preset threshold, and the proportion of recall service 1 is lower than 1 / 6, that is, it is less than the first preset threshold, so that recall service 2, recall service 3, and recall service 4 are determined as the first recall service, and recall service 1 is determined as the second recall service.
[0080] Through the embodiments provided in the present application, a first total number of at least one target recall object is obtained; a first ratio between each target number and the first total number is calculated respectively; each recall service in at least one recall service is deployed using the first ratio to determine a first recall service and a second recall service, wherein the first recall service is a recall service in at least one recall service whose first ratio is greater than or equal to a first preset threshold, and the second recall service is a recall service in at least one recall service whose first ratio is less than the first preset threshold; the first recall service is deployed and managed in a first manner, and the second recall service is deployed and managed in a second manner, thereby achieving the purpose of refining the deployment of the recall services, thereby realizing the technical effect of improving the accuracy of the deployment management of the recall services.
[0081] As an optional solution, before deploying and managing the recall service in at least one recall service based on the target quantity, the method further includes: obtaining a second total quantity of recalled objects obtained by recalling each recall service in the at least one recall service;
[0082] Based on the target quantity, deploy and manage the recall service in at least one recall service, including:
[0083] S2-1, respectively calculating second ratios between each target quantity and each corresponding second total quantity;
[0084] S2-2, deploying each of the at least one recall service using the second ratio to determine a third recall service and a fourth recall service, wherein the third recall service is a recall service of the at least one recall service whose second ratio is less than a second preset threshold, and the fourth recall service is a recall service of the at least one recall service whose second ratio is greater than or equal to the second preset threshold;
[0085] S2-3, performing third-party deployment management on the third recall service, and performing fourth-way deployment management on the fourth recall service.
[0086] Optionally, in this embodiment, the third-party deployment management and the fourth-party deployment management can be understood as but not limited to different deployment management methods. For example, for the third recall service with a higher recall success rate, high-weight deployment management (third-party deployment management) can be performed to increase the priority of the third recall service in the overall recall service; conversely, for the fourth recall service with a lower recall success rate, low-weight deployment management can be performed to reduce the priority of the fourth recall service in the overall recall service (fourth-party deployment management), thereby refining the deployment of recall services, increasing the proportion of high-quality recall services, and reducing the proportion of low-quality recall services, thereby achieving the technical effect of improving the accuracy of deployment management of recall services.
[0087] It should be noted that in order to determine the proportion (second ratio) of the number of objects recalled and successfully recommended by each recall service (target number) in the corresponding total number of objects recalled (second total number), the second ratio between each target number and the corresponding second total number is calculated, and then the recall success rate of each recall service is determined. For example, the greater the proportion of the number of objects recalled and successfully recommended in the corresponding total number of objects recalled, the greater the recall success rate and the higher the recall efficiency; conversely, the smaller the proportion of the number of objects recalled and successfully recommended in the corresponding total number of objects recalled, the smaller the recall success rate and the lower the recall efficiency; further determine the recall service with a higher recall success rate (the third recall service) and the recall service with a lower recall success rate (the fourth recall service) to refine the deployment of the recall service.
[0088] To further illustrate, for example, the target quantity of recall service 1 is 0 and the total recall quantity is 5, the target quantity of recall service 2 is 1 and the total recall quantity is 1, the target quantity of recall service 3 is 3 and the total recall quantity is 10, and the target quantity of recall service 4 is 2 and the total recall quantity is 100. Then, it can be determined that the target quantity of recall service 1 accounts for 0 in the corresponding total recall quantity, the target quantity of recall service 2 accounts for 1 / 1 in the corresponding total recall quantity, the target quantity of recall service 3 accounts for 3 / 10 in the corresponding total recall quantity, and the target quantity of recall service 4 accounts for 2 / 100 in the corresponding total recall quantity. It is further assumed that the second preset threshold value is 3 / 10, so that recall service 2 and recall service 3 are determined as the third recall service, and recall service 1 and recall service 4 are determined as the fourth recall service.
[0089] Through the embodiments provided in the present application, a second total number of recall objects obtained by recalling each recall service in at least one recall service is obtained; the second ratios between each target quantity and the second total quantity corresponding to each are calculated respectively; the second ratios are used to deploy each recall service in at least one recall service, and a third recall service and a fourth recall service are determined, wherein the third recall service is a recall service in at least one recall service whose second ratio is less than a second preset threshold, and the fourth recall service is a recall service in at least one recall service whose second ratio is greater than or equal to the second preset threshold; the third recall service is deployed and managed in a third manner, and the fourth recall service is deployed and managed in a fourth manner, thereby achieving the purpose of refining the deployment of the recall services, thereby realizing the technical effect of improving the accuracy of the deployment management of the recall services.
[0090] As an optional solution, before deploying and managing the recall service in at least one recall service based on the recall result data and the recall process data, the method further includes: deleting the recall service in the whitelist from the at least one recall service to obtain at least one candidate recall service;
[0091] Based on the recall result data and the recall process data, deploying and managing a recall service in at least one recall service includes: based on the recall result data and the recall process data, deploying and managing a recall service in at least one candidate recall service.
[0092] Optionally, in this embodiment, in addition to using a whitelist to assist in the management of recall services, a blacklist may also be used to assist in the management of recall services. For the whitelist, recall services in the whitelist will be called first, or no additional deployment management will be performed, thereby greatly improving security and convenience. The blacklist can be but is not limited to corresponding to the whitelist. For example, after the blacklist is enabled, recall services included in the blacklist cannot be called.
[0093] It should be noted that in order to improve the security and speed of deployment management of recall services, the concept of whitelist is introduced in the deployment management process of recall services; to further illustrate, recall service 2 among the optional recall service 1, recall service 2, and recall service 3 is a recall service in the whitelist, and thus recall service 2 does not participate in the process of deployment management of recall services to ensure the security and speed of recall service 2.
[0094] Through the embodiments provided in the present application, the recall service in the whitelist is deleted from at least one recall service to obtain at least one candidate recall service; based on the recall result data and the recall process data, the recall service in at least one candidate recall service is deployed and managed, thereby achieving the purpose of introducing the concept of whitelist, thereby realizing the technical effect of improving the security and speed of deployment management of recall services.
[0095] As an optional solution, before deleting the recall service in the whitelist from at least one recall service to obtain at least one candidate recall service, the method further includes:
[0096] S3-1, obtaining a recall type corresponding to each recall service in at least one recall service;
[0097] S3-2, determining, among at least one recall service, a recall service whose recall type is a whitelist recall type as a recall service in the whitelist.
[0098] Optionally, in this embodiment, the whitelist recall type may include one or more recall types, and one recall type may have multiple recall services. The recall type corresponding to each recall service may be understood as, but not limited to, a variable attribute or an inherent attribute, wherein the inherent attribute may be understood as, but not limited to, a user-preset, fixed attribute type, and the variable attribute may be, but not limited to, a user-set attribute type that changes with time and other variables, and may also be, but not limited to, an attribute type that changes automatically based on relevant data of the recall service itself;
[0099] To further illustrate, optionally, for example, the initial recall type of recall service A is not a whitelist type, but in a subsequent recall process, relevant data (recall process data and / or recall result data) that meets the whitelist conditions is presented, and the recall type of the recall service is automatically adjusted to a whitelist type; and in a subsequent recall process, if recall service A presents relevant data that does not meet the whitelist conditions, the recall type of the recall service is automatically adjusted from a whitelist type to a non-whitelist type.
[0100] Through the embodiments provided in the present application, the recall types corresponding to each recall service in at least one recall service are obtained; the recall services whose recall types are whitelist recall types in at least one recall service are determined as recall services in the whitelist, thereby achieving the purpose of introducing the concept of whitelist, thereby realizing the technical effect of improving the security and speed of deployment management of recall services.
[0101] As an optional solution, obtaining the recall process data includes: when obtaining the first process data stored locally and the second process data stored remotely, aggregating the first process data and the second process data to obtain the recall process data;
[0102] Acquiring the recall result data includes: when first result data stored locally and second result data stored remotely are acquired, aggregating the first result data and the second result data to obtain the recall result data.
[0103] It should be noted that in order to improve the comprehensiveness of recall-related data, the locally stored and remotely stored data are aggregated and stored to obtain richer recall-related data.
[0104] Optionally, in this embodiment, in order to avoid data redundancy problems arising during data aggregation, the data stored locally and remotely can be marked but is not limited to, such as marking the same data (same recall source, recall time, etc.) in the same way. Then, during the data aggregation process, if the above-mentioned same marks appear, the different data corresponding to the same marks need to be deduplicated, thereby avoiding the above-mentioned data redundancy problems.
[0105] To further illustrate, optionally, for example, when the timestamp corresponding to the second process data is consistent with the timestamp returned by at least one recall service, the first process data and the second process data are aggregated to obtain the recall process data; and when the timestamp corresponding to the second result data is consistent with the timestamp returned by at least one recall service, the first result data and the second result data are aggregated to obtain the recall result data.
[0106] Through the embodiments provided by the present application, when the first process data stored locally and the second process data stored remotely are obtained, the first process data and the second process data are aggregated and processed to obtain recall process data; when the first result data stored locally and the second result data stored remotely are obtained, the first result data and the second result data are aggregated and processed to obtain recall result data, thereby achieving the purpose of obtaining richer recall-related data, thereby realizing the technical effect of improving the comprehensiveness of recall-related data.
[0107] As an optional solution, before aggregating the first process data and the second process data to obtain the recalled process data, the method further includes: obtaining a first scene identifier and a first time window, wherein the first scene identifier is used to specify process data belonging to a specific scene, and the first time window is used to specify process data belonging to a first time period; determining the second process data belonging to the first scene and within the first time period from the remotely stored process data;
[0108] Before aggregating the first result data and the second result data to obtain the recall result data, the method also includes: obtaining a second scene identifier and a second time window, wherein the second scene identifier is used to specify the result data belonging to the second scene, and the second time window is used to specify the result data within a second time period from the current time forward; determining the second result data belonging to the second scene and within the second time period from the remotely stored result data.
[0109] Optionally, in this embodiment, the scenario identifier may be used, but is not limited to, to indicate the scenario in which the recommendation service request is located, or may be understood as the scenario in which the caller that triggers the recommendation service request is located.
[0110] Optionally, in this embodiment, the time window can be but is not limited to being determined based on a preset recall granularity, that is, the finer the preset recall granularity, the longer the time period length corresponding to the time window, and the more data to be specified to be obtained; conversely, the coarser the preset recall granularity, the shorter the time period length corresponding to the time window, and the less data to be specified to be obtained.
[0111] Optionally, in this embodiment, the first time period and the second time period may be understood as specific time periods, and the process data within the specific time period may be, but is not limited to, a summary of process data within a target time period starting from the current time point.
[0112] Through the embodiments provided by the present application, a first scene identifier and a first time window are obtained, wherein the first scene identifier is used to specify process data belonging to a specific scene, and the first time window is used to specify process data belonging to a first time period; second process data belonging to the first scene and within the first time period is determined from the remotely stored process data; a second scene identifier and a second time window are obtained, wherein the second scene identifier is used to specify result data belonging to the second scene, and the second time window is used to specify the acquisition of result data within a second time period from the current time forward; second result data belonging to the second scene and within the second time period is determined from the remotely stored result data, and process data and result data under specified conditions are obtained with the scene identifier and time window as restrictions, thereby achieving the purpose of improving the accuracy of obtaining process data and result data, thereby realizing the technical effect of the overall accuracy of deployment management.
[0113] As an optional solution, based on the recall result data and the recall process data, the recall service in at least one recall service is deployed and managed, including at least one of the following:
[0114] S4-1, based on the recall result data and the recall process data, determining a first target recall service from at least one recall service, and setting the first target recall service to not participate in the response recall of any service request, wherein any service request includes a recommended service request;
[0115] S4-2, based on the recall result data and the recall process data, determining a second target recall service from the at least one recall service, and setting the second target recall service to not participate in the deployment management of subsequent recall services;
[0116] S4-3, based on the recall result data and the recall process data, determining a third target recall service from the at least one recall service, and increasing the recommendation priority of the third target recall service in the at least one recall service;
[0117] S4-4, based on the recall result data and the recall process data, determine a fourth target recall service from the at least one recall service, and lower the recommendation priority of the fourth target recall service in the at least one recall service.
[0118] It should be noted that in order to improve the diversity of deployment management, multiple deployment management methods can be provided, but are not limited to, such as offline management method, whitelist management method, priority management method, etc.
[0119] To further illustrate, the optional offline management method is to set the recall service (first target recall service) to not participate in the response recall of any service request, or to say, the recall service that participates in the response recall of any service request needs to be in an online state, while the recall service that does not participate in the response recall of any service request is in an offline state. Furthermore, when a low-quality recall service with obvious quality differences is determined, the low-quality recall service can be prevented from reducing the overall recall efficiency, thereby achieving the technical effect of improving the overall efficiency of the recall.
[0120] Optionally, in this embodiment, the whitelist management method is optionally to set the recall service (second target recall service) to not participate in the deployment management of subsequent recall services, or the recall service that does not participate in the deployment management of subsequent recall services can omit the deployment management step, and then when a high-quality recall service is determined, the quality judgment step of the high-quality recall service can be omitted (such as deploying and managing the recall service in at least one recall service based on the recall result data and the recall process data), that is, to omit redundant steps, thereby achieving the technical effect of improving the overall efficiency of the recall.
[0121] Optionally, in this embodiment, the optional priority management method is to increase or decrease the recommendation priority of the recall service (third target recall service / fourth target server) in at least one recall service, or in other words, the objects recalled by the recall service with a higher recommendation priority can be allocated more recommendation weights in the subsequent recommendation process, and conversely, the objects recalled by the recall service with a lower recommendation priority can be allocated less recommendation weights in the subsequent recommendation process, and then when a high-priority or low-priority recall service is determined, the recall objects can be selectively recommended more accurately, thereby achieving the technical effect of improving the recommendation accuracy of the recall objects.
[0122] Through the embodiments provided by the present application, based on the recall result data and the recall process data, a first target recall service is determined from at least one recall service, and the first target recall service is set to not participate in the response recall of any service request, wherein any service request includes a recommended service request; based on the recall result data and the recall process data, a second target recall service is determined from at least one recall service, and the second target recall service is set to not participate in the deployment management of subsequent recall services; based on the recall result data and the recall process data, a third target recall service is determined from at least one recall service, and the recommendation priority of the third target recall service in at least one recall service is increased; based on the recall result data and the recall process data, a fourth target recall service is determined from at least one recall service, and the recommendation priority of the fourth target recall service in at least one recall service is reduced, thereby achieving the technical effect of improving the diversity of deployment management.
[0123] As an optional solution, for ease of understanding, the deployment management of the above recall service is applied to the background online service using the microservice architecture. Specifically, in online services in search, advertising, recommendation and other scenarios, usually one request will call multiple recall services, and then the recall results will be truncated by sorting, mechanism and other services, and finally the more matching results (recall objects) will be selected and returned to the caller in the form of entries. However, due to the truncation logic after the recall service, for each recall service, a considerable proportion of entries in its return results do not appear in the truncated results; for recalls with invalid return results, or recalls with extremely low proportion of the return results in the final results, it is actually no longer necessary to request such a recall.
[0124] Optionally, based on the above problem, this embodiment proposes a dynamically adjustable method for automatically shutting down a recall service. Specifically, this embodiment compares the proportion of the return results of each downstream recall service in the final result after aggregation and filtering with a threshold to determine whether it is necessary to continue to obtain data from each microservice. This embodiment can realize the automatic offline of the recall service, thereby effectively reducing the number of requests for calling the downstream recall online service.
[0125] In addition, this embodiment supports automatically counting the proportion of the number of return result items of each recall service and performing summary statistics. For some specific recall services, this embodiment supports configuration exemption of specific recall services or specific types of recall services.
[0126] It should be noted that the problems solved by this embodiment include at least one of the following: automatically shutting down the recall service below the threshold according to the proportion of the number of each recall item in the final result, automatically counting the number of recall items, the proportion of each recall item in the final result, exempting certain recall types from going offline through a whitelist, and exempting certain recalls through a whitelist. Furthermore, in response to the above-mentioned problems, this embodiment can be used for offline management of recall services in online services. Taking the recommendation system as an example, the automatic statistics of the number and proportion of recall items can be used to automatically count and report the recall status of the recall module information that needs to be requested and the items that are finally returned to the recommendation entrance service in the recommendation entrance service. The recall offline can be used for the recommendation entrance service. After obtaining the statistical information on the number and proportion of recall items, the recall module information below the threshold is filtered according to the proportion and quantity threshold of the recall, thereby ensuring that this part of the recall service is no longer called.
[0127] To further illustrate, the optional recommendation service request and recall data statistics process is as follows: Figure 6As shown, the recommendation entry service is requested to obtain the entries returned by the recommendation service. The number of entries expected to be returned here is n; the recommendation entry service obtains the recall module list corresponding to the requested scenario from the configuration center, and obtains the recall service information that is desired to be requested; according to the recall module information list, the corresponding recall service is requested; the recommendation entry service summarizes all recalled entries and requests the sorting module to sort and score the entries. The step of requesting the sorting module is optional; the recommendation entry service summarizes the sorted entries. If the sorting service is not requested, all recalled entries can be summarized, and then the mechanism module is requested, and the entries are sorted, filtered, and screened according to the expected strategy, and finally n entries are returned to the recommendation entry service.
[0128] Optionally, in this embodiment, in the recommendation entry service, a recall data statistics software development kit (SDK) may be called to collect statistics on the recall information corresponding to the recall items, wherein the deployment management method of the recall service may be, but is not limited to, executed with the recall data statistics SDK as the main body. Figure 6 As shown, the recall data statistics mainly include the recall information statistics corresponding to the recommendation results, as well as the regular reporting of data.
[0129] Optionally, in this embodiment, after the mechanism module is executed, the n recommended items obtained by this request can be obtained. For the information included in the recommended items, such as Figure 7 As shown in , each entry has an attribute called recall ID, which indicates which recall service obtained the result. Based on this, the number of result entries corresponding to each recall service in this request can be counted. After the request-level data statistics are completed, it can be merged with the local exposure data. The merging method is to directly accumulate the number of items recalled in this request according to the recall ID, as shown in the following example. Figure 8 shown.
[0130] Optionally, in this embodiment, a recommendation online entry service has multiple service nodes. This embodiment can regularly summarize and report the statistical information of the recall items of the recommendation results of each recommendation entry service node. First, the data statistics SDK obtains the recall statistical information of the current time window stored in DB, redis or other storage (hereinafter collectively referred to as remote storage). The format of the recall statistical information saved in the remote storage is in the form of KV. The key format of its data is like "scene unique identifier_current time window identifier", where the time window format can identify a minimum statistical time granularity. If the current time is 13:20 on October 1, 2022, if you want to count the recall statistical information at the hourly level, the time window identifier is 2022100113. The value of its data is serialized data, which means a list of all recalled statistical information owned by a corresponding time window identifier in a scenario. The data format is as follows Fig. 9 As shown in the figure, the statistical information of each recall includes the recall identifier, the number of items in the recommendation results, and the recall type. Its information is consistent with the data fields saved locally.
[0131] In addition, in this embodiment, after obtaining the recall statistical data list corresponding to the current scenario and the current time window in the remote storage, the data is merged with the local statistical data. The data is merged in a way that the recall ID is summarized, the number of entries is accumulated, and the recall type is directly assigned. After that, the merged data needs to be written to the remote storage again. In order to ensure the security of writing when multiple callers write to the remote storage at the same time, the data statistics SDK adopts the following method: when obtaining remote storage data, a unique timestamp is returned along with the data. When writing to the remote storage, this timestamp is returned along with the data;
[0132] If the timestamp in the remote storage is consistent with the timestamp returned by the caller, it means that no other caller has written to the remote storage during this period. At this time, the data can be written, and a status code indicating successful writing is returned to the caller. At this time, the caller can clean up the local statistical information and re-count; or, if the timestamp in the remote storage is inconsistent with the timestamp returned by the caller, it means that other callers have written to the remote storage during this period. At this time, a status code indicating write failure is returned to the caller, and the caller re-pull the data of the corresponding time window in the remote storage scenario, and re-execute the process of merging with local data and writing to the remote storage until the write is successful.
[0133] To further illustrate, for example, Fig.10 As shown in the figure, the process of writing recall statistics is as follows:
[0134] Step S1002, generating a remotely stored key according to the scene identifier and the current time;
[0135] Step S1004, obtaining recall statistics in remote storage;
[0136] Step S1006, local statistical information and recalled statistical information;
[0137] Step S1008, recall statistics are written to remote storage;
[0138] Step S1010, determining whether the data timestamp in the remote storage has been changed, if so, executing step S1004, if not, executing step S1012;
[0139] Step S1012, reset the data in the local storage.
[0140] Optionally, in this embodiment, if Fig.11 As shown, the recommendation entry service can count and summarize the number and proportion of recalled items in the recommendation results through the recall data statistics SDK. After obtaining the results returned by the recall data statistics SDK, the recommendation entry service can use the recall offline SDK to judge all the recall services to be requested and decide whether to skip the call of some recall services, thereby realizing the recall offline function.
[0141] Optionally, in this embodiment, after determining the caller's scenario and time window, the recall offline SDK can be used to obtain the recall entry statistics during this period. The time window here refers to the data summary set that can be specified to obtain a part of the time period from the current time forward. The steps for obtaining data are as follows: Fig.12 As shown, first the caller (recommendation entry service) specifies the scene identifier and the number of time windows for which data needs to be obtained, and calls the recall offline SDK. The recall offline SDK generates a data key based on the scene identifier, current time, and number of time windows, which is used to obtain the recall statistics corresponding to the time window from the remote storage. After obtaining the statistics of all time windows, the recall offline SDK summarizes the data of all time windows. The summarization method is: the number of recalled items is summed up by recall, and the total number of all recalled items is calculated, so as to obtain the proportion of the number of items for each recall, and then the recall offline SDK returns the summarized recall statistics to the caller. Among them, for each recalled statistical data, the calculation formula is as follows: Formula (1), Formula (2), Formula (3):
[0142]
[0143]
[0144]
[0145] Among them, total_num represents the total number of recommended result items recalled within w time windows, item_num t,i Indicates the number of recommended result items for recall i in time window t, trigger_item_num k Represents the total number of recommended result items for recall k in w time windows, item_num_k t Indicates the number of recommended result items of recall k in time window t, trigger_item_percent k It represents the ratio of the total number of recommended result items of recall k in w time windows to the total number of all recalled items.
[0146] Optionally, in this embodiment, if Fig.12 As shown in the figure, after obtaining the recall statistics, the recommendation entry service can take the recall offline according to the recall statistics. The execution process is as follows: Figure 7 As shown. The recommendation entry service needs to set a recall offline threshold p. When a recall obtains the recall list that needs to be requested, the recall offline SDK judges the identifier and attributes of each recall in the recall list. If it is a whitelist recall, or its recall type is a whitelist recall type, then this recall normally requests the recall module. If it does not hit the whitelist, the recall offline SDK determines whether the proportion of the number of items in this recall is lower than the threshold p. If it is higher than the threshold p, it normally requests the recall module. Otherwise, this recommendation request will no longer request this recall service, thereby realizing the automatic offline function of the recall.
[0147] Through the embodiments provided by the present application, the automatic statistical process of recall item data and the automatic offline process of recall service are realized, and the control of whether to request recall service in the process of recommending online service is realized. Through this scheme, the number of recall items and the proportion of items returned by each recall service in the final result (result proportion) can be automatically counted, and according to a given threshold, the recall service whose result proportion is lower than the given threshold is automatically offline, which reduces the maintenance cost of the recall module and avoids repeated manpower investment caused by manual maintenance; furthermore, this embodiment reduces the call volume of the recall module and the CPU load of the recall online service by automatically offline the recall service, providing operating space for saving the cost of online services; in addition, this embodiment provides a global view of the proportion of items returned by each recall service in the recommended final result through statistical summary of the recall result data, so that a more comprehensive understanding can be obtained as to whether the proportion of each recall result in the recommended final result is consistent with expectations.
[0148] Based on the above problems, this embodiment proposes a dynamically adjustable method for automatically shutting down a recall service. Specifically, this embodiment compares the proportion of the return results of each downstream recall service in the final result after aggregation and filtering with a threshold to determine whether it is necessary to continue to obtain data from each microservice. This embodiment can realize the automatic shutdown of the recall service, thereby effectively reducing the number of requests for calling the downstream recall online service.
[0149] It is understandable that in the specific implementation of this application, related data such as user information is involved. When the above embodiments of this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.
[0150] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0151] According to another aspect of the embodiment of the present application, a recall service deployment management device for implementing the above-mentioned recall service deployment management method is also provided. Fig.13 As shown, the device comprises:
[0152] A first acquisition unit 1302 is used to acquire recall process data, wherein the recall process data is data corresponding to multiple recall objects obtained by at least one recall service in response to a recommendation service request, and the recommendation service request is used to request to obtain a target recommendation object;
[0153] The second acquisition unit 1304 is used to acquire recall result data, wherein the recall result data is data corresponding to at least one target recall object determined from the multiple recall objects and serving as a target recommendation object;
[0154] The management unit 1306 is used to deploy and manage the recall service in the at least one recall service based on the recall result data and the recall process data.
[0155] For specific embodiments, reference may be made to the examples shown in the deployment management device for the recall service described above, which will not be described in detail in this example.
[0156] As an optional solution, the management unit 1306 includes:
[0157] A first determination module, configured to determine at least one target recall object from a plurality of recall objects using the recall result data;
[0158] A first acquisition module is used to acquire the recall source information corresponding to each target recall object in at least one target recall object by using the recall process data, wherein the recall source information is used to indicate the recall service obtained for each target recall object through the recall;
[0159] A statistics module, used for counting the target number of target recall objects obtained by each recall service in at least one recall service according to the recall source information;
[0160] The first management module is used to deploy and manage the recall service in at least one recall service based on a target quantity.
[0161] For specific embodiments, reference may be made to the examples shown in the above-mentioned deployment management method for recall services, which will not be described in detail in this example.
[0162] As an optional solution, the apparatus further includes: a second acquisition module, configured to acquire a first total number of at least one target recall object before deploying and managing the recall service in at least one recall service based on the target number;
[0163] The first management module includes:
[0164] A first calculation submodule, used to respectively calculate a first ratio between each target quantity and the first total quantity;
[0165] A first deployment submodule is used to deploy each recall service in at least one recall service by using a first ratio, and determine a first recall service and a second recall service, wherein the first recall service is a recall service in at least one recall service, the first ratio of which is greater than or equal to a first preset threshold, and the second recall service is a recall service in at least one recall service, the first ratio of which is less than the first preset threshold;
[0166] The first management submodule is used to perform deployment management on the first recall service in a first manner, and to perform deployment management on the second recall service in a second manner.
[0167] For specific embodiments, reference may be made to the examples shown in the above-mentioned deployment management method for recall services, which will not be described in detail in this example.
[0168] As an optional solution, the device further includes: a third acquisition module, which is used to acquire a second total number of recalled objects obtained by recalling each recall service in at least one recall service before deploying and managing the recall service in at least one recall service based on the target number;
[0169] The first management module includes:
[0170] A second calculation submodule, used to respectively calculate a second ratio between each target quantity and the second total quantity corresponding to each target quantity;
[0171] A second deployment submodule, configured to deploy each of the at least one recall service using the second ratio, and determine a third recall service and a fourth recall service, wherein the third recall service is a recall service of the at least one recall service whose second ratio is less than a second preset threshold, and the fourth recall service is a recall service of the at least one recall service whose second ratio is greater than or equal to the second preset threshold;
[0172] The second management submodule is used to perform third-party deployment management on the third recall service and to perform fourth-mode deployment management on the fourth recall service.
[0173] For specific embodiments, reference may be made to the examples shown in the above-mentioned deployment management method for recall services, which will not be described in detail in this example.
[0174] As an optional solution, the apparatus further includes: a deleting unit, configured to delete the recalled service in the whitelist from the at least one recalled service before deploying and managing the recalled service in the at least one recalled service based on the recall result data and the recall process data, to obtain at least one candidate recalled service;
[0175] The management unit 1306 includes: a second management module, configured to perform deployment management on a recall service in at least one candidate recall service based on the recall result data and the recall process data.
[0176] For specific embodiments, reference may be made to the examples shown in the above-mentioned deployment management method for recall services, which will not be described in detail in this example.
[0177] As an optional solution, the device also includes:
[0178] A fourth acquisition module, used for acquiring the recall type corresponding to each recall service in the at least one recall service before deleting the recall service in the whitelist from the at least one recall service to obtain at least one candidate recall service;
[0179] The second determination module is used to determine a recall service whose recall type is a whitelist recall type in at least one recall service as a recall service in the whitelist before deleting the recall service in the whitelist from at least one recall service to obtain at least one candidate recall service.
[0180] For specific embodiments, reference may be made to the examples shown in the above-mentioned deployment management method for recall services, which will not be described in detail in this example.
[0181] As an optional solution, the first acquisition unit 1302 includes: a first aggregation module, which is used to aggregate the first process data and the second process data to obtain the recalled process data when the first process data stored locally and the second process data stored remotely are acquired;
[0182] The second acquisition unit 1304 includes: a second aggregation module, which is used to aggregate the first result data and the second result data to obtain the recall result data when the first result data stored locally and the second result data stored remotely are acquired.
[0183] For specific embodiments, reference may be made to the examples shown in the above-mentioned deployment management method for recall services, which will not be described in detail in this example.
[0184] As an optional solution, the first aggregation module includes: a first aggregation sub-module, which is used to aggregate the first process data and the second process data to obtain the recall process data when the timestamp corresponding to the second process data is consistent with the timestamp returned by at least one recall service; the second aggregation module includes: a second aggregation sub-module, which is used to aggregate the first result data and the second result data to obtain the recall result data when the timestamp corresponding to the second result data is consistent with the timestamp returned by at least one recall service.
[0185] For specific embodiments, reference may be made to the examples shown in the above-mentioned deployment management method for recall services, which will not be described in detail in this example.
[0186] As an optional solution, the device also includes: a third aggregation module, which is used to obtain a first scene identifier and a first time window before aggregating the first process data and the second process data to obtain the recalled process data, wherein the first scene identifier is used to specify the process data belonging to a specific scene, and the first time window is used to specify the process data belonging to a first time period; determine the second process data belonging to the first scene and within the first time period from the remotely stored process data; the device also includes: a fourth aggregation module, which is used to obtain a second scene identifier and a second time window before aggregating the first result data and the second result data to obtain the recalled result data, wherein the second scene identifier is used to specify the result data belonging to the second scene, and the second time window is used to specify the result data within a second time period from the current time forward; determine the second result data belonging to the second scene and within the second time period from the remotely stored result data.
[0187] For specific embodiments, reference may be made to the examples shown in the above-mentioned deployment management method for recall services, which will not be described in detail in this example.
[0188] As an optional solution, the management unit 1306 includes at least one of the following:
[0189] a third management module, configured to determine a first target recall service from at least one recall service based on the recall result data and the recall process data, and set the first target recall service to not participate in the response recall of any service request, wherein any service request includes a recommended service request;
[0190] A fourth management module, configured to determine a second target recall service from at least one recall service based on the recall result data and the recall process data, and to set the second target recall service to not participate in the deployment management of subsequent recall services;
[0191] a fifth management module, configured to determine a third target recall service from the at least one recall service based on the recall result data and the recall process data, and to increase the recommendation priority of the third target recall service in the at least one recall service;
[0192] The sixth management module is used to determine a fourth target recall service from at least one recall service based on the recall result data and the recall process data, and to lower the recommendation priority of the fourth target recall service in the at least one recall service.
[0193] For specific embodiments, reference may be made to the examples shown in the above-mentioned deployment management method for recall services, which will not be described in detail in this example.
[0194] According to another aspect of the embodiment of the present application, an electronic device for implementing the deployment management method of the recall service is also provided. The electronic device can be, but is not limited to, Figure 1 The user device 102 or the server 112 shown in FIG. 1 is used as an example to illustrate the electronic device as the user device 102. Fig.14 As shown, the electronic device includes a memory 1402 and a processor 1404. The memory 1402 stores a computer program, and the processor 1404 is configured to execute the steps in any of the above method embodiments through the computer program.
[0195] Optionally, in this embodiment, the electronic device may be located in at least one network device among a plurality of network devices of a computer network.
[0196] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:
[0197] S1, obtaining recall process data, wherein the recall process data is data corresponding to multiple recall objects obtained by at least one recall service in response to a recommendation service request, and the recommendation service request is used to request to obtain a target recommendation object;
[0198] S2, obtaining recall result data, wherein the recall result data is data corresponding to at least one target recall object determined from multiple recall objects and serving as a target recommendation object;
[0199] S3: Based on the recall result data and the recall process data, deploy and manage the recall service in at least one recall service.
[0200] Alternatively, a person skilled in the art may understand that: Fig.14 The structure shown is for illustration only. Fig.14 The structure of the electronic device is not limited. Fig.14 More or fewer components (such as network interfaces, etc.) as shown in, or with Fig.14 Different configurations shown.
[0201] Among them, the memory 1402 can be used to store software programs and modules, such as the program instructions / modules corresponding to the deployment management method and device of the recall service in the embodiment of the present application. The processor 1404 executes various functional applications and data processing by running the software programs and modules stored in the memory 1402, that is, to implement the above-mentioned deployment management method of the recall service. The memory 1402 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 1402 may further include a memory remotely located relative to the processor 1404, and these remote memories may be connected to the user device via a network. Examples of the above-mentioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof. Among them, the memory 1402 can be specifically, but not limited to, used to store recall process data, recall result data, and target recommendation objects. As an example, such as Fig.14 As shown, the memory 1402 may include but is not limited to the first acquisition unit 1302, the second acquisition unit 1304 and the management unit 1306 in the deployment management device of the recall service. In addition, it may also include but is not limited to other module units in the deployment management device of the recall service, which will not be repeated in this example.
[0202] Optionally, the transmission device 1406 is used to receive or send data via a network. Specific examples of the network may include wired networks and wireless networks. In one example, the transmission device 1406 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices and routers via a network cable so as to communicate with the Internet or a local area network. In one example, the transmission device 1406 is a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0203] In addition, the electronic device further includes: a display 1408 for displaying the recall process data, recall result data, target recommendation object and other information; and a connection bus 1410 for connecting various module components in the electronic device.
[0204] In other embodiments, the user device or server may be a node in a distributed system, wherein the distributed system may be a blockchain system, and the blockchain system may be a distributed system formed by connecting the multiple nodes through network communication. Among them, the nodes may form a peer-to-peer (P2P) network, and any form of computing device, such as a server, user device, or other electronic device, may become a node in the blockchain system by joining the peer-to-peer network.
[0205] According to one aspect of the present application, a computer program product is provided, the computer program product comprising a computer program, the computer program comprising a program code for executing the method shown in the flow chart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication part, and / or installed from a removable medium. When the computer program is executed by a central processing unit, various functions provided by the embodiments of the present application are executed.
[0206] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0207] It should be noted that the computer system of the electronic device is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0208] The computer system includes a central processing unit (CPU), which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) or the program loaded from the storage part to the random access memory (RAM). In the random access memory, various programs and data required for system operation are also stored. The central processing unit, the read-only memory and the random access memory are connected to each other through a bus. The input / output interface (I / O interface) is also connected to the bus.
[0209] The following components are connected to the input / output interface: an input part including a keyboard, a mouse, etc.; an output part including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage part including a hard disk, etc.; and a communication part including a network interface card such as a local area network card, a modem, etc. The communication part performs communication processing via a network such as the Internet. A drive is also connected to the input / output interface as needed. Removable media, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., are installed on the drive as needed so that the computer program read therefrom is installed into the storage part as needed.
[0210] In particular, according to an embodiment of the present application, the process described in each method flow chart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer readable medium, and the computer program contains a program code for executing the method shown in the flow chart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication part, and / or installed from a removable medium. When the computer program is executed by a central processing unit, various functions defined in the system of the present application are executed.
[0211] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0212] If the integrated units in the above embodiments are implemented in the form of software functional units and sold or used as independent products, they can be stored in the above computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling one or more computer devices (which may be personal computers, servers, or network devices, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application.
[0213] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.
[0214] In the several embodiments provided in the present application, it should be understood that the disclosed client can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0215] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0216] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0217] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A deployment management method for a recall service, characterized in that: include: Acquire recall process data, wherein the recall process data is data corresponding to a plurality of recall objects obtained by at least one recall service in response to a recall request of a recommendation service, wherein the recommendation service request is used to request to obtain a target recommendation object; Acquire recall result data, wherein the recall result data is data corresponding to at least one target recall object determined from the multiple recall objects and serving as the target recommendation object; Based on the recall result data and the recall process data, deployment management is performed on the recall service in the at least one recall service.
2. The method according to claim 1, characterized in that: The deploying and managing the recall service in the at least one recall service based on the recall result data and the recall process data includes: Determining the at least one target recall object from the multiple recall objects using the recall result data; Acquire the recall source information corresponding to each target recall object in the at least one target recall object by using the recall process data, wherein the recall source information is used to indicate the recall service obtained for each target recall object through the recall; According to the recall source information, counting the recalls of each recall service in the at least one recall service to obtain a target number of the target recall objects; Based on the target quantity, deployment management is performed on the recall service in the at least one recall service.
3. The method according to claim 2, characterized in that Before deploying and managing the recall service in the at least one recall service based on the target quantity, the method further includes: acquiring a first total quantity of the at least one target recall object; The deploying and managing the recall service in the at least one recall service based on the target quantity includes: respectively calculating first ratios between each of the target quantities and the first total quantity; Deploying each of the at least one recall service by using the first ratio to determine a first recall service and a second recall service, wherein the first recall service is a recall service of the at least one recall service for which the first ratio is greater than or equal to a first preset threshold, and the second recall service is a recall service of the at least one recall service for which the first ratio is less than the first preset threshold; The first recall service is deployed and managed in a first manner, and the second recall service is deployed and managed in a second manner.
4. The method according to claim 2, characterized in that: Before deploying and managing the recall service in the at least one recall service based on the target quantity, the method further includes: obtaining a second total quantity of the recall objects obtained by recalling each recall service in the at least one recall service; The deploying and managing the recall service in the at least one recall service based on the target quantity includes: respectively calculating second ratios between each of the target quantities and the second total quantities corresponding to each of the target quantities; Deploying each of the at least one recall service by using the second ratio to determine a third recall service and a fourth recall service, wherein the third recall service is a recall service of the at least one recall service for which the second ratio is less than a second preset threshold, and the fourth recall service is a recall service of the at least one recall service for which the second ratio is greater than or equal to the second preset threshold; The third recall service is deployed and managed in a third-party manner, and the fourth recall service is deployed and managed in a fourth manner.
5. The method according to claim 1, characterized in that The obtaining of the recall process data includes: when the locally stored first process data and the remotely stored second process data are obtained, aggregating the first process data and the second process data to obtain the recall process data; The obtaining of the recall result data includes: when the locally stored first result data and the remotely stored second result data are obtained, aggregating the first result data and the second result data to obtain the recall result data.
6. The method according to claim 5, characterized in that The aggregating the first process data and the second process data to obtain the recall process data includes: when a timestamp corresponding to the second process data is consistent with a timestamp returned by the at least one recall service, aggregating the first process data and the second process data to obtain the recall process data; The aggregating and processing the first result data and the second result data to obtain the recall result data includes: when the timestamp corresponding to the second result data is consistent with the timestamp returned by the at least one recall service, aggregating and processing the first result data and the second result data to obtain the recall result data.
7. The method according to claim 5, characterized in that Before the first process data and the second process data are aggregated to obtain the recalled process data, the method further includes: acquiring a first scene identifier and a first time window, wherein the first scene identifier is used to specify process data belonging to a specific scene, and the first time window is used to specify process data belonging to a first time period; determining the second process data belonging to the first scene and within the first time period from the remotely stored process data; Before aggregating the first result data and the second result data to obtain the recall result data, the method also includes: obtaining a second scene identifier and a second time window, wherein the second scene identifier is used to specify the result data belonging to the second scene, and the second time window is used to specify the result data within a second time period from the current time onward; determining the second result data belonging to the second scene and within the second time period from the remotely stored result data.
8. The method according to any one of claims 1 to 7, characterized in that Before deploying and managing the recall service in the at least one recall service based on the recall result data and the recall process data, the method further includes: deleting the recall service in the whitelist from the at least one recall service to obtain at least one candidate recall service; The deploying and managing the recall service in the at least one recall service based on the recall result data and the recall process data includes: deploying and managing the recall service in the at least one candidate recall service based on the recall result data and the recall process data.
9. The method according to any one of claims 1 to 7, characterized in that The deploying and managing the recall service in the at least one recall service based on the recall result data and the recall process data includes at least one of the following: Based on the recall result data and the recall process data, determining a first target recall service from the at least one recall service, and setting the first target recall service to not participate in the response recall of any service request, wherein the any service request includes the recommended service request; Based on the recall result data and the recall process data, determining a second target recall service from the at least one recall service, and setting the second target recall service to not participate in the deployment management of subsequent recall services; Based on the recall result data and the recall process data, determining a third target recall service from the at least one recall service, and increasing the recommendation priority of the third target recall service in the at least one recall service; Based on the recall result data and the recall process data, a fourth target recall service is determined from the at least one recall service, and a recommendation priority of the fourth target recall service in the at least one recall service is lowered.
10. A deployment management device for a recall service, characterized in that: include: A first acquisition unit is used to acquire recall process data, wherein the recall process data is data corresponding to a plurality of recall objects obtained by at least one recall service in response to a recommendation service request, wherein the recommendation service request is used to request to obtain a target recommendation object; A second acquisition unit is used to acquire recall result data, wherein the recall result data is data corresponding to at least one target recall object determined from the multiple recall objects and serving as the target recommendation object; A management unit is used to deploy and manage the recall service in the at least one recall service based on the recall result data and the recall process data.
11. A computer-readable storage medium, characterized in that: The computer-readable storage medium comprises a computer program, wherein the computer program executes the method according to any one of claims 1 to 9 when executed by an electronic device.
12. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method described in any one of claims 1 to 9 are implemented.
13. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to execute the method according to any one of claims 1 to 9 through the computer program.
