A recommendation method, device and system
The response performance parameters of the personalized recommendation platform are obtained through the monitoring system. If they are within the preset range, the requests are reduced and forwarded to the general data recommendation platform, which solves the crash problem of the personalized recommendation platform in high concurrency situations and improves platform performance and stability.
Patent Information
- Application Number
- CN201911150198.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-11-21
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2039-11-21
AI Technical Summary
When a large number of clients send a large number of recommendation requests to the personalized recommendation platform, the platform will be in an unstable state and may crash and reduce performance.
Obtain the response performance parameters of the personalized recommendation platform through the monitoring system. If they are within the preset range, reduce the number of requests sent to the personalized recommendation platform and forward them to the general data recommendation platform. The general data recommendation platform responds to the reduced requests to avoid personalization. The recommendation platform collapsed.
Improved the performance of the personalized recommendation platform, prevented crashes, and ensured the stability and reliability of the recommendation service.
Smart Images

Figure CN110990694B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of Internet technology, and in particular to a recommendation method, device and system. Background Art
[0002] With the development of the diversification of the Internet, users can learn about various information through websites or APPs (Applications), and now most websites or APPs have personalized recommendation functions. When a user wants to use the personalized recommendation function, the client can send a recommendation request to the personalized recommendation platform corresponding to the personalized recommendation function. The personalized recommendation platform can return content that the user may be interested in to the client based on the user's browsing history.
[0003] However, when a large number of clients suddenly send a large number of recommendation requests to the personalized recommendation platform, the personalized recommendation platform will be in an unstable state of jitter or unavailability. When the personalized recommendation platform is in an unstable state, if the client continues to send recommendation requests to the personalized recommendation platform in large concurrency, the personalized recommendation platform will refuse to respond and will not return any recommended content to the client. In serious cases, the personalized recommendation platform may even crash, thereby reducing the performance of the personalized recommendation platform. Summary of the invention
[0004] The purpose of the embodiments of the present invention is to provide a recommendation method, device and system to improve the performance of a personalized recommendation platform. The specific technical solution is as follows:
[0005] In a first aspect, an embodiment of the present invention provides a recommendation method, which is applied to a monitoring system, and the method includes:
[0006] Obtaining a response performance parameter of a personalized recommendation platform to a received recommendation request, wherein the personalized recommendation platform stores personalized recommendation data exclusive to each user;
[0007] Determining whether the response performance parameter is within a first preset range;
[0008] If so, the number of recommendation requests sent to the personalized recommendation platform is reduced, and the reduced recommendation requests are sent to the general data recommendation platform, so that the personalized recommendation platform responds to the remaining recommendation requests and the general data recommendation platform responds to the reduced recommendation requests, wherein the general data recommendation platform stores general recommendation data shared by all users.
[0009] Optionally, reducing the number of recommendation requests sent to the personalized recommendation platform and sending the reduced recommendation requests to the general data recommendation platform includes:
[0010] Determine whether the response performance parameter is within a second preset range, and the second preset range is included in the first preset range;
[0011] If so, based on the response performance parameter, sending a first request quantity of first recommendation requests to the personalized recommendation platform, and sending a second request quantity of second recommendation requests to the general data recommendation platform, wherein the sum of the first request quantity and the second request quantity is the total quantity of recommendation requests to be sent;
[0012] If not, all recommendation requests are sent to the general data recommendation platform.
[0013] Optionally, after determining whether the response performance parameter is within a first preset range, the method further includes:
[0014] If not, all recommendation requests are sent to the personalized recommendation platform.
[0015] Optionally, the general recommendation data is: historical personalized recommendation data obtained from the personalized recommendation platform, and / or offline recommendation data obtained by matching data features with a database, wherein the data features are features of data accessed a number of times greater than a preset threshold within a preset time period, and the database stores data marked with different features.
[0016] In a second aspect, an embodiment of the present invention provides a recommendation device, which is applied to a monitoring system, and the device includes:
[0017] An acquisition module, used to acquire a response performance parameter of a personalized recommendation platform to a received recommendation request, wherein the personalized recommendation platform stores personalized recommendation data exclusive to each user;
[0018] A determination module, used to determine whether the response performance parameter is within a first preset range;
[0019] A sending module is used to reduce the number of recommendation requests sent to the personalized recommendation platform if the response performance parameter is within a first preset range, and send the reduced recommendation requests to the general data recommendation platform, so that the personalized recommendation platform responds to the remaining recommendation requests and the general data recommendation platform responds to the reduced recommendation requests, wherein the general data recommendation platform stores general recommendation data shared by all users.
[0020] Optionally, the sending module includes:
[0021] A determination submodule, configured to determine whether the response performance parameter is within a second preset range, wherein the second preset range is included in the first preset range;
[0022] The sending module is further configured to send a first request quantity of first recommendation requests to the personalized recommendation platform and send a second request quantity of second recommendation requests to the general data recommendation platform based on the response performance parameter if the response performance parameter is within a second preset range, wherein the sum of the first request quantity and the second request quantity is the total quantity of recommendation requests to be sent;
[0023] The sending module is further configured to send all recommendation requests to the general data recommendation platform if the response performance parameter is not within a second preset range.
[0024] Optionally, the sending module is further configured to send all recommendation requests to the personalized recommendation platform if the response performance parameter is not within a first preset range.
[0025] Optionally, the general recommendation data is: historical personalized recommendation data obtained from the personalized recommendation platform, and / or offline recommendation data obtained by matching data features with a database, wherein the data features are features of data accessed a number of times greater than a preset threshold within a preset time period, and the database stores data marked with different features.
[0026] In a third aspect, an embodiment of the present invention provides a recommendation system, the system comprising: a monitoring system, a personalized recommendation platform and a general data recommendation platform;
[0027] The monitoring system is used to obtain a response performance parameter of the personalized recommendation platform to a received recommendation request; determine whether the response performance parameter is within a first preset range; if the response performance parameter is within the first preset range, reduce the number of recommendation requests sent to the personalized recommendation platform, and send the reduced recommendation requests to the general data recommendation platform;
[0028] The personalized recommendation platform is used to send response performance parameters to the monitoring system, receive and respond to the remaining recommendation requests sent by the monitoring system, wherein the personalized recommendation platform stores personalized recommendation data exclusive to each user;
[0029] The general data recommendation platform is used to receive and respond to the reduced recommendation request sent by the monitoring system, wherein the general data recommendation platform stores general recommendation data shared by all users.
[0030] In a fourth aspect, an embodiment of the present invention provides a monitoring system, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus;
[0031] Memory, used to store computer programs;
[0032] The processor is used to implement any recommended method described in the first aspect when executing the computer program stored in the memory.
[0033] In a fifth aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the recommendation method described in any one of the first aspects is implemented.
[0034] The recommendation method, device and system provided by the embodiment of the present invention are applied to the monitoring system, by obtaining the response performance parameter of the personalized recommendation platform to the received recommendation request, wherein the personalized recommendation platform stores the personalized recommendation data exclusive to each user; judging whether the response performance parameter is within the first preset range; if so, reducing the number of recommendation requests sent to the personalized recommendation platform, and sending the reduced recommendation requests to the general data recommendation platform, so that the personalized recommendation platform responds to the remaining recommendation requests and the general data recommendation platform responds to the reduced recommendation requests, wherein the general data recommendation platform stores the general recommendation data shared by each user. Since the personalized recommendation data stored in the personalized recommendation platform has personalized characteristics and the general recommendation data stored in the general data recommendation platform has universal applicability, the storage space, data processing speed, scalability and other parameters of the general data recommendation platform are better than the personalized recommendation platform. If the response performance parameter of the personalized recommendation platform is within the first preset range, then the personalized recommendation platform is insufficient to respond to all recommendation requests. At this time, by reducing the recommendation requests sent to the personalized recommendation platform and sending the reduced recommendation requests to the general data recommendation platform, the general data recommendation platform can respond to the reduced recommendation requests, and at the same time, the personalized recommendation platform will not crash, thereby improving the performance of the personalized recommendation platform.
[0035] It is not necessary to achieve all the advantages described above at the same time to implement any product or method of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0037] Figure 1 A flowchart of a first embodiment of a recommended method provided by an embodiment of the present invention;
[0038] Figure 2A flowchart of a second embodiment of a recommended method provided by an embodiment of the present invention;
[0039] Figure 3 A flowchart of an implementation method of a general data recommendation platform provided by an embodiment of the present invention;
[0040] Figure 4 A flowchart of an implementation method for obtaining offline recommendation data provided by an embodiment of the present invention;
[0041] Figure 5 A flowchart of a recommended method provided by an embodiment of the present invention;
[0042] Figure 6 A schematic diagram of a recommended device provided by an embodiment of the present invention;
[0043] Figure 7 A schematic diagram of the structure of a monitoring system provided by an embodiment of the present invention;
[0044] Figure 8 A schematic diagram of the structure of a recommendation system provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0045] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0046] In order to improve the performance of the personalized recommendation platform, the embodiments of the present invention provide a recommendation method, device and system, which are described in detail below.
[0047] The recommendation method provided in the embodiment of the present invention is implemented by a recommendation system, which may include a monitoring system, a personalized recommendation platform, and a general data recommendation platform. Below, the recommendation method provided in the embodiment of the present invention is introduced with the monitoring system as the execution subject. In specific implementation, the monitoring system may be a server with a recommendation platform management function.
[0048] Figure 1 A flowchart of a first embodiment of a recommended method provided by an embodiment of the present invention is shown in FIG. Figure 1 As shown, the method of the embodiment of the present invention may include:
[0049] S101, obtaining a response performance parameter of a personalized recommendation platform to a received recommendation request.
[0050] Among them, the above-mentioned personalized recommendation platform stores personalized recommendation data exclusive to each user. The personalized recommendation data exclusive to each user here can be the content that each user may be interested in, determined based on the browsing records of different users. For example, user A usually prefers to listen to "folk songs" type songs. When user A uses a music APP, he can click the "recommend" button in the music APP (equivalent to sending a recommendation request to the personalized recommendation platform), then the personalized recommendation platform can return songs of the type "folk songs" to the user based on user A's listening record.
[0051] The above response performance parameters can characterize the recommendation capability of the personalized recommendation system. In specific implementation, the response performance parameters can be the response time, response success rate, memory usage, response performance level (assuming that the response performance is divided into excellent, good, medium, and poor) of the personalized recommendation platform and other parameters. In the embodiment of the present invention, the response performance parameters are not specifically limited.
[0052] S102, determining whether the response performance parameter is within a first preset range.
[0053] For example, if the response performance parameter is the response time of the personalized recommendation platform, the first preset range may be set to 50-100 ms (milliseconds); if the response performance parameter is the response success rate of the personalized recommendation platform, the first preset range may be set to 0-80%.
[0054] S103: If the response performance parameter is within the first preset range, the number of recommendation requests sent to the personalized recommendation platform is reduced, and the reduced recommendation requests are sent to the general data recommendation platform.
[0055] Among them, the above-mentioned general data recommendation platform stores general recommendation data shared by all users, and the general recommendation data can be applied to all users. In addition, the personalized recommendation platform can respond to the remaining recommendation requests, and the general data recommendation platform can respond to the reduced recommendation requests. Since the personalized recommendation data stored in the personalized recommendation platform has personalized characteristics and the general recommendation data stored in the general data recommendation platform has universal applicability, the storage space, data processing speed, scalability and other parameters of the general data recommendation platform are better than those of the personalized recommendation platform. Therefore, the general data recommendation platform can respond to the reduced recommendation requests.
[0056] As an example, the above step S101 may include the following steps:
[0057] Step a: Send a query instruction to the personalized recommendation platform, so that the personalized recommendation platform counts the response performance parameters for the received recommendation request based on the query instruction, and returns the response performance parameters.
[0058] Optionally, the personalized recommendation platform may return more than one response performance parameter at the same time. For example, the response performance parameter corresponding to the recommendation request included in the query instruction is the response time and the response success rate. After receiving the query instruction, the personalized recommendation platform may return two response performance parameters, namely the response time and the response success rate.
[0059] Step b: Receive the response performance parameters returned by the personalized recommendation platform.
[0060] Through the above steps a and b, the response performance parameters of the personalized recommendation platform to the received recommendation request can be obtained.
[0061] As an example, the response performance parameters of the personalized recommendation platform to the received recommendation request can also be obtained by calling the personalized recommendation platform API (Application Programming Interface). Specifically, the API for calling the personalized recommendation platform can be in the form of http (HyperText Transfer Protocol) or RPC (Remote Procedure Call Protocol). Some response statistics for recommendation requests are developed in advance on the personalized recommendation platform, and the statistical response performance parameters can be directly returned when calling the personalized recommendation platform API.
[0062] The recommendation method provided by the embodiment of the present invention obtains the response performance parameter of the personalized recommendation platform to the received recommendation request, wherein the personalized recommendation platform stores personalized recommendation data exclusive to each user; determines whether the response performance parameter is within the first preset range; if so, reduces the number of recommendation requests sent to the personalized recommendation platform, and sends the reduced recommendation requests to the general data recommendation platform, so that the personalized recommendation platform responds to the remaining recommendation requests and the general data recommendation platform responds to the reduced recommendation requests, wherein the general data recommendation platform stores the general recommendation data shared by each user. Since the personalized recommendation data stored in the personalized recommendation platform has personalized characteristics and the general recommendation data stored in the general data recommendation platform has universal applicability, the storage space, data processing speed, scalability and other parameters of the general data recommendation platform are better than the personalized recommendation platform. If the response performance parameter of the personalized recommendation platform is within the first preset range, then the personalized recommendation platform is insufficient to respond to all recommendation requests. At this time, by reducing the recommendation requests sent to the personalized recommendation platform and sending the reduced recommendation requests to the general data recommendation platform, the general data recommendation platform can respond to the reduced recommendation requests, and at the same time, the personalized recommendation platform will not crash, thereby improving the performance of the personalized recommendation platform.
[0063] Figure 2 A flowchart of a second embodiment of a recommended method provided by an embodiment of the present invention is shown in FIG. Figure 2 As shown, the method of the embodiment of the present invention may include:
[0064] S201, obtaining a performance parameter of a personalized recommendation platform's response to a received recommendation request.
[0065] S202: Determine whether the response performance parameter is within a first preset range.
[0066] If yes, execute S203; if no, execute S206.
[0067] The above steps S201-S202 and Figure 1 Steps S101-S102 in the illustrated embodiment 1 are similar and will not be described in detail herein.
[0068] S203, determining whether the response performance parameter is within a second preset range, where the second preset range is included in the first preset range.
[0069] If yes, execute S204; if no, execute S205.
[0070] For example, if the response performance parameter is the response time of the personalized recommendation platform, the first preset range can be set to 50-100ms (milliseconds), and then the second preset range can be set to 50-80ms (milliseconds); if the response performance parameter is the response success rate of the personalized recommendation platform, the first preset range can be set to 0-80%, and then the second preset range can be set to 20%-80%.
[0071] S204: Based on the response performance parameter, send a first request quantity of first recommendation requests to the personalized recommendation platform, and send a second request quantity of second recommendation requests to the general data recommendation platform.
[0072] Among them, the sum of the first request number and the second request number is the total number of recommendation requests to be sent. The first request number and the second request number can be set based on the response performance parameter. For example, when the response performance parameter is the response success rate of the personalized recommendation platform, the first preset range is 0-80%, the second preset range is 20%-80%, and the total number of recommendation requests to be sent is 100. If the response success rate returned by the personalized recommendation system is 75%, since the response performance parameter is within the second preset range, then the first request number can be set to 80 and the second request number can be set to 20; if the response success rate returned by the personalized recommendation system is 50%, since the response performance parameter is within the second preset range, then the first request number can be set to 50 and the second request number can also be set to 50.
[0073] S205: Send all recommendation requests to the general data recommendation platform.
[0074] Since the response performance parameter can characterize the recommendation capability of the personalized recommendation system, if the response performance parameter is within the first preset range and not within the second preset range, it can be concluded from the response performance parameter that the personalized recommendation platform cannot respond to any recommendation request. Therefore, all recommendation requests are sent to the general data recommendation platform.
[0075] S206: Send all recommendation requests to the personalized recommendation platform.
[0076] Since the response performance parameter can characterize the recommendation capability of the personalized recommendation system, if the response performance parameter is not within the first preset range, it can be determined based on the response performance parameter that the personalized recommendation platform can respond to all recommendation requests. Therefore, all recommendation requests are sent to the personalized recommendation platform.
[0077] According to the recommendation method provided by the embodiment of the present invention, if the response performance parameter is not within the first preset range, the personalized recommendation platform can respond to all recommendation requests according to the response performance parameter; if the response performance parameter is within the first preset range and not within the second preset range, the personalized recommendation platform cannot respond to any recommendation request according to the response performance parameter; if the response performance parameter is within the first preset range and within the second preset range, the first recommendation request of the first request quantity can be sent to the personalized recommendation platform, and the second recommendation request of the second request quantity can be sent to the general data recommendation platform according to the response performance parameter. Sending different numbers of recommendation requests to the personalized recommendation platform according to different preset ranges where the response performance parameter is located can reduce the dependence of the recommendation request on the personalized recommendation platform, thereby improving the performance of the personalized recommendation platform.
[0078] Optionally, the general recommendation data in the embodiment of the present invention may include historical personalized recommendation data acquired from a personalized recommendation platform.
[0079] Optionally, the general recommendation data in the embodiment of the present invention may include offline recommendation data obtained by matching data features with a database, wherein the data features are features of data accessed a number of times greater than a preset threshold within a preset time period, and the database stores data marked with different features.
[0080] Optionally, the general recommendation data in the embodiment of the present invention may include historical personalized recommendation data obtained from the personalized recommendation platform, and offline recommendation data obtained after matching data features with a database.
[0081] In the specific implementation, general recommendation data including historical personalized recommendation data and offline recommendation data are used as an example for explanation. Figure 3 As shown, Figure 3 A flowchart of an implementation method of a general data recommendation platform provided by an embodiment of the present invention. Figure 3 In order to ensure that the general data recommendation platform 310 supports high concurrent responses, a cache system 320 and a persistent storage system 330 are added in front of the general data recommendation platform 310. The data stored in the general data recommendation platform 310 can come from two sources: an offline data warehouse 340 and a general recommendation data system 350. Among them, the data stored in the general recommendation data system 350 is the historical personalized recommendation data obtained from the personalized recommendation platform. The data stored in the offline data warehouse 340 is the offline recommendation data.
[0082] Figure 4 A flowchart of an implementation method for obtaining offline recommendation data provided by an embodiment of the present invention is shown as follows: Figure 4 As shown. Figure 4 In the example of offline recommendation data being video data, the following is an explanation of how to obtain the offline recommendation data: the video library 410 stores video data marked with different features, and the features of the video data may be features such as the type of the video, the update date of the video, etc. The video data features 420 (i.e., the features of the video data whose number of accesses within a preset time period is greater than a preset threshold) are obtained, and the obtained video data features 420 are feature matched with the video data marked with different features stored in the video library 410. If the features of the video data stored in the video library 410 match the video data features 420, the video data stored in the video library 410 is stored in the offline data warehouse 340.
[0083] The following describes a specific implementation method as an example to illustrate the recommended method provided by the embodiment of the present invention. Figure 5 A flowchart of a recommended method provided by an embodiment of the present invention is as follows: Figure 5 As shown: the application 510 sends a recommendation request to the monitoring system 520 (used to obtain the response performance parameters of the personalized recommendation platform 530 to the received recommendation requests). After the monitoring system 520 receives the recommendation request, if the response performance parameter is not within the first preset range, the personalized recommendation platform 530 is called normally (that is, all recommendation requests are sent to the personalized recommendation platform 530); if the response performance parameter is within the first preset range and within the second preset range, a first-level fuse strategy is adopted (that is, based on the response performance parameter, a first request quantity of first recommendation requests is sent to the personalized recommendation platform 530, and a second request quantity of second recommendation requests is sent to the general data recommendation platform 540); if the response performance parameter is within the first preset range and not within the second preset range, a second-level fuse strategy is adopted (that is, all recommendation requests are sent to the general data recommendation platform 540). Figure 5In the example, if the response performance parameter is not within the first preset range, the personalized recommendation platform 530 is called normally.
[0084] Corresponding to the above method embodiment, Figure 6 A schematic diagram of a recommended device provided by an embodiment of the present invention is shown in FIG. Figure 6 As shown, the recommendation device may include an acquisition module 610, a determination module 620 and a sending module 630:
[0085] An acquisition module 610 is used to acquire a response performance parameter of a personalized recommendation platform to a received recommendation request, wherein the personalized recommendation platform stores personalized recommendation data exclusive to each user;
[0086] A determination module 620, configured to determine whether the response performance parameter is within a first preset range;
[0087] The sending module 630 is used to reduce the number of recommendation requests sent to the personalized recommendation platform if the response performance parameter is within the first preset range, and send the reduced recommendation requests to the general data recommendation platform, so that the personalized recommendation platform responds to the remaining recommendation requests and the general data recommendation platform responds to the reduced recommendation requests, wherein the general data recommendation platform stores general recommendation data shared by all users.
[0088] Optionally, the sending module 630 may further include:
[0089] A judgment submodule, which can be used to judge whether the response performance parameter is within a second preset range, and the second preset range is included in the first preset range;
[0090] At this time, the sending module 630 may also be used to send a first request quantity of first recommendation requests to the personalized recommendation platform and send a second request quantity of second recommendation requests to the general data recommendation platform based on the response performance parameter if the response performance parameter is within the second preset range, wherein the sum of the first request quantity and the second request quantity is the total quantity of recommendation requests to be sent;
[0091] The sending module 630 may also be configured to send all recommendation requests to the general data recommendation platform if the response performance parameter is not within the second preset range.
[0092] Optionally, the sending module 630 may also be configured to send all recommendation requests to the personalized recommendation platform if the response performance parameter is not within a first preset range.
[0093] Optionally, the above-mentioned general recommendation data can be: historical personalized recommendation data obtained from a personalized recommendation platform, and / or offline recommendation data obtained after matching data features with a database, wherein the data features are features of data whose number of accesses within a preset time period is greater than a preset threshold, and the database stores data marked with different features.
[0094] A recommendation device provided by an embodiment of the present invention is applied to a monitoring system, and obtains a response performance parameter of a personalized recommendation platform to a received recommendation request through an acquisition module, wherein the personalized recommendation platform stores personalized recommendation data exclusive to each user; determines whether the response performance parameter is within a first preset range through a judgment module; if the response performance parameter is within the first preset range, reduces the number of recommendation requests sent to the personalized recommendation platform through a sending module, and sends the reduced recommendation requests to a general data recommendation platform, so that the personalized recommendation platform responds to the remaining recommendation requests and the general data recommendation platform responds to the reduced recommendation requests, wherein the general data recommendation platform stores general recommendation data shared by each user. Since the personalized recommendation data stored in the personalized recommendation platform has personalized characteristics and the general recommendation data stored in the general data recommendation platform has universal applicability, the storage space, data processing speed, scalability and other parameters of the general data recommendation platform are better than the personalized recommendation platform. If the response performance parameter of the personalized recommendation platform is within the first preset range, then the personalized recommendation platform is not sufficient to respond to all recommendation requests. At this time, by reducing the recommendation requests sent to the personalized recommendation platform and sending the reduced recommendation requests to the general data recommendation platform, the general data recommendation platform can respond to the reduced recommendation requests. At the same time, the personalized recommendation platform will not crash, thereby improving the performance of the personalized recommendation platform.
[0095] The embodiment of the present invention also provides a monitoring system, such as Figure 7 As shown, it includes a processor 701, a communication interface 702, a memory 703 and a communication bus 704, wherein the processor 701, the communication interface 702, and the memory 703 communicate with each other through the communication bus 704.
[0096] Memory 703, used for storing computer programs;
[0097] The processor 701 is used to implement the following steps when executing the computer program stored in the memory 703:
[0098] Obtaining a response performance parameter of a personalized recommendation platform to a received recommendation request, wherein the personalized recommendation platform stores personalized recommendation data exclusive to each user;
[0099] Determining whether the response performance parameter is within a first preset range;
[0100] If so, the number of recommendation requests sent to the personalized recommendation platform is reduced, and the reduced recommendation requests are sent to the general data recommendation platform, so that the personalized recommendation platform responds to the remaining recommendation requests and the general data recommendation platform responds to the reduced recommendation requests, wherein the general data recommendation platform stores general recommendation data shared by all users.
[0101] Optionally, when the processor 701 executes the above step of reducing the number of recommendation requests sent to the personalized recommendation platform and sending the reduced recommendation requests to the general data recommendation platform, the following may be specifically implemented:
[0102] Determine whether the response performance parameter is within a second preset range, and the second preset range is included in the first preset range;
[0103] If so, based on the response performance parameter, sending a first request quantity of first recommendation requests to the personalized recommendation platform, and sending a second request quantity of second recommendation requests to the general data recommendation platform, wherein the sum of the first request quantity and the second request quantity is the total quantity of recommendation requests to be sent;
[0104] If not, all recommendation requests are sent to the general data recommendation platform.
[0105] Optionally, after executing the above step of determining whether the response performance parameter is within the first preset range, the processor 701 may further specifically implement:
[0106] If not, all recommendation requests are sent to the personalized recommendation platform.
[0107] Optionally, the above-mentioned general recommendation data can be: historical personalized recommendation data obtained from a personalized recommendation platform, and / or offline recommendation data obtained after matching data features with a database, wherein the data features are features of data whose number of accesses within a preset time period is greater than a preset threshold, and the database stores data marked with different features.
[0108] It can be seen that by applying the embodiments of the present invention, since the personalized recommendation data stored in the personalized recommendation platform has personalized characteristics and the general recommendation data stored in the general data recommendation platform has universal applicability, the storage space, data processing speed, scalability and other parameters of the general data recommendation platform are better than those of the personalized recommendation platform. If the response performance parameter of the personalized recommendation platform is within the first preset range, the personalized recommendation platform is not sufficient to respond to all recommendation requests. At this time, by reducing the recommendation requests sent to the personalized recommendation platform and sending the reduced recommendation requests to the general data recommendation platform, the general data recommendation platform can respond to the reduced recommendation requests. At the same time, the personalized recommendation platform will not crash, thereby improving the performance of the personalized recommendation platform.
[0109] The communication bus mentioned in the above monitoring system can be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0110] The communication interface is used for communication between the above monitoring system and other devices.
[0111] The memory may include RAM (Random Access Memory) or NVM (Non-Volatile Memory), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0112] The above-mentioned processor can be a general-purpose processor, including a CPU (Central Processing Unit), NP (Network Processor), etc.; it can also be a DSP (Digital Signal Processor), ASIC (Application Specific Integrated Circuit), FPGA (Field-Programmable Gate Array) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0113] Figure 8 A structural diagram of a recommendation system provided by an embodiment of the present invention is shown in FIG. Figure 8 As shown, the system may include: a monitoring system 810, a personalized recommendation platform 820 and a general data recommendation platform 830:
[0114] The monitoring system 810 is used to obtain a response performance parameter of the personalized recommendation platform to the received recommendation request; determine whether the response performance parameter is within a first preset range; if the response performance parameter is within the first preset range, reduce the number of recommendation requests sent to the personalized recommendation platform, and send the reduced recommendation requests to the general data recommendation platform;
[0115] The personalized recommendation platform 820 is used to send response performance parameters to the monitoring system, receive and respond to the remaining recommendation requests sent by the monitoring system, wherein the personalized recommendation platform stores personalized recommendation data exclusive to each user;
[0116] The general data recommendation platform 830 is used to receive and respond to the reduced recommendation request sent by the monitoring system, wherein the general data recommendation platform stores the general recommendation data shared by all users.
[0117] It can be seen that by applying the embodiments of the present invention, since the personalized recommendation data stored in the personalized recommendation platform has personalized characteristics and the general recommendation data stored in the general data recommendation platform has universal applicability, the storage space, data processing speed, scalability and other parameters of the general data recommendation platform are better than those of the personalized recommendation platform. If the response performance parameter of the personalized recommendation platform is within the first preset range, the personalized recommendation platform is not sufficient to respond to all recommendation requests. At this time, by reducing the recommendation requests sent to the personalized recommendation platform and sending the reduced recommendation requests to the general data recommendation platform, the general data recommendation platform can respond to the reduced recommendation requests. At the same time, the personalized recommendation platform will not crash, thereby improving the performance of the personalized recommendation platform.
[0118] In another embodiment of the present invention, a computer-readable storage medium is provided, in which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above-mentioned recommended methods are implemented.
[0119] It can be seen that by applying the embodiments of the present invention, since the personalized recommendation data stored in the personalized recommendation platform has personalized characteristics and the general recommendation data stored in the general data recommendation platform has universal applicability, the storage space, data processing speed, scalability and other parameters of the general data recommendation platform are better than those of the personalized recommendation platform. If the response performance parameter of the personalized recommendation platform is within the first preset range, the personalized recommendation platform is not sufficient to respond to all recommendation requests. At this time, by reducing the recommendation requests sent to the personalized recommendation platform and sending the reduced recommendation requests to the general data recommendation platform, the general data recommendation platform can respond to the reduced recommendation requests. At the same time, the personalized recommendation platform will not crash, thereby improving the performance of the personalized recommendation platform.
[0120] In another embodiment of the present invention, a computer program product including instructions is provided. When the computer program product is run on a computer, the computer executes any of the recommendation methods described in the above embodiments.
[0121] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, DSL (Digital Subscriber Line, digital subscriber line)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrations. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a DVD (Digital Versatile Disc)), or a semiconductor medium (eg, an SSD (Solid State Disk)), etc.
[0122] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0123] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device embodiment, system embodiment, and computer-readable storage medium embodiment, since they are basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0124] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.
Claims
1. A recommendation method, characterized in that: Applied to a monitoring system, the method comprises: Obtaining a response performance parameter of a personalized recommendation platform to a received recommendation request, wherein the personalized recommendation platform stores personalized recommendation data exclusive to each user; Determining whether the response performance parameter is within a first preset range; If so, reducing the number of recommendation requests sent to the personalized recommendation platform, and sending the reduced recommendation requests to the general data recommendation platform, so that the personalized recommendation platform responds to the remaining recommendation requests and the general data recommendation platform responds to the reduced recommendation requests, wherein the general data recommendation platform stores general recommendation data shared by all users; The reducing the number of recommendation requests sent to the personalized recommendation platform and sending the reduced recommendation requests to the general data recommendation platform includes: Determine whether the response performance parameter is within a second preset range, and the second preset range is included in the first preset range; If so, based on the response performance parameter, a first recommendation request of a first request quantity is sent to the personalized recommendation platform, and a second recommendation request of a second request quantity is sent to the general data recommendation platform, wherein the sum of the first request quantity and the second request quantity is the total quantity of recommendation requests to be sent.
2. The method according to claim 1, characterized in that After determining whether the response performance parameter is within a second preset range, the method further includes: If not, all recommendation requests are sent to the general data recommendation platform.
3. The method according to claim 1, characterized in that After determining whether the response performance parameter is within a first preset range, the method further includes: If not, all recommendation requests are sent to the personalized recommendation platform.
4. The method according to claim 1, characterized in that: The general recommendation data is: historical personalized recommendation data obtained from the personalized recommendation platform, and / or offline recommendation data obtained by matching data features with a database, wherein the data features are features of data accessed more than a preset threshold number of times within a preset time period, and the database stores data marked with different features.
5. A recommendation device, characterized in that: Applied to a monitoring system, the device comprises: An acquisition module, used to acquire a response performance parameter of a personalized recommendation platform to a received recommendation request, wherein the personalized recommendation platform stores personalized recommendation data exclusive to each user; A determination module, used to determine whether the response performance parameter is within a first preset range; A sending module, configured to reduce the number of recommendation requests sent to the personalized recommendation platform if the response performance parameter is within a first preset range, and send the reduced recommendation requests to the general data recommendation platform, so that the personalized recommendation platform responds to the remaining recommendation requests and the general data recommendation platform responds to the reduced recommendation requests, wherein the general data recommendation platform stores general recommendation data shared by all users; The sending module comprises: A determination submodule, configured to determine whether the response performance parameter is within a second preset range, wherein the second preset range is included in the first preset range; The sending module is also used to send a first request quantity of first recommendation requests to the personalized recommendation platform and a second request quantity of second recommendation requests to the general data recommendation platform based on the response performance parameter if the response performance parameter is within a second preset range, wherein the sum of the first request quantity and the second request quantity is the total quantity of recommendation requests to be sent.
6. The device according to claim 5, characterized in that The sending module is further configured to send all recommendation requests to the general data recommendation platform if the response performance parameter is not within a second preset range.
7. The device according to claim 5, characterized in that The sending module is further configured to send all recommendation requests to the personalized recommendation platform if the response performance parameter is not within a first preset range.
8. The device according to claim 5, characterized in that The general recommendation data is: historical personalized recommendation data obtained from the personalized recommendation platform, and / or offline recommendation data obtained by matching data features with a database, wherein the data features are features of data accessed more than a preset threshold number of times within a preset time period, and the database stores data marked with different features.
9. A recommendation system, characterized in that: The system includes: a monitoring system, a personalized recommendation platform and a general data recommendation platform; The monitoring system is used to obtain the response performance parameter of the personalized recommendation platform to the received recommendation request; determine whether the response performance parameter is within a first preset range; if the response performance parameter is within the first preset range, reduce the number of recommendation requests sent to the personalized recommendation platform, and send the reduced recommendation requests to the general data recommendation platform; the reduction of the number of recommendation requests sent to the personalized recommendation platform and sending the reduced recommendation requests to the general data recommendation platform includes: determining whether the response performance parameter is within a second preset range, the second preset range being included in the first preset range; if so, based on the response performance parameter, send a first request quantity of first recommendation requests to the personalized recommendation platform, and send a second request quantity of second recommendation requests to the general data recommendation platform, wherein the sum of the first request quantity and the second request quantity is the total number of recommendation requests to be sent. The personalized recommendation platform is used to send response performance parameters to the monitoring system, receive and respond to the remaining recommendation requests sent by the monitoring system, wherein the personalized recommendation platform stores personalized recommendation data exclusive to each user; The general data recommendation platform is used to receive and respond to the reduced recommendation request sent by the monitoring system, wherein the general data recommendation platform stores general recommendation data shared by all users.
10. A monitoring system, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor, for implementing the method according to any one of claims 1 to 4 when executing the computer program stored in the memory.
11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 4 is implemented.
Citation Information
Patent Citations
Control method and device for front-end display and control method and device for data recommendation
CN109150983A
