Service access method, device, electronic device and storage medium
By determining the priority according to the service type and adding it to the priority queue, the problem of unreasonable service access priority setting in the existing technology is solved and the user experience is improved.
Patent Information
- Application Number
- CN202210663247.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-08
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2042-06-08
AI Technical Summary
In the existing technology, the priority setting of service access is unreasonable, which affects the user experience because it is impossible to distinguish between different types of services and users who send service access requests.
By receiving the service access request, determine the priority according to the service type, add it to the corresponding priority queue, use the preset priority table and priority coefficient to perform calculations, and select the appropriate priority queue to perform the service access operation. .
It realizes differentiated services for different types of businesses and users, sets more reasonable priorities, and improves user experience.
Smart Images

Figure CN115278786B
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to the field of computer technology, and in particular to a service access method, device, electronic device, and storage medium. Background Art
[0002] With the rapid development of mobile Internet, users can send service access requests to the server of the wireless network before executing services. However, since the channel resources in the wireless network are limited, after receiving the service access request, the server needs to assign corresponding priorities to the services and allocate limited channel resources to the services with higher priorities.
[0003] In the prior art, different types of services are not differentiated, and users who send service access requests are also not differentiated. Therefore, it is impossible to provide differentiated services for different users and different types of services, resulting in unreasonable setting of service access priorities, which affects user experience. Summary of the invention
[0004] In view of this, in order to solve the technical problem in the prior art that the service access priority setting is unreasonable and affects the user experience, the embodiments of the present invention provide a service access method, device, electronic device and storage medium.
[0005] In a first aspect, an embodiment of the present invention provides a service access method, the method comprising:
[0006] receiving a service access request, wherein the service access request carries a service type requested for access;
[0007] Determine the priority of the service access request according to the service type, and add the service access request to a corresponding priority queue according to the priority, wherein different priority queues are used to store service access requests of different priorities;
[0008] The service access request is obtained from the priority queue to perform a service access operation.
[0009] In a possible implementation manner, determining the priority of the service access request according to the service type includes:
[0010] Using the service type as a keyword, searching a preset priority table, wherein the priority table includes a correspondence between service types and priorities;
[0011] The priority of the service access request is determined according to the found priority corresponding to the keyword.
[0012] In a possible implementation manner, the service access request further carries a priority coefficient set by a user for the service access request;
[0013] The determining the priority of the service access request according to the priority corresponding to the keyword found includes:
[0014] Performing a setting operation on the priority coefficient and the priority corresponding to the keyword found;
[0015] The priority of the service access request is determined according to the calculation result.
[0016] In a possible implementation manner, adding the service access request to a corresponding priority queue according to the priority includes:
[0017] If there are two or more priority queues corresponding to the priority level, select a priority queue from the two or more corresponding priority queues;
[0018] The service access request is added to the selected priority queue.
[0019] In a possible implementation, selecting a priority queue from two or more corresponding priority queues includes:
[0020] A priority queue that meets a preset condition is selected from two or more corresponding priority queues, wherein the preset condition includes: the number of service access requests in the priority queue is the least, or the priority queue is ranked the highest.
[0021] In a possible implementation manner, obtaining the service access request from the priority queue includes:
[0022] According to the order of the priority queues, poll each priority queue in turn;
[0023] The service access request is obtained from the polled priority queue.
[0024] In a second aspect, an embodiment of the present invention provides a service access device, the device comprising:
[0025] A receiving module, configured to receive a service access request, wherein the service access request carries a service type requested for access;
[0026] a determination module, configured to determine the priority of the service access request according to the service type, and add the service access request to a corresponding priority queue according to the priority, wherein different priority queues are used to store service access requests of different priorities;
[0027] The acquisition module is used to acquire the service access request from the priority queue to perform a service access operation.
[0028] In a possible implementation, the determining module includes:
[0029] A search unit, used to search a preset priority table using the service type as a keyword, wherein the priority table includes a correspondence between the service type and the priority;
[0030] A determination unit is used to determine the priority of the service access request according to the found priority corresponding to the keyword.
[0031] In a possible implementation manner, the service access request further carries a priority coefficient set by a user for the service access request;
[0032] The determining unit is specifically used for:
[0033] Performing a setting operation on the priority coefficient and the priority corresponding to the keyword found;
[0034] The priority of the service access request is determined according to the calculation result.
[0035] In a possible implementation, the determining module includes:
[0036] A selection unit, configured to select a priority queue from the two or more corresponding priority queues if there are two or more priority queues corresponding to the priority level;
[0037] The adding unit is used to add the service access request to the selected priority queue.
[0038] In a possible implementation manner, the selection unit is specifically configured to:
[0039] A priority queue that meets a preset condition is selected from two or more corresponding priority queues, wherein the preset condition includes: the number of service access requests in the priority queue is the least, or the priority queue is ranked the highest.
[0040] In a possible implementation, the acquisition module is specifically used to:
[0041] According to the order of the priority queues, poll each priority queue in turn;
[0042] The service access request is obtained from the polled priority queue.
[0043] In a third aspect, an embodiment of the present invention provides an electronic device, including: a processor and a memory, wherein the processor is used to execute a service access program stored in the memory to implement the service access method described in any one of the first aspects.
[0044] In a fourth aspect, an embodiment of the present invention provides a storage medium, wherein the storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the service access method described in any one of the first aspects.
[0045] The technical solution provided by the embodiment of the present invention receives a service access request, which carries the service type requested for access. Then, the priority of the service access request can be determined according to the service type, and the service access request can be added to the corresponding priority queue according to the priority, and the service access request can be obtained from the priority queue to perform the service access operation. Compared with the prior art, this distinguishes the service type, sets the corresponding priority according to the service type, and then adds the corresponding priority queue. In this way, the set priority is more reasonable, which improves the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] Figure 1 A flow chart of an embodiment of a service access method provided by an embodiment of the present invention;
[0047] Figure 2 A flowchart of another service access method provided by an embodiment of the present invention;
[0048] Figure 3 A flow chart of another service access method provided by an embodiment of the present invention;
[0049] Figure 4 A block diagram of an embodiment of a service access device provided by an embodiment of the present invention;
[0050] Figure 5 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0051] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0052] The service access method provided by the present invention is further explained below with reference to specific embodiments in conjunction with the accompanying drawings, and the embodiments do not constitute a limitation on the embodiments of the present invention.
[0053] See also Figure 1 , is a flow chart of an embodiment of a service access method provided by an embodiment of the present invention. Figure 1 As shown, the method may include the following steps:
[0054] Step 101: Receive a service access request, where the service access request carries a service type requested for access.
[0055] Since different services have different service types and different requirements for network resources, which further affect the priority of the service access, when the user sends the service access request to the server, the service access request may carry the service type requested for access.
[0056] In the embodiment of the present invention, the server may receive a service access request sent by a user, and may parse the service access request to obtain the type of service to be accessed.
[0057] Step 102: Determine the priority of the service access request according to the service type, and add the service access request to the corresponding priority queue according to the priority, wherein different priority queues are used to store service access requests of different priorities.
[0058] In one embodiment, when the service type is extremely urgent, such as real-time services such as voice calls, the highest level of priority (7≤priority≤10) can be set, corresponding to the first priority queue; when the service type is relatively urgent, such as buffering services such as opening a web page, a higher level of priority (4≤priority<7) can be set, corresponding to the second priority queue; when the service type is not urgent, such as scheduled services such as scheduled downloading, a lower level of priority (0≤priority<4) can be set, corresponding to the third priority queue.
[0059] In another embodiment, a method similar to the four-quadrant management may be used to divide the priority queues corresponding to the service types.
[0060] When the service type is urgent and important, the highest priority level (7.5≤priority≤10) can be set, corresponding to the first priority queue; when the service type is urgent but not important, a higher priority level (5≤priority<7.5) can be set, corresponding to the second priority queue; when the service type is not urgent but important, a general priority level (2.5≤priority<5) can be set, corresponding to the third priority queue; when the service type is not urgent but important, a lower priority level (0≤priority<2.5) can be set, corresponding to the fourth priority queue.
[0061] It should be noted that the division method and values of the two priority queues given above are only examples, which can be specifically set by designers according to actual requirements, and the present invention does not limit this.
[0062] The relationship between each priority and its corresponding priority queue may be one-to-one or one-to-many.
[0063] It can be seen from the above description that the server can determine the priority of the service access request according to the service type, and add the service access request to the corresponding priority queue according to the priority.
[0064] As for how to determine the priority of the service access request according to the service type and add the service access request to the corresponding priority queue according to the priority, the following is described through Figure 2 and Figure 3 The embodiment shown is used for illustration only and will not be described in detail here.
[0065] Step 103: Obtain a service access request from the priority queue to perform a service access operation.
[0066] In the embodiment of the present invention, the server may poll each priority queue in sequence according to the order of the priority queues, and obtain the service access request from the polled priority queue.
[0067] So far, completed Figure 1 A description of the process shown.
[0068] pass Figure 1It can be seen from the process shown that the technical solution provided by the embodiment of the present invention receives a service access request, which carries the service type requested for access. Then the priority of the service access request can be determined according to the service type, and the service access request can be added to the corresponding priority queue according to the priority, and the service access request can be obtained from the priority queue to perform the service access operation. Compared with the prior art, this distinguishes the service type, sets the corresponding priority according to the service type, and then adds it to the corresponding priority queue. In this way, the set priority is more reasonable, which improves the user experience.
[0069] See also Figure 2 , is a flow chart of another service access method provided by an embodiment of the present invention. Figure 2 The process shown in the above Figure 1 Based on the process shown in FIG. 1 , a specific description is given of how to determine the priority of a service access request according to the service type. Figure 2 As shown, the method may include the following steps:
[0070] Step 201: Receive a service access request, where the service access request carries a service type requested for access.
[0071] For a detailed description of step 201, please refer to the above Figure 1 The relevant description of step 101 in the embodiment will not be repeated here.
[0072] Step 202: Search a preset priority table using the service type as a keyword. The priority table includes a correspondence between service types and priorities.
[0073] Step 203: Determine the priority of the service access request according to the found priority corresponding to the keyword.
[0074] The following is a unified description of step 202 and step 203:
[0075] The server may use the service type as a keyword to search a preset priority table, where the priority table includes a correspondence between service types and priorities.
[0076] Table 1 below is an example of a priority table provided in an embodiment of the present invention.
[0077] Table 1
[0078] Business Type Priority Business Type A 9 Business Type B 8 Business Type C 5 Business Type D 3
[0079] Taking the service access request received in step 201, where the service type of the service requested to be accessed is service type A as an example, the server can search Table 1 with service type A as the keyword, and find that the priority corresponding to service type A is 9, and use 9 as the priority of the service access request.
[0080] In one embodiment, the service access request may also carry a priority coefficient set by the user for the service access request.
[0081] Based on this, the server may perform a setting operation on the priority coefficient and the priority corresponding to the keyword found; and then determine the priority of the service access request according to the operation result.
[0082] Based on the above example, if the priority coefficient set by the user for the service access request carried in the above service access request is 0.9, after finding that the priority corresponding to service type A is 9, 0.9 can be multiplied by 9, and the result of the operation is 8.1, and 8.1 can be used as the priority of the service access request.
[0083] In this way, differentiated services can be provided for different users and different types of services, more reasonable priorities can be set for service access, and user experience can be improved.
[0084] It should be noted that the multiplication given above is only an example of setting the operation, which can be specifically set by designers or users according to actual requirements, and the present invention does not impose any limitation on this.
[0085] Step 204: Add the service access request to the corresponding priority queue according to the priority, wherein different priority queues are used to store service access requests of different priorities.
[0086] Step 205: Obtain a service access request from the priority queue to perform a service access operation.
[0087] For detailed description of step 204 and step 205, please refer to the above Figure 1 The relevant descriptions of step 102 and step 103 in the embodiment are not repeated here.
[0088] So far, completed Figure 2 A description of the process shown.
[0089] pass Figure 2 It can be seen from the process shown that the technical solution provided by the embodiment of the present invention uses the service type as a keyword to search the preset priority table, which includes the correspondence between the service type and the priority; and determines the priority of the service access request according to the priority corresponding to the keyword. In this way, the priority set for the service type can be more reasonable, which improves the user experience.
[0090] See also Figure 3 , is a flow chart of another embodiment of a service access method provided by an embodiment of the present invention. Figure 3 The process shown in the above Figure 1Based on the process shown in FIG. 1 , a specific description is given of how to add service access requests to the corresponding priority queue according to priority. Figure 3 As shown, the method may include the following steps:
[0091] Step 301: Receive a service access request, where the service access request carries a service type requested for access.
[0092] Step 302: Determine the priority of the service access request according to the service type.
[0093] For detailed description of step 301 and step 302, please refer to the above Figure 1 The relevant descriptions of step 101 and step 102 in the embodiment are not repeated here.
[0094] Step 303: If there are two or more priority queues corresponding to the priority, a priority queue is selected from the two or more corresponding priority queues, wherein different priority queues are used to store service access requests of different priorities.
[0095] Step 304: Add the service access request to the selected priority queue.
[0096] The following is a unified description of step 303 and step 304:
[0097] In the embodiment of the present invention, if there are two or more priority queues corresponding to the priority level, a priority queue may be selected from the two or more corresponding priority queues, and the service access request may then be added to the selected priority queue.
[0098] Furthermore, selecting a priority queue from two or more corresponding priority queues may be achieved through the following process:
[0099] From two or more corresponding priority queues, a priority queue that meets preset conditions is selected.
[0100] Optionally, from two or more corresponding priority queues, a priority queue having the least number of service access requests is selected.
[0101] Alternatively, from two or more corresponding priority queues, a priority queue with the highest ranking is selected.
[0102] In this way, it is possible to flexibly adjust the priority queue for storing service access requests in combination with the congestion situation of service processing without changing the priority value, so that the service access requests can be processed in a timely manner.
[0103] Step 305: Obtain a service access request from the priority queue to perform a service access operation.
[0104] For a detailed description of step 305, please refer to the above Figure 1 The relevant description of step 103 in the embodiment will not be repeated here.
[0105] So far, completed Figure 3 A description of the process shown.
[0106] pass Figure 3 It can be seen from the process shown that the technical solution provided by the embodiment of the present invention, if there are two or more priority queues corresponding to the priority, then a priority queue is selected from the two or more corresponding priority queues, and the service access request is added to the selected priority queue. Since the priority queue for storing the service access request can be flexibly adjusted, the service access request can be processed in a timely manner, thereby improving the user experience.
[0107] Corresponding to the above-mentioned embodiments of the service access method, the present invention also provides embodiments of the service access device.
[0108] See also Figure 4 , is a block diagram of an embodiment of a service access device provided in an embodiment of the present invention.
[0109] like Figure 4 As shown, the device comprises:
[0110] A receiving module 41, configured to receive a service access request, wherein the service access request carries a service type requested for access;
[0111] A determination module 42, configured to determine the priority of the service access request according to the service type, and add the service access request to a corresponding priority queue according to the priority, wherein different priority queues are used to store service access requests of different priorities;
[0112] The acquisition module 43 is used to acquire the service access request from the priority queue to perform a service access operation.
[0113] In a possible implementation, the determination module 42 includes (not shown in the figure):
[0114] A search unit, used to search a preset priority table using the service type as a keyword, wherein the priority table includes a correspondence between the service type and the priority;
[0115] A determination unit is used to determine the priority of the service access request according to the found priority corresponding to the keyword.
[0116] In a possible implementation manner, the service access request further carries a priority coefficient set by a user for the service access request;
[0117] The determining unit is specifically used for:
[0118] Performing a setting operation on the priority coefficient and the priority corresponding to the keyword found;
[0119] The priority of the service access request is determined according to the calculation result.
[0120] In a possible implementation, the determination module 42 includes (not shown in the figure):
[0121] A selection unit, configured to select a priority queue from the two or more corresponding priority queues if there are two or more priority queues corresponding to the priority level;
[0122] The adding unit is used to add the service access request to the selected priority queue.
[0123] In a possible implementation manner, the selection unit is specifically configured to:
[0124] A priority queue that meets a preset condition is selected from two or more corresponding priority queues, wherein the preset condition includes: the number of service access requests in the priority queue is the least, or the priority queue is ranked the highest.
[0125] In a possible implementation manner, the acquisition module 43 is specifically used to:
[0126] According to the order of the priority queues, poll each priority queue in turn;
[0127] The service access request is obtained from the polled priority queue.
[0128] Figure 5 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention, Figure 5 The electronic device 500 shown includes: at least one processor 501, a memory 502, at least one network interface 504 and a user interface 503. The various components in the electronic device 500 are coupled together via a bus system 505. It is understood that the bus system 505 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 505 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, the bus system 505 is not shown in FIG. Figure 5 Various buses are labeled as bus system 505 .
[0129] The user interface 503 may include a display, a keyboard or a pointing device (eg, a mouse, a trackball), a touch pad or a touch screen.
[0130] It can be understood that the memory 502 in the embodiment of the present invention can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM) and direct RAM bus random access memory (DRRAM). The memory 502 described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0131] In some implementations, the memory 502 stores the following elements, executable units or data structures, or a subset thereof, or an extended set thereof: an operating system 5021 and an application program 5022 .
[0132] The operating system 5021 includes various system programs, such as a framework layer, a core library layer, a driver layer, etc., which are used to implement various basic services and process hardware-based tasks. The application 5022 includes various application programs, such as a media player (Media Player), a browser (Browser), etc., which are used to implement various application services. The program for implementing the method of the embodiment of the present invention can be included in the application 5022.
[0133] In the embodiment of the present invention, by calling the program or instruction stored in the memory 502, specifically, the program or instruction stored in the application 5022, the processor 501 is used to execute the method steps provided by each method embodiment, for example, including:
[0134] receiving a service access request, wherein the service access request carries a service type requested for access;
[0135] Determine the priority of the service access request according to the service type, and add the service access request to a corresponding priority queue according to the priority, wherein different priority queues are used to store service access requests of different priorities;
[0136] The service access request is obtained from the priority queue to perform a service access operation.
[0137] The method disclosed in the above embodiment of the present invention can be applied to the processor 501, or implemented by the processor 501. The processor 501 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit in the processor 501 or the instruction in the form of software. The above processor 501 can be a general processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present invention can be implemented or executed. The general processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiment of the present invention can be directly embodied as a hardware decoding processor to execute, or the hardware and software units in the decoding processor can be executed. The software unit can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 502, and the processor 501 reads the information in the memory 502 and completes the steps of the above method in combination with its hardware.
[0138] It is understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, the processing unit may be implemented in one or more application specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPD), programmable logic devices (PLD), field programmable gate arrays (FPGA), general purpose processors, controllers, microcontrollers, microprocessors, other electronic units for performing the functions described in the present application, or a combination thereof.
[0139] For software implementation, the technology described herein can be implemented by a unit that performs the functions described herein. The software code can be stored in a memory and executed by a processor. The memory can be implemented in the processor or outside the processor.
[0140] The electronic device provided in this embodiment may be Figure 5 The electronic device shown in FIG. 1 may perform the following steps: Figure 1-3 All steps of the service access method in Figure 1-3 For details, please refer to the technical effect of the service access method shown in Figure 1-3 For the sake of brevity, the relevant description is not repeated here.
[0141] The embodiment of the present invention also provides a storage medium (computer-readable storage medium). The storage medium here stores one or more programs. The storage medium may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a read-only memory, a flash memory, a hard disk or a solid-state drive; the memory may also include a combination of the above-mentioned types of memory.
[0142] When one or more programs in the storage medium can be executed by one or more processors, the service access method executed on the electronic device side can be implemented.
[0143] The processor is used to execute the service access program stored in the memory to implement the following steps of the service access method performed on the electronic device side:
[0144] receiving a service access request, wherein the service access request carries a service type requested for access;
[0145] Determine the priority of the service access request according to the service type, and add the service access request to a corresponding priority queue according to the priority, wherein different priority queues are used to store service access requests of different priorities;
[0146] The service access request is obtained from the priority queue to perform a service access operation.
[0147] The professionals should further realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to the function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0148] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0149] The specific implementation methods described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation method of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A service access method, characterized in that: The method comprises: receiving a service access request, wherein the service access request carries a service type requested for access; Determine the priority of the service access request according to the service type, and add the service access request to a corresponding priority queue according to the priority, wherein different priority queues are used to store service access requests of different priorities; Determining the priority of the service access request according to the service type includes: searching a preset priority table with the service type as a keyword, the priority table including a correspondence between service types and priorities; determining the priority of the service access request according to the priority corresponding to the keyword found; The service access request also carries a priority coefficient set by a user for the service access request; Determining the priority of the service access request according to the priority corresponding to the keyword found includes: performing a setting operation on the priority coefficient and the priority corresponding to the keyword found; and determining the priority of the service access request according to the operation result; The service access request is obtained from the priority queue to perform a service access operation.
2. The method according to claim 1, characterized in that The adding the service access request to a corresponding priority queue according to the priority includes: If there are two or more priority queues corresponding to the priority level, select a priority queue from the two or more corresponding priority queues; The service access request is added to the selected priority queue.
3. The method according to claim 2, characterized in that The selecting a priority queue from two or more corresponding priority queues comprises: A priority queue that meets a preset condition is selected from two or more corresponding priority queues, wherein the preset condition includes: the number of service access requests in the priority queue is the least, or the priority queue is ranked the highest.
4. The method according to claim 1, characterized in that: The obtaining the service access request from the priority queue includes: According to the order of the priority queues, poll each priority queue in turn; The service access request is obtained from the polled priority queue.
5. A service access device, characterized in that: The device comprises: A receiving module, configured to receive a service access request, wherein the service access request carries a service type requested for access; a determination module, configured to determine the priority of the service access request according to the service type, and add the service access request to a corresponding priority queue according to the priority, wherein different priority queues are used to store service access requests of different priorities; A search unit, used to search a preset priority table using the service type as a keyword, wherein the priority table includes a correspondence between the service type and the priority; a determining unit, configured to determine the priority of the service access request according to the found priority corresponding to the keyword; The service access request also carries a priority coefficient set by a user for the service access request; Determining the priority of the service access request according to the priority corresponding to the keyword found includes: performing a setting operation on the priority coefficient and the priority corresponding to the keyword found; and determining the priority of the service access request according to the operation result; The acquisition module is used to acquire the service access request from the priority queue to perform a service access operation.
6. An electronic device, characterized in that: include: A processor and a memory, wherein the processor is used to execute a service access program stored in the memory to implement the service access method according to any one of claims 1 to 4.
7. A storage medium, characterized in that: The storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the service access method according to any one of claims 1 to 4.
