CN113869976A - Cargo list generation method and device, server and readable storage medium - Google Patents
Cargo list generation method and device, server and readable storage medium Download PDFInfo
- Publication number
- CN113869976A CN113869976A CN202111126784.9A CN202111126784A CN113869976A CN 113869976 A CN113869976 A CN 113869976A CN 202111126784 A CN202111126784 A CN 202111126784A CN 113869976 A CN113869976 A CN 113869976A
- Authority
- CN
- China
- Prior art keywords
- response time
- average response
- interface
- list
- server
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 57
- 230000004044 response Effects 0.000 claims description 126
- 238000004590 computer program Methods 0.000 claims description 18
- 238000012545 processing Methods 0.000 claims description 17
- 238000004364 calculation method Methods 0.000 claims description 10
- 230000002147 killing effect Effects 0.000 description 9
- 238000004891 communication Methods 0.000 description 8
- 230000000694 effects Effects 0.000 description 7
- 230000008569 process Effects 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 1
- 239000012141 concentrate Substances 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q30/00—Commerce
- G06Q30/06—Buying, selling or leasing transactions
- G06Q30/0601—Electronic shopping [e-shopping]
- G06Q30/0633—Lists, e.g. purchase orders, compilation or processing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/953—Querying, e.g. by the use of web search engines
- G06F16/9535—Search customisation based on user profiles and personalisation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q30/00—Commerce
- G06Q30/02—Marketing; Price estimation or determination; Fundraising
- G06Q30/0207—Discounts or incentives, e.g. coupons or rebates
- G06Q30/0222—During e-commerce, i.e. online transactions
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Accounting & Taxation (AREA)
- Finance (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Strategic Management (AREA)
- Physics & Mathematics (AREA)
- Development Economics (AREA)
- Databases & Information Systems (AREA)
- Economics (AREA)
- Marketing (AREA)
- General Business, Economics & Management (AREA)
- Game Theory and Decision Science (AREA)
- Entrepreneurship & Innovation (AREA)
- Data Mining & Analysis (AREA)
- General Engineering & Computer Science (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The application provides a cargo list generation method, a cargo list generation device, a server and a readable storage medium. The method comprises the following steps: a server receives multiple item list requests at a time. The server may assign the cargo list request to the first interface or the second interface according to the assignment proportion. The cargo list request assigned to the first interface will invoke the first interface to generate the cargo list. The cargo list request assigned to the second interface will invoke the second interface to generate the cargo list. And the server feeds the generated goods list back to the corresponding client terminal. The method improves the feedback efficiency of the cargo list request and improves the user experience.
Description
Technical Field
The present application relates to the field of computers, and in particular, to a method, an apparatus, a server and a readable storage medium for generating a cargo list.
Background
In the promotion activities of the online shopping platform, second killing activities are often carried out. During the second killing activity, the client terminal can request the server to acquire the cargo list by sending a cargo list request to the server.
In the prior art, in order to meet the personalized requirements of customers, the goods list is usually a personalized goods list. The server can obtain the client information through a cargo list request sent by the client terminal, so that cargos interested by the client are matched, and a cargo list is generated.
However, the generation of the cargo list is computationally complex, and is prone to slow response. Therefore, how to improve the response speed of the cargo list becomes an urgent problem to be solved.
Disclosure of Invention
The application provides a cargo list generation method, a cargo list generation device, a server and a readable storage medium, which are used for solving the problem of low response speed of a cargo list.
In a first aspect, the present application provides a cargo list generating method, including:
acquiring a plurality of goods list requests sent by a plurality of client terminals;
according to the distribution proportion, the goods list request is distributed to a first interface or a second interface, the first interface is used for feeding back a personalized goods list to the client terminal, and the second interface is used for feeding back a default goods list to the client terminal;
and generating a goods list through the first interface or the second interface, and returning the goods list to the client terminal.
Optionally, the method further comprises:
acquiring first average response time of the first interface and second average response time of the first interface in the previous period according to a preset period;
and adjusting the distribution ratio according to the first average response time, the second average response time and a fluctuation threshold value.
Optionally, the adjusting the distribution ratio according to the first average response time, the second average response time, and a fluctuation threshold includes:
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 distribution ratio is as follows:
wherein p isiFor the allocation proportion of the current period, pi-1Is the distribution proportion of the previous period, t is the first average response time, tavgΔ t is the fluctuation threshold for the second average response time.
Optionally, the adjusting the distribution ratio according to the first average response time, the second average response time, and a fluctuation threshold includes:
when the first average response time is smaller than the difference between the second average response time and the fluctuation threshold, the calculation formula of the adjusted distribution ratio is as follows:
wherein p isiFor the allocation proportion of the current period, pi-1Is the distribution proportion of the previous period, t is the first average response time, tavgΔ t is the fluctuation threshold for the second average response time.
Optionally, the adjusting the distribution ratio according to the first average response time, the second average response time, and a fluctuation threshold includes:
when the first average response time is equal to or less than the sum of the second average response time and the fluctuation threshold value, and the first average response time is equal to or greater than the difference between the second average response time and the fluctuation threshold value, the distribution ratio is not adjusted.
Optionally, the method further comprises:
when the adjusted distribution ratio is larger than 1, correcting the distribution ratio to be 1;
optionally, the method further comprises:
when the adjusted distribution ratio is less than 0, the distribution ratio is corrected to 0.
In a second aspect, the present application provides a cargo list generating apparatus, including:
the acquisition module is used for acquiring a plurality of goods list requests sent by a plurality of client terminals;
the processing module is used for distributing the cargo list request to a first interface or a second interface according to a distribution proportion, the first interface is used for feeding back a personalized cargo list to the client terminal, and the second interface is used for feeding back a default cargo list to the client terminal; and generating a goods list through the first interface or the second interface, and returning the goods list to the client terminal.
Optionally, the processing module is further configured to:
acquiring first average response time of the first interface and second average response time of the first interface in the previous period according to a preset period;
and adjusting the distribution ratio according to the first average response time, the second average response time and a fluctuation threshold value.
Optionally, the processing module is specifically configured to:
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 distribution ratio is as follows:
wherein p isiFor the allocation proportion of the current period, pi-1Is the distribution proportion of the previous period, t is the first average response time, tavgΔ t is the fluctuation threshold for the second average response time.
Optionally, the processing module is specifically configured to:
when the first average response time is smaller than the difference between the second average response time and the fluctuation threshold, the calculation formula of the adjusted distribution ratio is as follows:
wherein p isiFor the allocation proportion of the current period, pi-1Is the distribution proportion of the previous period, t is the first average response time, tavgΔ t is the fluctuation threshold for the second average response time.
Optionally, the processing module is specifically configured to:
when the first average response time is equal to or less than the sum of the second average response time and the fluctuation threshold value, and the first average response time is equal to or greater than the difference between the second average response time and the fluctuation threshold value, the distribution ratio is not adjusted.
Optionally, the processing module is specifically configured to:
when the adjusted distribution ratio is larger than 1, correcting the distribution ratio to be 1;
when the adjusted distribution ratio is less than 0, the distribution ratio is corrected to 0.
In a third aspect, the present application provides a server, comprising: a memory and a processor;
the memory is used for storing program instructions; the processor is configured to call program instructions in the memory to perform the method for generating a list of goods in any one of the possible designs of the first aspect and the first aspect.
In a fourth aspect, the present application provides a readable storage medium, in which a computer program is stored, and when the computer program is executed by at least one processor of a server, the server executes the method for generating a list of goods in any one of the possible designs of the first aspect and the first aspect.
In a fifth aspect, the present application provides a computer program product comprising a computer program which, when executed by at least one processor of a server, causes the server to perform the method for generating a list of items in any one of the possible designs of the first aspect and the first aspect.
According to the cargo list generation method, a plurality of cargo list requests are received at one moment; distributing the cargo list request to a first interface or a second interface according to the distribution proportion, calling the first interface to generate a cargo list by the cargo list request distributed to the first interface, and calling the second interface to generate the cargo list by the cargo list request distributed to the second interface; the generated goods list is fed back to the corresponding client terminal, so that the first interface is called as much as possible on the premise of ensuring the feedback efficiency of the goods list request, and the effect of user experience is improved.
Drawings
In order to more clearly illustrate the technical solutions in the present application or the prior art, the drawings needed for the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic view of a second killing scenario according to an embodiment of the present application;
fig. 2 is a flowchart of a cargo list generation method according to an embodiment of the present application;
fig. 3 is a flowchart of a cargo list generation method according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a cargo list generation method and apparatus according to an embodiment of the present application;
fig. 5 is a schematic hardware structure diagram of a server according to an embodiment of the present application.
Detailed Description
To make the purpose, technical solutions and advantages of the present application clearer, the technical solutions in the present application will be clearly and completely described below with reference to the drawings in the present application, and it is obvious that the described embodiments are some, but not all embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims of the present application and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged where appropriate. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope herein.
The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
Also, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context indicates otherwise.
It will be further understood that the terms "comprises," "comprising," "includes" and/or "including," when used in this specification, specify the presence of stated features, steps, operations, elements, components, items, species, and/or groups, but do not preclude the presence, or addition of one or more other features, steps, operations, elements, components, items, species, and/or groups thereof.
The terms "or" and/or "as used herein are to be construed as inclusive or meaning 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 ". An exception to this definition will occur only when a combination of elements, functions, steps or operations are inherently mutually exclusive in some way.
In the promotion activities of the online shopping platform, second killing activities are often carried out. When the second killing is active, the customer can determine the second killing goods by checking the goods list, so that the customer can select to purchase the needed goods. In this process, the client terminal may request the server for the item list by sending an item 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 client to view. If the server feeds back the slowness of the goods list to the client terminal in the process, the client experience of the client in the second killing activity is seriously influenced.
In order to solve the above problems, the present application provides a cargo list generation method. In this application, the server may be preset with a first interface and a second interface. When the server receives a cargo list request sent by the client terminal, the server can feed back the cargo list to the client terminal by calling the first interface or the second interface. 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 which are interested by the client. Wherein the second interface is a cache interface. When the server calls the second interface, the server returns a default list of goods stored in the cache.
Because of the second kill activity, clients typically send item list requests to the server more intensively and frequently. Thus, when the server receives a large number of item list requests at one time, the server may assign a portion of the item list requests to the first interface and another portion of the item list requests to the second interface according to the assignment proportion.
The second interface is a cache interface, and the calling speed is high. The second interface is a personalized interface, and the calling speed of the second interface is slow. Therefore, in order to ensure the response efficiency of the client terminal, the server may periodically adjust the allocation ratio. The adjustment of the distribution proportion can avoid network congestion caused by too many client terminals calling the first interface, thereby ensuring the response efficiency of the client terminals.
The technical solution of the present application will be described in detail below with specific examples. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments.
Fig. 1 is a schematic view illustrating a second killing scenario according to an embodiment of the present application. The customer may request the listing of goods by sending the customer to the service. After the server obtains the cargo list request, an obtaining list can be generated according to the cargo list request. The server may feed back the acquisition list to the client terminal. The customer may participate in the second kill activity by viewing the list of customers.
In the present application, a server is used as an execution subject, and the cargo list generation method of the following embodiment is executed. Specifically, the execution body may be a hardware device of the server, or a software application in the server, or a computer-readable storage medium on which the software application implementing the following embodiment is installed, or code of the software application implementing the following embodiment.
Fig. 2 shows a flowchart of a cargo list generation method according to an embodiment of the present application. On the basis of the embodiment shown in fig. 1, as shown in fig. 2, with a server as an execution subject, the method of this embodiment may include the following steps:
s101, a plurality of goods list requests sent by a plurality of client terminals are obtained.
In this embodiment, since the second killing activity is usually performed, the client will concentrate the parameters and frequently request the server to obtain the goods list. Thus, the server may receive multiple item list requests at one time. Each item list request may correspond to a client terminal. The goods list request is a request for viewing the goods list from the server by the client terminal. All or part of the second kill may be included in the list of goods.
And S102, distributing the cargo list request to a first interface or a second interface according to the distribution proportion, wherein the first interface is used for feeding back the personalized cargo list to the client terminal, and the second interface is used for feeding back the default cargo list to the client terminal.
In this embodiment, the server may allocate the cargo list request to the first interface or the second interface according to the allocation ratio. Wherein the cargo list request assigned to the first interface will invoke the first interface to generate the cargo list. The cargo list request assigned to the second interface will invoke the second interface to generate the cargo list.
The first interface is a personalized interface. When the server invokes the first interface, the server may request the cargo client information via the cargo list. The customer information may include a customer account number and a customer representation. The server may match goods that may be of interest to the client from the list of goods that are deactivated this second time based on the client representation and form a list of goods. The items in the list of items are typically items that the customer would like to purchase. However, in this process, the server needs to complete the matching of the goods according to the client image, and therefore, a certain processing time is required. Thus, when the server receives a large number of request for the list of items at one time, the server may be out of time to process, resulting in network congestion.
Wherein the second interface is a cache interface. The server may have a default list of items pre-stored in the cache. When the server calls the second interface, the server can directly acquire the default goods list and feed back the default goods list to the client terminal. When the server calls the second interface, the processing efficiency of the server is high.
Wherein the allocation proportion 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 distribution ratio is between 0 and 1. For example, when the allocation proportion is P, the number of the cargo list requests acquired by the server at one time is N, and at this time, the server randomly selects N × P cargo list requests from the N cargo list requests to be allocated to the first interface. And the server distributes the cargo list requests except the N x P cargo list requests to the second interface. The server can also adjust the distribution proportion periodically to adapt to the change of the quantity of the cargo list requests received by the server and ensure the response efficiency of the cargo list requests.
S103, a goods list is generated through the first interface or the second interface, and the goods list is returned to the client terminal.
In this embodiment, after the server completes the allocation of the cargo list request, the server may call the first interface or the second interface to generate the cargo list. And the server feeds the generated goods list back to the corresponding client terminal.
According to the cargo list generation method, the server receives a plurality of cargo list requests at one moment. The server may assign the cargo list request to the first interface or the second interface according to the assignment proportion. The cargo list request assigned to the first interface will invoke the first interface to generate the cargo list. The cargo list request assigned to the second interface will invoke the second interface to generate the cargo list. And the server feeds the generated goods list back to the corresponding client terminal. According to the method and the device, the goods list request is distributed to the first interface or the second interface according to the distribution proportion, on the premise that the feedback efficiency of the goods list request is guaranteed, the first interface is called as much as possible, and user experience is improved.
Fig. 3 is a flowchart illustrating a cargo list generation method according to an embodiment of the present application. On the basis of the embodiments shown in fig. 1 and fig. 2, as shown in fig. 3, with a server as an execution subject, the method for calculating the allocation ratio in this embodiment may include the following steps:
s201, according to a preset period, obtaining first average response time of a first interface and second average response time of the first interface in the previous period.
In this embodiment, the server may periodically adjust the distribution ratio according to a preset period. When entering the current cycle, the server may obtain a first average response time of the first interface in the previous cycle. The first average response time may represent the cargo list requests received by the server in the previous cycle and the feedback of the cargo list requests. The server may also count a second average response time of the first interface from the beginning of use until the current period.
In one example, the second average response time may be a time threshold that is empirically set by an administrator. When the first average response time is greater than the time threshold, the server may determine that the call efficiency of the first interface is slow, and the allocation proportion of the first interface needs to be reduced, thereby reducing the call. When the first average response time is smaller than the time threshold, the server may increase the call efficiency of the first interface, and may appropriately increase the allocation ratio of the first interface, thereby increasing the call.
S202, adjusting the distribution proportion according to the first average response time, the second average response time and the fluctuation threshold value.
In this embodiment, the server may determine whether it is reasonable for the server to invoke the first interface by a difference between the first average response time and the second average response time. For example, when the first average response time is much longer than the second average response time, the call strength of the first interface is already higher than the average level, and a problem of low feedback efficiency may occur. At this time, the distribution ratio needs to be reduced. For another example, when the first average response time is much shorter than the second average response time, the call strength of the first interface is low, and the allocation ratio can be increased appropriately.
Wherein the fluctuation threshold is used to determine whether the variation of the first average response time is within an 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 may 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 may determine that the first average response time is much less than the second average response time.
In one example, when the first average response time is greater than the sum of the second average response time and the fluctuation threshold, i.e., t > tavgAt + Δ t, the calculation formula of the adjusted distribution ratio is:
wherein p isiFor the allocation proportion of the current period, pi-1The distribution ratio of the previous period, t is the first average response time, tavgFor the second average response time, Δ t is the fluctuation threshold.
In one example, the first average response time is less than the difference between the second average response time and the fluctuation threshold, i.e., t < tavgAt Δ t, the calculation formula of the adjusted distribution ratio is:
wherein p isiFor the allocation proportion of the current period, pi-1The distribution ratio of the previous period, t is the first average response time, tavgFor the second average response time, Δ t is the fluctuation threshold.
In one example, the first average response time is equal to or less than the sum of the second average response time and the fluctuation threshold, and the first average response time is equal to or greater than the difference between the second average response time and the fluctuation threshold, i.e., tavg-Δt≤t≤tavgAt + Δ t, it may be determined that the variation of the first average threshold is within the normal range, at which time the distribution ratio is not adjusted.
In one example, when the adjusted distribution ratio is larger than 1, the modified distribution ratio is 1.
In one example, when the adjusted distribution ratio is smaller than 0, the modified distribution ratio is 0.
According to the cargo list generation method, the server can obtain the first average response time of the first interface in the previous period. The server may also count a second average response time of the first interface from the beginning of use until the current period. The server may adjust the allocation ratio according to the first average response time, the second average response time, and the fluctuation threshold. In the method and the device, the distribution proportion can be dynamically changed by periodically adjusting the distribution proportion, so that the feedback efficiency of the cargo list request is maintained at a good level.
Fig. 4 shows a schematic structural diagram of a cargo list generating device according to an embodiment of the present application, and as shown in fig. 4, a cargo list generating device 10 according to this embodiment is used to implement an operation corresponding to a server in any one of the method embodiments described above, where the cargo list generating device 10 according to this embodiment includes:
the obtaining module 11 is configured to obtain a plurality of cargo list requests sent by a plurality of client terminals.
And the processing module 12 is configured to allocate the cargo list request to a first interface or a second interface according to the allocation proportion, where the first interface is configured to feed back the personalized cargo list to the client terminal, and the second interface is configured to feed back the default cargo list to the client terminal. And generating a goods list through the first interface or the second interface, and returning the goods list to the client terminal.
In one example, the processing module is further configured to:
and acquiring first average response time of the first interface and second average response time of the first interface in the previous period according to the preset period.
And adjusting the distribution ratio according to the first average response time, the second average response time and the fluctuation threshold value.
In one example, the processing module is specifically configured to:
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 distribution ratio is as follows:
wherein p isiFor the allocation proportion of the current period, pi-1The distribution ratio of the previous period, t is the first average response time, tavgFor the second average response time, Δ t is the fluctuation threshold.
In one example, the processing module is specifically configured to:
when the first average response time is smaller than the difference between the second average response time and the fluctuation threshold, the calculation formula of the adjusted distribution ratio is as follows:
wherein p isiFor the allocation proportion of the current period, pi-1The distribution ratio of the previous period, t is the first average response time, tavgFor the second average response time, Δ t is the fluctuation threshold.
In one example, the processing module is specifically configured to:
and when the first average response time is less than or equal to the sum of the second average response time and the fluctuation threshold value and the first average response time is greater than or equal to the difference between the second average response time and the fluctuation threshold value, the distribution proportion is not adjusted.
In one example, the processing module is specifically configured to:
when the adjusted distribution ratio is larger than 1, the modified distribution ratio is 1.
In one example, the processing module is specifically configured to:
when the adjusted distribution ratio is smaller than 0, the modified distribution ratio is 0.
The cargo list generating device 10 provided in the embodiment of the present application may implement the above method embodiment, and for specific implementation principles and technical effects, reference may be made to the above method embodiment, which is not described herein again.
Fig. 5 shows a hardware structure diagram of a server provided in an embodiment of the present application. As shown in fig. 5, the server 20 is configured to implement the operation corresponding to the server in any of the above method embodiments, where the server 20 of this embodiment may include: memory 21, processor 22 and communication interface 24.
A memory 21 for storing a computer program. The Memory 21 may include a Random Access Memory (RAM), a Non-Volatile Memory (NVM), at least one disk Memory, a usb disk, a removable hard disk, a read-only Memory, a magnetic disk or an optical disk.
A processor 22 for executing the computer program stored in the memory to implement the cargo list generating method in the above-described embodiments. Reference may be made in particular to the description relating to the method embodiments described above. The Processor 22 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present invention may be embodied directly in a hardware processor, or in a combination of the hardware and software modules within the processor.
Alternatively, the memory 21 may be separate or integrated with the processor 22.
When memory 21 is a separate device from processor 22, server 20 may also include 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, an Extended ISA (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, the buses in the figures of the present application are not limited to only one bus or one type of bus.
The communication interface 24 may be connected to the processor 21 via a bus 23. The processor 22 may control the communication interface 24 to enable interaction with the client terminal.
The server provided in this embodiment may be used to execute the above cargo list generating method, and the implementation manner and the technical effect thereof are similar, and this embodiment is not described herein again.
The present application also provides a computer-readable storage medium, in which a computer program is stored, and the computer program is used for implementing the methods provided by the above-mentioned various embodiments when being executed by a processor.
The computer-readable storage medium may be a computer storage medium or a communication medium. Communication media includes any medium that facilitates transfer of a computer program from one place to another. Computer storage media may be any available media that can be accessed by a general purpose or special purpose computer. For example, a computer readable storage medium is coupled to the processor such that the processor can read information from, and write information to, the computer readable storage medium. Of course, the computer readable storage medium may also be integral to the processor. The processor and the computer-readable storage medium may reside in an Application Specific Integrated Circuit (ASIC). Additionally, the ASIC may reside in a client device. Of course, the processor and the computer-readable storage medium may also reside as discrete components in a communication device.
In particular, the computer-readable storage medium may be implemented by any type of volatile or non-volatile Memory device or 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. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
The present application also provides a computer program product comprising a computer program stored in a computer readable storage medium. The computer program can be read by at least one processor of the device from a computer-readable storage medium, and execution of the computer program by the at least one processor causes the device to implement the methods provided by the various embodiments described above.
Embodiments of the present application further provide a chip, where the chip includes a memory and a processor, where the memory is used to store a computer program, and the processor is used to call and run the computer program from the memory, so that a device in which the chip is installed executes the method in the above various possible embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, a division of modules is merely a division of logical functions, and an actual implementation may have another division, for example, a plurality of modules may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or modules, and may be in an electrical, mechanical or other form.
Wherein the modules may be physically separated, e.g. mounted at different locations of one device, or mounted on different devices, or distributed over multiple network elements, or distributed over multiple processors. The modules may also be integrated, for example, in the same device, or in a set of codes. The respective modules may exist in the form of hardware, or may also exist in the form of software, or may also be implemented in the form of software plus hardware. The method and the device can select part or all of the modules according to actual needs to achieve the purpose of the scheme of the embodiment.
When the respective modules are implemented as integrated modules in the form of software functional modules, they may be stored in a computer-readable storage medium. The software functional module is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) or a processor to execute some steps of the methods according to the embodiments of the present application.
It should be understood that, although the respective steps in the flowcharts in the above-described embodiments are sequentially shown as indicated by arrows, the steps are not necessarily performed sequentially as indicated by the arrows. The steps are not performed in the exact order shown and may be performed in other orders unless explicitly stated herein. Moreover, at least some of the steps in the figures may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, in different orders, and may be performed alternately or at least partially with respect to other steps or sub-steps of other steps.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same. Although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: it is also possible to modify the solutions described in the previous embodiments or to substitute some or all of them with equivalents. And the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.
Claims (10)
1. A method for generating a list of items, the method comprising:
acquiring a plurality of goods list requests sent by a plurality of client terminals;
according to the distribution proportion, the goods list request is distributed to a first interface or a second interface, the first interface is used for feeding back a personalized goods list to the client terminal, and the second interface is used for feeding back a default goods list to the client terminal;
and generating a goods list through the first interface or the second interface, and returning the goods list to the client terminal.
2. The method of claim 1, further comprising:
acquiring first average response time of the first interface and second average response time of the first interface in the previous period according to a preset period;
and adjusting the distribution ratio according to the first average response time, the second average response time and a fluctuation threshold value.
3. The method of claim 2, wherein the adjusting the distribution ratio based on the first average response time, the second average response time, and a fluctuation threshold comprises:
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 distribution ratio is as follows:
wherein p isiFor the allocation proportion of the current period, pi-1Is the distribution proportion of the previous period, t is the first average response time, tavgΔ t is the fluctuation threshold for the second average response time.
4. The method of claim 2, wherein the adjusting the distribution ratio based on the first average response time, the second average response time, and a fluctuation threshold comprises:
when the first average response time is smaller than the difference between the second average response time and the fluctuation threshold, the calculation formula of the adjusted distribution ratio is as follows:
wherein p isiFor the distribution proportion of the current period, pi-1 is the distribution proportion of the previous period, t is the first average response time, tavgΔ t is the fluctuation threshold for the second average response time.
5. The method of claim 2, wherein the adjusting the distribution ratio based on the first average response time, the second average response time, and a fluctuation threshold comprises:
when the first average response time is equal to or less than the sum of the second average response time and the fluctuation threshold value, and the first average response time is equal to or greater than the difference between the second average response time and the fluctuation threshold value, the distribution ratio is not adjusted.
6. The method according to any one of claims 2-5, further comprising:
when the adjusted distribution ratio is larger than 1, the distribution ratio is corrected to 1.
7. The method according to any one of claims 2-5, further comprising:
when the adjusted distribution ratio is less than 0, the distribution ratio is corrected to 0.
8. An apparatus for generating a list of items, the apparatus comprising:
the acquisition module acquires a plurality of goods list requests sent by a plurality of client terminals;
the processing module is used for distributing the cargo list request to a first interface or a second interface according to a distribution proportion, the first interface is used for feeding back a personalized cargo list to the client terminal, and the second interface is used for feeding back a default cargo list to the client terminal; and generating a goods list through the first interface or the second interface, and returning the goods list to the client terminal.
9. A server, characterized in that the server comprises: a memory, a processor;
the memory is used for storing a computer program; the processor is configured to implement the cargo list generation method of any one of claims 1-6 in accordance with the computer program stored in the memory.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, is adapted to carry out the cargo list generation method according to any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111126784.9A CN113869976A (en) | 2021-09-26 | 2021-09-26 | Cargo list generation method and device, server and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111126784.9A CN113869976A (en) | 2021-09-26 | 2021-09-26 | Cargo list generation method and device, server and readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113869976A true CN113869976A (en) | 2021-12-31 |
Family
ID=78994177
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111126784.9A Pending CN113869976A (en) | 2021-09-26 | 2021-09-26 | Cargo list generation method and device, server and readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113869976A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104301439A (en) * | 2014-11-13 | 2015-01-21 | 北京国双科技有限公司 | Load balancing method, device and system |
CN108475390A (en) * | 2015-10-19 | 2018-08-31 | 德满维股份有限公司 | For generating and the expansible system and method for service recommendation |
CN109190004A (en) * | 2018-08-30 | 2019-01-11 | 焦点科技股份有限公司 | A method of search complexity is reduced to cope with excess load searching request based on specific policy |
CN110324411A (en) * | 2019-06-18 | 2019-10-11 | 平安普惠企业管理有限公司 | A kind of service shunting method and device |
CN111144968A (en) * | 2018-11-06 | 2020-05-12 | 北京嘀嘀无限科技发展有限公司 | System and method for distributing service requests |
-
2021
- 2021-09-26 CN CN202111126784.9A patent/CN113869976A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104301439A (en) * | 2014-11-13 | 2015-01-21 | 北京国双科技有限公司 | Load balancing method, device and system |
CN108475390A (en) * | 2015-10-19 | 2018-08-31 | 德满维股份有限公司 | For generating and the expansible system and method for service recommendation |
CN109190004A (en) * | 2018-08-30 | 2019-01-11 | 焦点科技股份有限公司 | A method of search complexity is reduced to cope with excess load searching request based on specific policy |
CN111144968A (en) * | 2018-11-06 | 2020-05-12 | 北京嘀嘀无限科技发展有限公司 | System and method for distributing service requests |
CN110324411A (en) * | 2019-06-18 | 2019-10-11 | 平安普惠企业管理有限公司 | A kind of service shunting method and device |
Non-Patent Citations (2)
Title |
---|
CHRIS XIAO CAI等: "Load balancing and dynamic scaling of cache storage against zipfian workloads", 《2014 IEEE INTERNATIONAL CONFERENCE ON COMMUNICATIONS (ICC)》, 28 August 2014 (2014-08-28), pages 4208 - 4214 * |
李炫曦: "云服务的监管***设计及状态预警研究", 《中国优秀硕士学位论文全文数据库 信息科技辑》, no. 09, 15 September 2019 (2019-09-15), pages 139 - 150 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6541877B2 (en) | Method and apparatus for delivering media file | |
US20190333011A1 (en) | Order processing system, method, and device | |
CN108306874B (en) | Service interface access current limiting method and device | |
CN107682576A (en) | Client's inlet wire distribution method, system, computer equipment and storage medium | |
CN110764872A (en) | Automatic tax declaring method and system based on cloud service architecture and related equipment | |
CN113225437B (en) | Telephone calling-out method, calling-out device, electronic equipment and storage medium | |
CN111092814B (en) | Service handling request message distribution method and equipment | |
CN115334082A (en) | Load balancing method, device, computer equipment, storage medium and product | |
CN113015116B (en) | Dynamic quota method and device based on flow prediction | |
US10423627B2 (en) | Server for assigning ranks to users and method therefor | |
CN111798167A (en) | Warehouse replenishment method and device | |
CN113869976A (en) | Cargo list generation method and device, server and readable storage medium | |
CN108647801A (en) | Predict the method and device of account hot spot | |
CN111131375B (en) | Interface service acquisition method, device, computer equipment and storage medium | |
CN109067817B (en) | Media content flow distribution method and device, electronic equipment and server | |
CN111160991B (en) | PDB advertisement flow optimization method and device, storage medium and electronic equipment | |
US11474849B2 (en) | Distribution of applications among machines in a cloud | |
CN110676843B (en) | Power generation distribution method and device, computer equipment and storage medium | |
CN113553203A (en) | Request processing method, device, server and storage medium | |
CN112187667A (en) | Data downloading method, device, equipment and storage medium | |
CN110673931A (en) | Distributed calculation method for document synthesis, document synthesis system and control device thereof | |
CN113537669B (en) | Object processing method and device | |
CN115242723B (en) | Cross-system current limiting method and device | |
CN116954907A (en) | Edge resource allocation method, device, equipment and computer readable storage medium | |
CN109241053B (en) | Identification code allocation method, device and server |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |