Cargo list generation method, device, server and readable storage medium

By setting up an interface in the server and allocating cargo list requests according to the allocation ratio, the problem of slow response speed of cargo list in flash sale activities is solved, improving response efficiency and user experience.

CN113869976BActive Publication Date: 2024-11-08CHINA UNITED NETWORK COMM GRP CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202111126784.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-26
Publication Date
2024-11-08
Estimated Expiration
2041-09-26

AI Technical Summary

Technical Problem

In the online shopping flash sale event, the generation and calculation of goods lists is complex, resulting in slow response speed and affecting customer experience.

Method used

By setting the first interface and the second interface in the server, the cargo list request is allocated to the corresponding interface according to the allocation ratio. The first interface is used for personalized list generation, the second interface is used to cache the default list, and the allocation ratio is periodically adjusted to Optimize response efficiency.

Benefits of technology

Improve the response speed of the goods list, avoid network congestion, and improve user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113869976B_ABST
    Figure CN113869976B_ABST
Patent Text Reader

Abstract

The present application provides a method, device, server and readable storage medium for generating a goods list. The method includes: a server receives multiple goods list requests at one time. The server can allocate the goods list requests to a first interface or a second interface according to the allocation ratio. The goods list request allocated to the first interface will call the first interface to generate a goods list. The goods list request allocated to the second interface will call the second interface to generate a goods list. The server feeds back the generated goods list to the corresponding client terminal. The method of the present application improves the feedback efficiency of the goods list request and improves the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computers, and in particular to a method, device, server and readable storage medium for generating a goods list. Background Art

[0002] In the promotion activities of online shopping platforms, there are often flash sales activities. During the flash sales activities, the client terminal can send a product list request to the server to request the server to obtain the product list.

[0003] In the prior art, in order to meet the personalized needs of customers, the goods list is usually a personalized goods list. The server can obtain customer information through the goods list request sent by the client terminal, thereby matching the goods that the customer is interested in and generating a goods list.

[0004] However, the generation of the cargo list is computationally complex and prone to slow response. Therefore, how to improve the response speed of the cargo list becomes an urgent problem to be solved. Summary of the invention

[0005] The present application provides a method, device, server and readable storage medium for generating a goods list, so as to solve the problem of slow response speed of the goods list.

[0006] In a first aspect, the present application provides a method for generating a goods list, comprising:

[0007] Get multiple cargo list requests sent by multiple client terminals;

[0008] According to the allocation ratio, the goods list request is allocated to the first interface or the second interface, the first interface is used to feed back the personalized goods list to the customer terminal, and the second interface is used to feed back the default goods list to the customer terminal;

[0009] Generate a goods list through the first interface or the second interface, and return the goods list to the customer terminal.

[0010] Optionally, the method further includes:

[0011] According to a preset period, obtaining a first average response time of the first interface and a second average response time of the first interface in a previous period;

[0012] The allocation ratio is adjusted according to the first average response time, the second average response time and a fluctuation threshold.

[0013] Optionally, adjusting the allocation ratio according to the first average response time, the second average response time, and a fluctuation threshold includes:

[0014] When the first average response time is greater than the sum of the second average response time and the fluctuation threshold, the calculation formula of the adjusted allocation ratio is:

[0015]

[0016] Among them, p i is the allocation ratio of the current cycle, p i-1 is the allocation ratio of the previous cycle, t is the first average response time, t avg is the second average response time, and Δt is the fluctuation threshold.

[0017] Optionally, adjusting the allocation ratio according to the first average response time, the second average response time, and a fluctuation threshold includes:

[0018] When the first average response time is less than the difference between the second average response time and the fluctuation threshold, the calculation formula of the adjusted allocation ratio is:

[0019]

[0020] Among them, p i is the allocation ratio of the current cycle, p i-1 is the allocation ratio of the previous cycle, t is the first average response time, t avg is the second average response time, and Δt is the fluctuation threshold.

[0021] Optionally, adjusting the allocation ratio according to the first average response time, the second average response time, and a fluctuation threshold includes:

[0022] When the first average response time is less than or equal to the sum of the second average response time and the fluctuation threshold, and the first average response time is greater than or equal to the difference between the second average response time and the fluctuation threshold, the allocation ratio is not adjusted.

[0023] Optionally, the method further includes:

[0024] When the adjusted allocation ratio is greater than 1, the allocation ratio is corrected to 1;

[0025] Optionally, the method further includes:

[0026] When the adjusted allocation ratio is less than 0, the allocation ratio is corrected to 0.

[0027] In a second aspect, the present application provides a device for generating a goods list, comprising:

[0028] An acquisition module, used for acquiring multiple cargo list requests sent by multiple client terminals;

[0029] The processing module is used to obtain, according to a preset period, a first average response time of the first interface and a second average response time of the first interface in the previous period; adjust the allocation ratio according to the first average response time, the second average response time and the fluctuation threshold; allocate the goods list request to the first interface or the second interface according to the allocation ratio, the first interface is used to feed back a personalized goods list to the customer terminal, and the second interface is used to feed back a default goods list to the customer terminal; generate a goods list through the first interface or the second interface, and return the goods list to the customer terminal.

[0030] Optionally, the processing module is further used to:

[0031] According to a preset period, obtaining a first average response time of the first interface and a second average response time of the first interface in a previous period;

[0032] The allocation ratio is adjusted according to the first average response time, the second average response time and a fluctuation threshold.

[0033] Optionally, the processing module is specifically used to:

[0034] When the first average response time is greater than the sum of the second average response time and the fluctuation threshold, the calculation formula of the adjusted allocation ratio is:

[0035]

[0036] Among them, p i is the allocation ratio of the current cycle, p i-1 is the allocation ratio of the previous cycle, t is the first average response time, t avg is the second average response time, and Δt is the fluctuation threshold.

[0037] Optionally, the processing module is specifically used to:

[0038] When the first average response time is less than the difference between the second average response time and the fluctuation threshold, the calculation formula of the adjusted allocation ratio is:

[0039]

[0040] Among them, p i is the allocation ratio of the current cycle, p i-1 is the allocation ratio of the previous cycle, t is the first average response time, t avg is the second average response time, and Δt is the fluctuation threshold.

[0041] Optionally, the processing module is specifically used to:

[0042] When the first average response time is less than or equal to the sum of the second average response time and the fluctuation threshold, and the first average response time is greater than or equal to the difference between the second average response time and the fluctuation threshold, the allocation ratio is not adjusted.

[0043] Optionally, the processing module is specifically used to:

[0044] When the adjusted allocation ratio is greater than 1, the allocation ratio is corrected to 1;

[0045] When the adjusted allocation ratio is less than 0, the allocation ratio is corrected to 0.

[0046] In a third aspect, the present application provides a server, including: a memory and a processor;

[0047] The memory is used to store program instructions; the processor is used to call the program instructions in the memory to execute the goods list generation method in the first aspect and any possible design of the first aspect.

[0048] In a fourth aspect, the present application provides a readable storage medium, in which a computer program is stored. When at least one processor of a server executes the computer program, the server executes the method for generating a goods list in the first aspect and any possible design of the first aspect.

[0049] In a fifth aspect, the present application provides a computer program product, which includes a computer program. When at least one processor of a server executes the computer program, the server executes the method for generating a goods list in the first aspect and any possible design of the first aspect.

[0050] The cargo list generation method provided by the present application receives multiple cargo list requests at one time; distributes the cargo list requests to a first interface or a second interface according to a distribution ratio, the cargo list request distributed to the first interface will call the first interface to generate a cargo list, and the cargo list request distributed to the second interface will call the second interface to generate a cargo list; and feeds back the generated cargo list to the corresponding client terminal, so as to ensure the feedback efficiency of the cargo list request, call the first interface as much as possible, and improve the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] In order to more clearly illustrate the technical solutions in the present application or the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0052] Figure 1 A schematic diagram of a flash sale scenario provided in one embodiment of the present application;

[0053] Figure 2 A flowchart of a method for generating a goods list provided in one embodiment of the present application;

[0054] Figure 3 A flowchart of a method for generating a goods list provided in one embodiment of the present application;

[0055] Figure 4 A schematic diagram of the structure of a method and device for generating a goods list provided in one embodiment of the present application;

[0056] Figure 5 A schematic diagram of the hardware structure of a server provided in one embodiment of the present application. DETAILED DESCRIPTION

[0057] In order to make the purpose, technical solutions and advantages of this application clearer, the technical solutions in this application will be clearly and completely described below in conjunction with the drawings in this application. Obviously, the described embodiments are part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0058] The terms "first", "second", "third", "fourth", etc. in the specification and claims of this 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 under appropriate circumstances. For example, without departing from the scope of this document, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as the first information.

[0059] The word "if" as used herein may be interpreted as "when" or "when" or "in response to determining," depending on the context.

[0060] Furthermore, as used herein, the singular forms “a”, “an” and “the” are intended to include the plural forms as well, unless the context indicates otherwise.

[0061] It should be further understood that the terms “comprises” and “includes” indicate the existence of features, steps, operations, elements, components, items, types, and / or groups, but do not exclude the existence, occurrence, or addition of one or more other features, steps, operations, elements, components, items, types, and / or groups.

[0062] The terms "or" and "and / or" used herein are interpreted as inclusive, or mean any one or any combination. Thus, "A, B or C" or "A, B and / or C" means "any of the following: A. B. C. A and B. A and C. B and C. A, B and C". Exceptions to this definition will only occur when a combination of elements, functions, steps or operations are inherently mutually exclusive in some manner.

[0063] In the promotional activities of online shopping platforms, there are often flash sales. During the flash sales, customers can check the goods list, determine the goods for the flash sales, and then choose to buy the goods they need. In this process, the client terminal can request the server to obtain the goods list by sending a goods list request to the server. The server needs to frequently obtain the goods list and send the goods list to the client terminal for the customer to view. If the server is slow to feedback the goods list to the client terminal during this process, it will seriously affect the customer experience in the flash sales.

[0064] In view of the above problems, the present application proposes a method for generating a goods list. In the present application, a first interface and a second interface may be preset in the server. When the server receives a goods list request sent by a client terminal, the server may feed back the goods list to the client terminal by calling the first interface or the second interface. Among them, the first interface is a personalized interface. When the server calls the first interface, the goods in the goods list returned by the server are the goods that the client is interested in. Among them, the second interface is a cache interface. When the server calls the second interface, the server returns a default goods list stored in the cache.

[0065] In flash sales, customers usually send product list requests to the server in a concentrated and frequent manner. Therefore, when the server receives a large number of product list requests at one time, the server can allocate some of the product list requests to the first interface and allocate the other part of the product list requests to the second interface according to the allocation ratio.

[0066] Among them, the second interface is a cache interface, and its calling speed is fast. The second interface is a personalized interface, and its calling speed is slow. Therefore, in order to ensure the response efficiency of the client terminal, the server can periodically adjust the allocation ratio. The adjustment of the allocation ratio can avoid network congestion caused by too many client terminals calling the first interface, thereby ensuring the response efficiency of the client terminal.

[0067] The technical solution of the present application is described in detail with specific embodiments below. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.

[0068] Figure 1 A schematic diagram of a flash sale activity provided by an embodiment of the present application is shown. A customer can send a goods list request to a service. After obtaining the goods list request, the server can generate an acquisition list according to the goods list request. The server can feed back the acquisition list to the client terminal. The customer can participate in the flash sale activity by viewing the customer list.

[0069] In the present application, the server is used as the execution subject to execute the cargo list generation method of the following embodiment. Specifically, the execution subject can be a hardware device of the server, or a software application implementing the following embodiment in the server, or a computer-readable storage medium installed with the software application implementing the following embodiment, or a code of the software application implementing the following embodiment.

[0070] Figure 2 A flowchart of a method for generating a goods list provided by an embodiment of the present application is shown. Figure 1 Based on the embodiment shown, Figure 2 As shown, with the server as the execution subject, the method of this embodiment may include the following steps:

[0071] S101. Acquire multiple cargo list requests sent by multiple client terminals.

[0072] In this embodiment, since customers usually concentrate on parameters during a flash sale, and frequently request a list of goods from the server, the server may receive multiple requests for a list of goods at one time. Each request for a list of goods may correspond to a client terminal. The request for a list of goods is a request from a client terminal to the server to view a list of goods. The list of goods may include all or part of the goods in the flash sale.

[0073] S102. Allocate the goods list request to the first interface or the second interface according to the allocation ratio. The first interface is used to feed back the personalized goods list to the client terminal, and the second interface is used to feed back the default goods list to the client terminal.

[0074] In this embodiment, the server may allocate the goods list request to the first interface or the second interface according to the allocation ratio. The goods list request allocated to the first interface will call the first interface to generate the goods list. The goods list request allocated to the second interface will call the second interface to generate the goods list.

[0075] Among them, the first interface is a personalized interface. When the server calls the first interface, the server can request the customer information of the goods through the goods list. The customer information may include the customer account and customer portrait. The server can match the goods that the customer may be interested in from the goods list of this flash sale activity according to the customer portrait, and form a goods list. The goods in the goods list are usually goods that the customer is more willing to buy. However, since the server needs to complete the matching of goods according to the customer portrait in this process, a certain amount of processing time is required. Therefore, when the server receives a large number of goods list requests at a time, the server may not have time to process them, resulting in network congestion.

[0076] The second interface is a cache interface. The server may pre-store a default goods list in the cache. When the server calls the second interface, the server may directly obtain the default goods list and feed the default goods list back to the client terminal. When the server calls the second interface, the processing efficiency of the server is high.

[0077] The allocation ratio is a value determined by the server according to the first average response time of the first interface and the second average response time of the first interface. The value of the allocation ratio is between 0 and 1. For example, when the allocation ratio is P, the number of cargo list requests obtained by the server at a time is N. At this time, the server randomly selects N*P cargo list requests from the N cargo list requests and allocates them to the first interface. In addition, the server allocates the cargo list requests other than the N*P cargo list requests to the second interface. The server can also periodically adjust the allocation ratio to adapt to the changes in the number of cargo list requests received by the server and ensure the response efficiency of the cargo list requests.

[0078] S103: Generate a goods list through the first interface or the second interface, and return the goods list to the client terminal.

[0079] In this embodiment, after the server completes the allocation of the goods list request, the server can call the first interface or the second interface to generate a goods list, and the server feeds back the generated goods list to the corresponding client terminal.

[0080] The cargo list generation method provided by the present application includes multiple cargo list requests received by the server at one time. The server can allocate the cargo list requests to the first interface or the second interface according to the allocation ratio. The cargo list request allocated to the first interface will call the first interface to generate the cargo list. The cargo list request allocated to the second interface will call the second interface to generate the cargo list. The server feeds back the generated cargo list to the corresponding client terminal. In the present application, by allocating the cargo list request to the first interface or the second interface according to the allocation ratio, it is achieved that the first interface is called as much as possible while ensuring the feedback efficiency of the cargo list request, thereby improving the user experience.

[0081] Figure 3 A flowchart of a method for generating a goods list provided by an embodiment of the present application is shown. Figure 1 and Figure 2 Based on the embodiment shown, Figure 3 As shown, with the server as the execution subject, the calculation method of the allocation ratio in this embodiment may include the following steps:

[0082] S201. According to a preset period, obtain a first average response time of a first interface and a second average response time of the first interface in a previous period.

[0083] In this embodiment, the server may periodically adjust the allocation ratio according to a preset cycle. When entering the current cycle, the server may obtain the first average response time of the first interface in the previous cycle. The first average response time may reflect the situation of the goods list requests received by the server in the previous cycle, and the feedback of these goods list requests. The server may also count the second average response time of the first interface from the beginning of use to the current cycle.

[0084] In one example, the second average response time may be a time threshold set by an administrator based on experience. When the first average response time is greater than the time threshold, the server may determine that the calling efficiency of the first interface is slow and needs to reduce the allocation ratio of the first interface, thereby reducing calls. When the first average response time is less than the time threshold, the server may determine that the calling efficiency of the first interface is high and may appropriately increase the allocation ratio of the first interface, thereby increasing calls.

[0085] S202: Adjust the allocation ratio according to the first average response time, the second average response time, and the fluctuation threshold.

[0086] In this embodiment, the server can determine whether it is reasonable for the server to call the first interface by the difference between the first average response time and the second average response time. For example, when the first average response time is much greater than the second average response time, the call intensity of the first interface is already higher than the average level, and the problem of low feedback efficiency may occur. In this case, it is necessary to reduce the allocation ratio. For another example, when the first average response time is much less than the second average response time, the call intensity of the first interface is low, and the allocation ratio can be appropriately increased.

[0087] The fluctuation threshold is used to determine whether the change of the first average response time is within the allowable range. That is, when the first average response time is greater than the sum of the second average response time and the fluctuation threshold, the server can determine that the first average response time is much greater than the second average response time. Otherwise, when the first average response time is less than the difference between the second average response time and the fluctuation threshold, the server can determine that the first average response time is much less than the second average response time.

[0088] In one example, when the first average response time is greater than the sum of the second average response time and the fluctuation threshold, that is, t>t avg +Δt, the calculation formula for the adjusted distribution ratio is:

[0089]

[0090] Among them, p i is the allocation ratio of the current cycle, p i-1 is the allocation ratio of the previous cycle, t is the first average response time, t avg is the second average response time, and Δt is the fluctuation threshold.

[0091] In one example, the first average response time is less than the difference between the second average response time and the fluctuation threshold, that is, t <t avg -Δt, the calculation formula for the adjusted allocation ratio is:

[0092]

[0093] Among them, p i is the allocation ratio of the current cycle, p i-1 is the allocation ratio of the previous cycle, t is the first average response time, t avg is the second average response time, and Δt is the fluctuation threshold.

[0094] In one example, the first average response time is less than or equal to the sum of the second average response time and the fluctuation threshold, and the first average response time is greater than or equal to the difference between the second average response time and the fluctuation threshold, that is, t avg -Δt≤t≤t avg+Δt, it can be determined that the change of the first average threshold is within a normal range, and the allocation ratio is not adjusted at this time.

[0095] In one example, when the adjusted allocation ratio is greater than 1, the modified allocation ratio is 1.

[0096] In one example, when the adjusted allocation ratio is less than 0, the modified allocation ratio is 0.

[0097] In the method for generating a goods list provided in the present application, the server can obtain the first average response time of the first interface in the previous cycle. The server can also count the second average response time of the first interface from the beginning of use to the current cycle. The server can adjust the allocation ratio according to the first average response time, the second average response time and the fluctuation threshold. In the present application, by periodically adjusting the allocation ratio, the allocation ratio can be changed dynamically, thereby ensuring that the feedback efficiency of the goods list request is maintained at a good level.

[0098] Figure 4 A schematic diagram of the structure of a device for generating a goods list provided in an embodiment of the present application is shown. Figure 4 As shown, the goods list generating device 10 of this embodiment is used to implement the operation corresponding to the server in any of the above method embodiments. The goods list generating device 10 of this embodiment includes:

[0099] The acquisition module 11 is used to acquire multiple cargo list requests sent by multiple client terminals.

[0100] The processing module 12 is used to allocate the goods list request to the first interface or the second interface according to the allocation ratio, the first interface is used to feed back the personalized goods list to the client terminal, and the second interface is used to feed back the default goods list to the client terminal. The goods list is generated through the first interface or the second interface, and the goods list is returned to the client terminal.

[0101] In one example, the processing module is further used to:

[0102] According to a preset period, a first average response time of the first interface and a second average response time of the first interface in the previous period are obtained.

[0103] The allocation ratio is adjusted according to the first average response time, the second average response time, and the fluctuation threshold.

[0104] In one example, the processing module is specifically used to:

[0105] When the first average response time is greater than the sum of the second average response time and the fluctuation threshold, the calculation formula for the adjusted allocation ratio is:

[0106]

[0107] Among them, p i is the allocation ratio of the current cycle, p i-1 is the allocation ratio of the previous cycle, t is the first average response time, t avg is the second average response time, and Δt is the fluctuation threshold.

[0108] In one example, the processing module is specifically used to:

[0109] When the first average response time is less than the difference between the second average response time and the fluctuation threshold, the calculation formula for the adjusted allocation ratio is:

[0110]

[0111] Among them, p i is the allocation ratio of the current cycle, p i-1 is the allocation ratio of the previous cycle, t is the first average response time, t avg is the second average response time, and Δt is the fluctuation threshold.

[0112] In one example, the processing module is specifically used to:

[0113] When the first average response time is less than or equal to the sum of the second average response time and the fluctuation threshold, and the first average response time is greater than or equal to the difference between the second average response time and the fluctuation threshold, the allocation ratio is not adjusted.

[0114] In one example, the processing module is specifically used to:

[0115] When the adjusted allocation ratio is greater than 1, the revised allocation ratio is 1.

[0116] In one example, the processing module is specifically used to:

[0117] When the adjusted allocation ratio is less than 0, the corrected allocation ratio is 0.

[0118] The goods list generating device 10 provided in the embodiment of the present application can execute the above method embodiment. Its specific implementation principle and technical effects can be found in the above method embodiment, and this embodiment will not be repeated here.

[0119] Figure 5 FIG. 1 shows a hardware structure diagram of a server provided in an embodiment of the present application. Figure 5 As shown, the server 20 is used to implement the operations corresponding to the server in any of the above method embodiments. The server 20 of this embodiment may include: a memory 21, a processor 22 and a communication interface 24.

[0120] The memory 21 is used to store computer programs. The memory 21 may include a high-speed random access memory (RAM), and may also include a non-volatile memory (NVM), such as at least one disk memory, and may also be a USB flash drive, a mobile hard disk, a read-only memory, a disk or an optical disk.

[0121] The processor 22 is used to execute the computer program stored in the memory to implement the method for generating a goods list in the above embodiment. For details, please refer to the relevant description in the above method embodiment. The processor 22 can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the invention can be directly embodied as being executed by a hardware processor, or executed by a combination of hardware and software modules in the processor.

[0122] Optionally, the memory 21 may be independent or integrated with the processor 22 .

[0123] When the memory 21 is a device independent of the processor 22, the server 20 may further include a bus 23. The bus 23 is used to connect the memory 21 and the processor 22. The bus 23 may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, the bus in the drawings of the present application is not limited to only one bus or one type of bus.

[0124] The communication interface 24 may be connected to the processor 21 via the bus 23. The processor 22 may control the communication interface 24 to implement interaction with the client terminal.

[0125] The server provided in this embodiment can be used to execute the above-mentioned method for generating a goods list. Its implementation method and technical effects are similar and will not be described in detail in this embodiment.

[0126] The present application also provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, it is used to implement the methods provided in the various embodiments described above.

[0127] Among them, the computer-readable storage medium can be a computer storage medium or a communication medium. The communication medium includes any medium that facilitates the transmission of a computer program from one place to another. The computer storage medium can be any available medium that can be accessed by a general-purpose or special-purpose computer. For example, a computer-readable storage medium is coupled to a processor so that the processor can read information from the computer-readable storage medium and write information to the computer-readable storage medium. Of course, the computer-readable storage medium can also be a component of the processor. The processor and the computer-readable storage medium can be located in an application-specific integrated circuit (ASIC). In addition, the ASIC can be located in a client device. Of course, the processor and the computer-readable storage medium can also exist in a communication device as discrete components.

[0128] Specifically, the computer-readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The storage medium can be any available medium that can be accessed by a general or special-purpose computer.

[0129] The present application also provides a computer program product, which includes a computer program stored in a computer-readable storage medium. At least one processor of a device can read the computer program from the computer-readable storage medium, and at least one processor executes the computer program so that the device implements the methods provided in the various embodiments described above.

[0130] An embodiment of the present application also provides a chip, which includes a memory and a processor, the memory is used to store computer programs, and the processor is used to call and run the computer programs from the memory, so that a device equipped with the chip executes the methods in various possible implementation modes as described above.

[0131] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of modules is only a logical function division. There may be other division methods in actual implementation. For example, multiple modules 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 devices or modules, which can be electrical, mechanical or other forms.

[0132] Among them, each module can be physically separated, for example, installed in different locations of a device, or installed on different devices, or distributed on multiple network units, or distributed on multiple processors. Each module can also be integrated together, for example, installed in the same device, or integrated in a set of codes. Each module can exist in the form of hardware, or can also exist in the form of software, or can also be implemented in the form of software plus hardware. The present application can select some or all of the modules according to actual needs to achieve the purpose of the present embodiment.

[0133] When each module is implemented as an integrated module in the form of a software function module, it can be stored in a computer-readable storage medium. The above-mentioned software function module is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to perform some steps of the methods of each embodiment of the present application.

[0134] It should be understood that, although the various steps in the flowcharts in the above-described embodiments are sequentially displayed according to the indications of the arrows, these steps are not necessarily executed sequentially in the order indicated by the arrows. Unless there is a clear description in this article, the execution of these steps is not strictly limited in order, and they can be executed in other orders. Moreover, at least a portion of the steps in the figure may include a plurality of sub-steps or a plurality of stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily to be carried out sequentially, but can be executed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.

[0135] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the above embodiments, a person of ordinary skill in the art should understand that the technical solutions described in the above embodiments can still be modified, or some or all of the technical features can be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A method for generating a goods list, characterized in that: The method comprises: Obtain multiple cargo list requests sent by multiple client terminals; Obtaining, according to a preset period, a first average response time of the first interface and a second average response time of the first interface in the previous period; adjusting the allocation ratio according to the first average response time, the second average response time, and a fluctuation threshold, wherein the allocation ratio can be obtained based on a calculation formula for the adjusted allocation ratio; Allocating the goods list request to a first interface or a second interface according to the allocation ratio, wherein the first interface is used to feed back a personalized goods list to the client terminal, and the second interface is used to feed back a default goods list to the client terminal; generating a goods list through the first interface or the second interface, and returning the goods list to the client terminal; When the first average response time is greater than the sum of the second average response time and the fluctuation threshold, the calculation formula for the adjusted allocation ratio is: p i is the allocation ratio of the current cycle, p i-1 is the allocation ratio of the previous cycle, t is the first average response time, t avg is the second average response time, Δt is the fluctuation threshold; When the first average response time is less than the difference between the second average response time and the fluctuation threshold, the calculation formula for the adjusted allocation ratio is:

2. The method according to claim 1, characterized in that The adjusting the allocation ratio according to the first average response time, the second average response time, and the fluctuation threshold includes: When the first average response time is less than or equal to the sum of the second average response time and the fluctuation threshold, and the first average response time is greater than or equal to the difference between the second average response time and the fluctuation threshold, the allocation ratio is not adjusted.

3. The method according to any one of claims 1 or 2, characterized in that The method further comprises: When the adjusted allocation ratio is greater than 1, the allocation ratio is corrected to 1.

4. The method according to any one of claims 1 or 2, characterized in that The method further comprises: When the adjusted allocation ratio is less than 0, the allocation ratio is corrected to 0.

5. A device for generating a goods list, characterized in that: The device comprises: An acquisition module, which acquires multiple cargo list requests sent by multiple client terminals; a processing module configured to obtain, based on a preset period, a first average response time of the first interface and a second average response time of the first interface in a previous period; adjust an allocation ratio based on the first average response time, the second average response time, and a fluctuation threshold; allocate the product list request to the first interface or the second interface based on the allocation ratio, wherein the first interface is configured to feed back a personalized product list to the client terminal, and the second interface is configured to feed back a default product list to the client terminal; generate a product list via the first interface or the second interface, and return the product list to the client terminal; When the first average response time is greater than the sum of the second average response time and the fluctuation threshold, the calculation formula for the adjusted allocation ratio is: p i is the allocation ratio of the current cycle, p i-1 is the allocation ratio of the previous cycle, t is the first average response time, t avg is the second average response time, Δt is the fluctuation threshold; when the first average response time is less than the difference between the second average response time and the fluctuation threshold, the calculation formula for the adjusted allocation ratio is:

6. A server, characterized in that: The server includes: a memory and a processor; The memory is used to store a computer program; the processor is used to implement the cargo list generation method according to any one of claims 1 to 5 according to the computer program stored in the memory.

7. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, which, when executed by a processor, is used to implement the method for generating a cargo list according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Load balancing method, device and system

    CN104301439A

  • Scalable systems and methods for generating and serving recommendations

    CN108475390A

  • A method for reducing search complexity based on a specific strategy to cope with an overload search request

    CN109190004A

  • Service shunting method and device

    CN110324411A

  • Systems and methods for allocating service requests

    CN111144968A