Service request queuing method, electronic device, storage medium and program product
By receiving user information and obtaining queuing levels, groups and proportions according to preset policies to queue service requests, the problem of lack of flexibility in the existing technology is solved, and system resource utilization and user experience are improved.
Patent Information
- Application Number
- CN202410660738.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-27
- Publication Date
- 2024-09-06
AI Technical Summary
In the existing technology, when a server processes a large number of user service requests, the method of queuing according to the order of arrival lacks flexibility and cannot effectively manage the request priorities of different users, resulting in low system resource utilization and poor user experience.
By receiving user information, the user's queuing level is obtained according to the preset queuing policy, and service requests are grouped and leveled into queues. The queuing queue and release policy are dynamically adjusted to ensure that advanced users are processed first and improve system resource utilization.
It improves the flexibility of service request processing and system resource utilization, improving the experience of most users, while optimizing system performance by sacrificing the experience of low-level users.
Smart Images

Figure CN118612162A
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of communication technology, and in particular to a service request queuing method, electronic device, storage medium and program product. Background Art
[0002] With the development of computer technology and the diversification of application scenarios, there are more and more large-scale and high-concurrency application scenarios, such as generative artificial intelligence (AIGC), online payment, download, etc.
[0003] In the prior art, when a large number of users send service requests to a server, the server will queue the user service requests according to the order in which they arrive, thereby responding to the user service requests in an orderly manner.
[0004] However, the method of queuing according to arrival order lacks flexibility. Summary of the invention
[0005] The present disclosure provides a service request queuing method, electronic device, storage medium and program product.
[0006] According to one aspect of the present disclosure, a service request queuing method is provided, comprising:
[0007] receiving a first service request from a first user;
[0008] Obtaining user information of the first user;
[0009] Acquire a first queuing level corresponding to the first user according to the user information and a preset queuing strategy;
[0010] The first service request is queued according to the first queuing level.
[0011] According to the service request queuing method of at least one embodiment of the present disclosure, queuing the first service request according to the first queuing level includes:
[0012] Get other queue levels corresponding to other service requests;
[0013] queuing the first service request according to the first queuing level and other queuing levels corresponding to the other queuing requests,
[0014] The other service requests are requests in the queued service requests except the first service request.
[0015] According to the service request queuing method of at least one embodiment of the present disclosure, queuing the first service request according to the first queuing level and other queuing levels corresponding to the other queuing requests includes:
[0016] Get the number of requests corresponding to each queue level based on the group size and level ratio;
[0017] Acquire at least one request group according to the number of requests corresponding to each queuing level, the first queuing level, and other queuing levels corresponding to other queuing requests;
[0018] Queuing is performed according to the at least one request group.
[0019] According to the service request queuing method of at least one embodiment of the present disclosure, the packet size is preset, or the packet size is set according to the processing time of the service processing system; and / or,
[0020] The level proportion is preset, or the level proportion is set according to the service requests to be queued and the corresponding queue level.
[0021] According to the service request queuing method of at least one embodiment of the present disclosure, queuing the first service request according to the first queuing level includes:
[0022] Obtaining a first queuing queue corresponding to the first queuing level from a preset queuing queue;
[0023] adding the first service request to the first queuing queue,
[0024] The preset queuing queue is set according to the preset queuing strategy.
[0025] According to at least one embodiment of the present disclosure, the service request queuing method further includes:
[0026] The queued requests are sent to the service processing system according to a first policy.
[0027] According to at least one embodiment of the present disclosure, the service request queuing method further includes:
[0028] Obtaining the processing time of the service processing system;
[0029] The first strategy is acquired according to the processing time and the preset first time consumption.
[0030] According to another aspect of the present disclosure, an electronic device is provided, comprising: a memory storing execution instructions; a processor executing the execution instructions stored in the memory, so that the processor executes the service request queuing method of any embodiment of the present disclosure.
[0031] According to another aspect of the present disclosure, a readable storage medium is provided, wherein the readable storage medium stores execution instructions, and when the execution instructions are executed by a processor, the service request queuing method of any embodiment of the present disclosure is used to implement.
[0032] According to another aspect of the present disclosure, a computer program product is provided, including a computer program / instruction, wherein when the computer program / instruction is executed by a processor, the service request queuing method of any embodiment of the present disclosure is implemented. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] The accompanying drawings illustrate exemplary embodiments of the present disclosure and together with the description serve to explain the principles of the present disclosure. These drawings are included to provide a further understanding of the present disclosure and are incorporated in and constitute a part of this specification.
[0034] Figure 1 The process of the service request queuing method provided in Embodiment 1 of the present disclosure Figure 1 .
[0035] Figure 2 for Figure 1 The process of performing a service request queuing method on the first service request in the service request queuing method shown in FIG. Figure 1 .
[0036] Figure 3 for Figure 1 The process of performing a service request queuing method on the first service request in the service request queuing method shown in FIG. Figure 2 .
[0037] Figure 4 for Figure 3 The flowchart shown is a method for queuing service requests according to queuing levels in a method for queuing service requests for a first service request.
[0038] Figure 5 The process of the service request queuing method provided in Embodiment 1 of the present disclosure Figure 2 .
[0039] Figure 6 The process of the service request queuing method provided in Embodiment 1 of the present disclosure Figure 3 .
[0040] Figure 7 A schematic diagram of the structure of the service request queuing device provided in Embodiment 2 of the present disclosure Figure 1 .
[0041] Figure 8 A schematic diagram of the structure of the service request queuing device provided in Embodiment 2 of the present disclosure Figure 2 . DETAILED DESCRIPTION
[0042] The present disclosure is further described in detail below in conjunction with the accompanying drawings and implementations. It is understood that the specific implementations described herein are only used to explain the relevant content, rather than to limit the present disclosure. It should also be noted that, for ease of description, only the parts related to the present disclosure are shown in the accompanying drawings.
[0043] It should be noted that, in the absence of conflict, the embodiments and features of the embodiments in the present disclosure can be combined with each other. The technical solution of the present disclosure will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0044] Unless otherwise specified, the exemplary embodiments / embodiments shown will be understood as providing exemplary features of various details of some ways in which the technical concept of the present disclosure can be implemented in practice. Therefore, unless otherwise specified, the features of the various embodiments / embodiments can be combined, separated, interchanged and / or rearranged without departing from the technical concept of the present disclosure.
[0045] The use of cross-hatching and / or shading in the accompanying drawings is generally used to make the boundaries between adjacent components clear. As such, unless otherwise specified, the presence or absence of cross-hatching or shading does not convey or indicate any preference or requirement for the specific materials, material properties, dimensions, proportions, commonalities between the components shown, and / or any other characteristics, attributes, properties, etc. of the components. In addition, in the accompanying drawings, the sizes and relative sizes of the components may be exaggerated for clarity and / or descriptive purposes. When the exemplary embodiments can be implemented differently, the specific process sequence can be performed in a different order than described. For example, two successively described processes can be performed substantially simultaneously or in an order opposite to the described order. In addition, the same figure numbers represent the same components.
[0046] When a component is referred to as being "on" or "over," "connected to," or "coupled to" another component, the component may be directly on, directly connected to, or directly coupled to the other component, or intervening components may be present. However, when a component is referred to as being "directly on," "directly connected to," or "directly coupled to" another component, there are no intervening components. For this purpose, the term "connected" may refer to a physical connection, an electrical connection, etc., with or without intervening components.
[0047] The terms used herein are for the purpose of describing specific embodiments, and are not intended to be restrictive. As used herein, unless the context clearly indicates otherwise, the singular forms "one (kind, person)" and "said (the)" are also intended to include plural forms. In addition, when the terms "comprise" and / or "include" and their variations are used in this specification, it is explained that there are stated features, integral bodies, steps, operations, parts, assemblies and / or their groups, but it is not excluded that there are or add one or more other features, integral bodies, steps, operations, parts, assemblies and / or their groups. It should also be noted that, as used herein, the terms "substantially", "approximately" and other similar terms are used as approximate terms and not as degree terms, so that they are used to explain the inherent deviations of the measured values, calculated values and / or the values provided that will be recognized by those of ordinary skill in the art.
[0048] The service request queuing method disclosed in the present invention may be applied to the service request queuing device disclosed in the present invention, and the service request queuing device may be configured on a server.
[0049] Combined with the following Figures 1 to 6 The service request queuing method disclosed in the present invention is described in detail.
[0050] Embodiment 1:
[0051] Figure 1 The present invention is a flowchart of a method for queuing service requests according to an embodiment of the present invention.
[0052] refer to Figure 1 The service request queuing method M100 of this embodiment includes:
[0053] Step S110: receiving a first service request from a first user.
[0054] Step S120: Obtain user information of the first user.
[0055] Step S130: acquiring a first queuing level corresponding to the first user according to the user information and the preset queuing strategy.
[0056] Step S140: queuing the first service request according to the first queuing level.
[0057] The service request queuing method provided by the present disclosure queues the first service request according to the first queuing level of the first user; since the first queuing level is related to the user information of the first user, queuing the service request according to the queuing level can improve flexibility, and the queuing level of malicious users can be set lower, thereby improving the experience of most users by sacrificing the experience of low-level users. This method solves the problem of lack of flexibility in the prior art method of queuing according to the arrival order.
[0058] In some embodiments of the present disclosure, the user information obtained through step S120 may include: basic information (such as gender, age, location, etc.), social data (such as activities and relationships on social media), usage data of applications using the service request queuing method (such as browsing history, search history, transaction behavior, etc.), request information (the number of requests per unit time, or the number of requests and request time, etc.) One or more.
[0059] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of user information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.
[0060] For example, in response to receiving the first service request from the user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can independently choose whether to provide user information to software or hardware such as an electronic device, application, server or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message.
[0061] As an optional but non-limiting implementation, in response to receiving the first service request from the user, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to select "agree" or "disagree" to provide the user information to the electronic device.
[0062] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet the relevant laws and regulations may also be applied to the implementation of the present disclosure.
[0063] At the same time, it can be understood that the data involved in the technical solution of the present disclosure (including but not limited to the data itself, the acquisition or use of the data) should comply with the requirements of relevant laws, regulations and relevant provisions.
[0064] In some embodiments of the present disclosure, the queue level and classification standard can be managed by a preset queue strategy. The user information (such as request information, etc.) obtained by step S120 can be directly used as the classification standard, or the processed information (such as user portrait, etc.) can be used as the classification standard; in this case, step S130 may include: firstly processing the user information to obtain the processed information; then obtaining the first queue level corresponding to the first user according to the processed information and the preset queue strategy. Among them, processing the user information can be processing the user information using a pre-trained processing model (such as a portrait model, etc.). The queue level can be set as needed, such as being set to two levels of low and high, or being set to three levels of low, medium and high, etc.
[0065] In some embodiments of the present disclosure, Figure 2 As shown, the process of queuing in step S140 may include: step S141, obtaining a first queuing queue corresponding to a first queuing level from a preset queuing queue; step S142, adding the first service request to the first queuing queue. The preset queuing queue is set according to a preset queuing strategy.
[0066] In some disclosed embodiments, the number of preset queues is the same as the number of queue levels in the queue strategy, which is a positive integer not less than 2; if the queue level includes two levels, low and high, the queues are set to two queues, low and high; if the queue level includes three levels, low, medium and high, the queues are set to low, medium and high queues, etc. Different levels of queues can use different release strategies, such as a high-level queue with a faster release speed and a low-level queue with a slower release speed.
[0067] In some embodiments of the present disclosure, queues are set according to queue strategies to support concurrent processing and facilitate management. Further, in order to improve resource utilization, such as Figure 3 As shown, step S140 may include: step S143, obtaining other queuing levels corresponding to other service requests; step S144, queuing the first service request according to the first queuing level and other queuing levels corresponding to other queuing requests. The other service requests are requests other than the first service request in the service requests to be queued.
[0068] In some embodiments of the present disclosure, service requests that are not added to the queue are service requests to be queued. The method of obtaining other queue levels through step S143 is similar to the method of obtaining the first queue level through steps S120 and S130, and will not be repeated here. Figure 4As shown, the specific process of queuing through step S144 may include: step S1441, obtaining the number of requests corresponding to each queuing level according to the group size and the level ratio; step S1442, obtaining at least one request group according to the number of requests corresponding to each queuing level, the first queuing level and other queuing levels corresponding to other queuing requests; step S1443, queuing according to at least one request group.
[0069] In some embodiments of the present disclosure, taking the group size of 10 and the level proportion of 50% high level, 30% middle level and 20% low level as an example, the request group obtained according to step S1442 may include 5 requests corresponding to the high level, 3 requests corresponding to the middle level and 2 requests corresponding to the low level. When the number of requests corresponding to a certain level in the service requests to be queued is less than the above number, you can directly take as many as you can, and the number of requests included in the group is less than 10. In particular, it is also possible to form a request group according to the request time. At this time, when forming a request group, the corresponding number of requests is extracted from the remaining requests (the requests in the service requests to be queued except the requests included in the existing request group) according to the time and queue level. In particular, if the request group is added to the queue queue in real time after the request group is formed, the remaining requests are the service requests to be queued.
[0070] In some embodiments of the present disclosure, when the number of requests included in a request group in a queue is less than the group size, if the queue level corresponding to the newly added service request is the missing part, the newly added service request can also be added to the request group. For example, when the group size is 10, and a request group includes 4 requests corresponding to the high level, 2 requests corresponding to the medium level, and 2 requests corresponding to the low level, if the newly added service request is of the high level, the newly added service request can be added to the request group. In particular, in order to prevent the service processing system from being confused due to the addition of data, the request group can also be a group outside the request group that the service processing system is processing in the queue.
[0071] In some embodiments of the present disclosure, when the product of the group size multiplied by the proportion of a certain level is not an integer, the product can be directly rounded down, and the result of rounding down can be used as the number of requests corresponding to the level; in particular, when the product of the group size multiplied by the proportion of multiple levels is not an integer, one part can be rounded down and the other part can be rounded up, so that the total number of requests corresponding to all levels is equal to the group size.
[0072] In some embodiments of the present disclosure, the group size and / or level ratio in step S1441 may be pre-set, that is, the group size and / or level ratio is fixed. In particular, in order to prevent the processing capacity of the service processing system from changing, the fixed group size (too many tasks) leading to performance degradation, increased delay or even service unavailability of the service processing system, or the fixed group size (too few tasks) leading to waste of processing capacity of the service processing system, the group size may also be adjusted in real time or periodically, at which point the group size may be set according to the processing time of the service processing system. In order to prevent the number of requests corresponding to a certain level in the queued service requests from being small, resulting in the number of requests included in the request group being less than the group size, thereby wasting the processing capacity of the service processing system, the level ratio may also be adjusted in real time or periodically, at which point the level ratio may be set according to the queued service requests and the corresponding queue level.
[0073] In some embodiments of the present disclosure, when queuing is performed through steps S143 and S144, there is only one queuing queue, and all request groups use the queuing queue for queuing, that is, step S1443 specifically adds each request group to the queuing queue for queuing. The at least one request group can be added to the queuing queue in order according to the time sequence.
[0074] Furthermore, if Figure 5 As shown, the service request queuing method provided by the present disclosure may also include:
[0075] Step S150: Send the queued requests to the service processing system according to the first strategy.
[0076] In some embodiments of the present disclosure, the first policy in step S150 is the queue release policy, which can be pre-set; for example, B requests are released when the processing speed is equal to A, and D requests are released when the processing speed is equal to C, etc. In order to prevent the performance of the service processing system from changing and the fixed first policy from causing system performance degradation or resource waste, the first policy can also be adjusted in real time or periodically. Figure 6 As shown, the service request queuing method provided by the present disclosure further includes, before step S150:
[0077] Step S160, obtaining the processing time of the service processing system.
[0078] In some embodiments of the present disclosure, the processing time in step S160 may be the processing time of a single task, or may be measured by the number of tasks processed per unit time. The processing time may be obtained in step S160 by obtaining the processing time according to the processing parameters sent by the service processing system; or may be obtained by obtaining the processing result of the service request returned by the service processing system. In particular, step S160 may adopt a sliding time window detection mode to periodically collect the tasks processed per unit time.
[0079] Step S170, obtaining a first strategy according to the processing time and a preset first time consumption.
[0080] In some embodiments of the present disclosure, a first time consumption and a benchmark strategy corresponding to the first time consumption can be preset. When the processing time is greater than the first time consumption, that is, the processing speed slows down, step S170 can slow down the release speed of the benchmark strategy according to the change rate, so that the processing time consumption is close to the first time consumption, and the first strategy is obtained; when the processing time is less than the first time consumption, that is, the processing speed is faster, step S170 can speed up the release speed of the benchmark strategy according to the change rate, so that the processing time consumption is close to the first time consumption, and the first strategy is obtained. Through the reasonable release request of the first strategy, the service processing system can focus on task processing without paying attention to how to bear pressure, thereby improving the processing efficiency of the service processing system.
[0081] In some embodiments of the present disclosure, in order to facilitate timely discovery of problems, the above-mentioned queuing process may also be monitored in real time, and the monitoring may include: one or more of the number of tasks, queuing status, and resource usage status monitoring. In order to prevent excessive waiting from being user-unfriendly, after receiving a service request, the queuing time of the service request may be determined based on the service requests to be queued including the service request, and the queuing time may be returned to the user. In particular, the queuing time may be returned to all users, and the queuing time may be returned only to users whose queuing time exceeds expectations (preset time threshold).
[0082] The service request queuing method provided by the present disclosure can be used in scenarios such as image, video, and natural language generation based on AIGC.
[0083] Figures 7 and 8 The service request queuing device of the present invention can be implemented based on a hardware implementation method using a processor.
[0084] Embodiment 2:
[0085] The embodiment of the present disclosure provides a service request queuing device.
[0086] The device may include a corresponding module for performing each or several steps in the above flowchart. Therefore, each step or several steps in the above flowchart may be performed by a corresponding module, and the device may include one or more modules in these modules. The module may be one or more hardware modules specially configured to perform the corresponding steps, or implemented by a processor configured to perform the corresponding steps, or stored in a computer-readable medium for implementation by a processor, or implemented by some combination.
[0087] Figure 7 1 is a service request queuing device 1000 that shows a hardware implementation of a processing system. The hardware can be implemented using a bus architecture. The bus architecture can include any number of interconnecting buses and bridges, depending on the specific application and overall design constraints of the hardware. The bus 1100 connects various circuits including one or more processors 1200, memory 1300 and / or hardware modules together. The bus 1100 can also connect various other circuits 1400 such as peripherals, voltage regulators, power management circuits, external antennas, etc., which are conventional techniques in the art and will not be described again.
[0088] like Figure 7 As shown, the service request queuing device according to the present disclosure may include:
[0089] The request receiving module 1010 is configured to receive a first service request from a first user.
[0090] The information acquisition module 1020 is used to acquire user information of the first user.
[0091] The level acquisition module 1030 acquires a first queuing level corresponding to the first user according to the user information and the preset queuing strategy.
[0092] The queuing module 1040 is configured to queue the first service request according to the first queuing level.
[0093] In some embodiments of the present disclosure, the queuing module 1040 may include:
[0094] The other level submodule 1041 is used to obtain other queuing levels corresponding to other service requests.
[0095] The first queuing submodule 1042 is configured to queue the first service request according to the first queuing level and other queuing levels corresponding to other queuing requests.
[0096] Among them, other service requests are requests in the queued service requests except the first service request.
[0097] The first queuing submodule 1042 includes:
[0098] The number unit 1051 is used to obtain the number of requests corresponding to each queuing level according to the group size and the level proportion.
[0099] The grouping unit 1052 is configured to obtain at least one request group according to the number of requests corresponding to each queuing level, the first queuing level, and other queuing levels corresponding to other queuing requests.
[0100] The queuing unit 1053 is used to perform queuing according to at least one request group.
[0101] In some embodiments of the present disclosure, the queuing module 1040 may also include:
[0102] The queue submodule 1043 is used to obtain a first queuing queue corresponding to the first queuing level from the preset queuing queues.
[0103] The second queuing submodule 1044 is configured to add the first service request to a first queuing queue.
[0104] Among them, the preset queuing queue is set according to the preset queuing strategy.
[0105] Furthermore, the service request queuing device provided by the present disclosure may also include:
[0106] The request sending module 1050 is used to send the queued requests to the service processing system according to the first strategy.
[0107] At this time, the service request queuing device may further include:
[0108] The time acquisition module 1060 is used to acquire the processing time of the service processing system.
[0109] The strategy acquisition module 1070 is used to acquire the first strategy according to the processing time and the preset first time consumption.
[0110] In some embodiments of the present disclosure, the process of implementing queuing through the above-mentioned modules / sub-modules / units is similar to that provided in Example 1 of the present disclosure and will not be described in detail here. Figure 8 The service request queuing device includes the structure of all the above modules / sub-modules / units. When the service request queuing device only includes some of the above modules / sub-modules / units, the structure is the same as Figure 8 The similarities shown are not repeated here one by one.
[0111] The service request queuing device provided by the present disclosure queues the first service request according to the first queuing level of the first user; since the first queuing level is related to the user information of the first user, queuing the service request according to the queuing level can improve flexibility, and the queuing level of malicious users can be set lower, thereby improving the experience of most users by sacrificing the experience of low-level users. This method solves the problem of lack of flexibility in the prior art method of queuing according to the arrival order.
[0112] The present disclosure also provides an electronic device, including: a memory, the memory storing execution instructions; and a processor or other hardware module, the processor or other hardware module executes the execution instructions stored in the memory, so that the processor or other hardware module executes the above-mentioned service request queuing method.
[0113] The present disclosure also provides a readable storage medium, in which execution instructions are stored. When the execution instructions are executed by a processor, they are used to implement the above-mentioned service request queuing method.
[0114] The present disclosure also provides a computer program product, including a computer program / instruction, which implements the above-mentioned service request queuing method when the computer program / instruction is executed by a processor.
[0115] Among them, the hardware structure adopted by the service request queuing device implemented by the hardware implementation method using a processor of the present disclosure can be implemented using a bus architecture. The bus architecture may include any number of interconnected buses and bridges, depending on the specific application and overall design constraints of the hardware. The bus connects various circuits including one or more processors, memories and / or hardware modules together. The bus may also connect various other circuits such as peripherals, voltage regulators, power management circuits, external antennas, etc.
[0116] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Component (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one connecting line is used in this figure, but it does not mean that there is only one bus or one type of bus.
[0117] Any process or method description in the flowchart or otherwise described herein can be understood as a module, fragment or portion of a code representing one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present disclosure includes other implementations, in which the functions may not be performed in the order shown or discussed, including performing the functions in a substantially simultaneous manner or in a reverse order according to the functions involved, which should be understood by a person skilled in the art of the present disclosure. The processor performs the various methods and processes described above. For example, the method implementation in the present disclosure can be implemented as a software program, which is tangibly contained in a machine-readable medium, such as a memory. In some embodiments, part or all of the software program can be loaded and / or installed via a memory and / or a communication interface. When the software program is loaded into the memory and executed by the processor, one or more steps in the method described above can be performed. Alternatively, in other embodiments, the processor can be configured to perform one of the above methods in any other appropriate manner (e.g., by means of firmware).
[0118] The logic and / or steps represented in the flowchart or otherwise described herein may be embodied in any readable storage medium for use by an instruction execution system, apparatus, or device (such as a computer-based system, a system including a processor, or other system that can fetch instructions from and execute instructions on an instruction execution system, apparatus, or device), or in combination with such instruction execution systems, apparatuses, or devices.
[0119] For the purposes of this specification, a "readable storage medium" may be any device that can contain, store, communicate, propagate or transmit a program for use with or in conjunction with an instruction execution system, device or apparatus. More specific examples of readable storage media (a non-exhaustive list) include the following: an electrical connection with one or more wirings (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and editable read-only memory (EPROM or flash memory), a fiber optic device, and a portable read-only memory (CDROM). In addition, the readable storage medium may even be paper or other suitable medium on which the program can be printed, since the program can be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering or, if necessary, processing in another suitable manner, and then stored in a memory.
[0120] It should be understood that the various parts of the present disclosure can be implemented in hardware, software, or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented in software stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0121] A person skilled in the art may understand that all or part of the steps of implementing the above-mentioned implementation method may be completed by instructing related hardware through a program, and the program may be stored in a readable storage medium, which, when executed, includes one or a combination of the steps of the implementation method.
[0122] In addition, each functional unit in each embodiment of the present disclosure may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a readable storage medium. The storage medium may be a read-only memory, a disk or an optical disk, etc.
[0123] Those skilled in the art should understand that the above embodiments are only for the purpose of clearly illustrating the present disclosure, and are not intended to limit the scope of the present disclosure. For those skilled in the art, other changes or modifications may be made based on the above disclosure, and these changes or modifications are still within the scope of the present disclosure.
Claims
1. A service request queuing method, It is characterized in that include: receiving a first service request from a first user; Obtaining user information of the first user; Acquire a first queuing level corresponding to the first user according to the user information and a preset queuing strategy; as well as The first service request is queued according to the first queuing level.
2. The service request queuing method according to claim 1, It is characterized in that The queuing the first service request according to the first queuing level includes: Obtaining other queue levels corresponding to other service requests; and queuing the first service request according to the first queuing level and other queuing levels corresponding to the other queuing requests, The other service requests are requests in the queued service requests except the first service request.
3. The service request queuing method according to claim 2, It is characterized in that The queuing the first service request according to the first queuing level and other queuing levels corresponding to the other queuing requests includes: Get the number of requests corresponding to each queue level based on the group size and level ratio; Acquire at least one request group according to the number of requests corresponding to each queuing level, the first queuing level, and other queuing levels corresponding to other queuing requests; and Queuing is performed according to the at least one request group.
4. The service request queuing method according to claim 3, It is characterized in that The packet size is preset, or the packet size is set according to a processing time of a service processing system; and / or The level proportion is preset, or the level proportion is set according to the service requests to be queued and the corresponding queue level.
5. The service request queuing method according to claim 1, It is characterized in that The queuing the first service request according to the first queuing level includes: Acquire a first queuing queue corresponding to the first queuing level from a preset queuing queue; and adding the first service request to the first queuing queue, The preset queuing queue is set according to the preset queuing strategy.
6. The service request queuing method according to any one of claims 1 to 5, It is characterized in that Also includes: The queued requests are sent to the service processing system according to a first policy.
7. The service request queuing method according to claim 6, It is characterized in that Also includes: Obtaining the processing time of the service processing system; as well as The first strategy is acquired according to the processing time and the preset first time consumption.
8. An electronic device, It is characterized in that include: A memory storing execution instructions; as well as A processor, wherein the processor executes the execution instructions stored in the memory, so that the processor executes the service request queuing method according to any one of claims 1 to 7.
9. A readable storage medium, It is characterized in that The readable storage medium stores execution instructions, which are used to implement the service request queuing method according to any one of claims 1 to 7 when executed by a processor.
10. A computer program product comprising a computer program / instructions, It is characterized in that When the computer program / instructions are executed by a processor, the service request queuing method according to any one of claims 1 to 7 is implemented.
