CN115278786A - Service access method, device, electronic equipment and storage medium - Google Patents

Service access method, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN115278786A
CN115278786A CN202210663247.6A CN202210663247A CN115278786A CN 115278786 A CN115278786 A CN 115278786A CN 202210663247 A CN202210663247 A CN 202210663247A CN 115278786 A CN115278786 A CN 115278786A
Authority
CN
China
Prior art keywords
priority
service access
access request
service
queue
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
Application number
CN202210663247.6A
Other languages
Chinese (zh)
Inventor
郭国峰
许宏珍
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Huayun Information System Co ltd
Original Assignee
Shenzhen Huayun Information System Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shenzhen Huayun Information System Co ltd filed Critical Shenzhen Huayun Information System Co ltd
Priority to CN202210663247.6A priority Critical patent/CN115278786A/en
Publication of CN115278786A publication Critical patent/CN115278786A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/16Central resource management; Negotiation of resources or communication parameters, e.g. negotiating bandwidth or QoS [Quality of Service]
    • H04W28/24Negotiating SLA [Service Level Agreement]; Negotiating QoS [Quality of Service]

Abstract

The embodiment of the invention relates to a service access method, a device, electronic equipment and a storage medium, wherein the method comprises the following steps: receiving a service access request, wherein the service access request carries a service type requested to be accessed; determining the priority of the service access request according to the service type, and adding the service access request into a corresponding priority queue according to the priority, wherein different priority queues are used for storing service access requests with different priorities; and acquiring the service access request from the priority queue to execute service access operation. Therefore, the set priority can be more reasonable, and the user experience is improved.

Description

Service access method, device, electronic equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a service access method, a service access device, electronic equipment and a storage medium.
Background
With the rapid development of the mobile internet, a user may send a service access request to a server of a wireless network before performing a service. But since channel resources in the wireless network are limited. Therefore, after the server receives the service access request, it needs to allocate corresponding priority to the service, and preferentially allocate limited channel resources to the service with higher priority.
In the prior art, different types of services cannot be distinguished, and users sending service access requests cannot be distinguished, so that differentiated services cannot be provided for different users and different types of services, thereby causing unreasonable priority setting of service access and influencing user experience.
Disclosure of Invention
In view of this, in order to solve the technical problem that the priority setting of service access in the prior art is unreasonable and user experience is affected, embodiments of the present invention provide a service access method, an apparatus, an electronic device, and a storage medium.
In a first aspect, an embodiment of the present invention provides a service access method, where the method includes:
receiving a service access request, wherein the service access request carries a service type requested to be accessed;
determining the priority of the service access request according to the service type, and adding the service access request into a corresponding priority queue according to the priority, wherein different priority queues are used for storing service access requests with different priorities;
and acquiring the service access request from the priority queue to execute service access operation.
In a possible embodiment, the determining the priority of the service access request according to the service type includes:
searching a preset priority table by taking the service type as a keyword, wherein the priority table comprises the corresponding relation between the service type and the priority;
and determining the priority of the service access request according to the searched priority corresponding to the keyword.
In a possible implementation manner, the service access request further carries a priority coefficient set by a user for the service access request;
the determining the priority of the service access request according to the searched priority corresponding to the keyword includes:
setting the priority coefficient and the searched priority corresponding to the keyword;
and determining the priority of the service access request according to the operation result.
In a possible implementation manner, the adding the service access request to the corresponding priority queue according to the priority includes:
if two or more priority queues corresponding to the priorities exist, selecting one priority queue from the two or more corresponding priority queues;
and adding the service access request to the selected priority queue.
In one possible embodiment, the selecting one priority queue from two or more corresponding priority queues includes:
selecting a priority queue meeting preset conditions from two or more corresponding priority queues, wherein the preset conditions comprise: the number of service access requests in the priority queue is the smallest or the priority queue is ranked the first.
In one possible embodiment, the obtaining the service access request from the priority queue includes:
polling each priority queue in turn according to the sequence of the priority queues;
and acquiring the service access request from the polled priority queue.
In a second aspect, an embodiment of the present invention provides a service access apparatus, where the apparatus includes:
the receiving module is used for receiving a service access request, and the service access request carries a service type requested to be accessed;
a determining module, configured to determine a 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, where different priority queues are used to store service access requests of different priorities;
and the acquisition module is used for acquiring the service access request from the priority queue so as to execute service access operation.
In one possible embodiment, the determining module comprises:
the searching unit is used for searching a preset priority table by taking the service type as a keyword, wherein the priority table comprises the corresponding relation between the service type and the priority;
and the determining unit is used for determining the priority of the service access request according to the searched priority corresponding to the keyword.
In a possible implementation manner, the service access request further carries a priority coefficient set by a user for the service access request;
the determining unit is specifically configured to:
setting the priority coefficient and the searched priority corresponding to the keyword for operation;
and determining the priority of the service access request according to the operation result.
In one possible embodiment, the determining module includes:
a selecting unit, configured to select one priority queue from two or more corresponding priority queues if two or more priority queues corresponding to the priorities exist;
and the adding unit is used for adding the service access request to the selected priority queue.
In a possible implementation, the selection unit is specifically configured to:
selecting a priority queue meeting preset conditions from two or more corresponding priority queues, wherein the preset conditions comprise that: the number of service access requests in the priority queue is the smallest or the priority queue is ranked the first.
In a possible implementation manner, the obtaining module is specifically configured to:
polling each priority queue in turn according to the sequence of the priority queues;
and acquiring the service access request from the polled priority queue.
In a third aspect, an embodiment of the present invention provides an electronic device, including: a processor and a memory, the processor being configured to execute a service access program stored in the memory to implement the service access method of any one of the first aspect.
In a fourth aspect, an embodiment of the present invention provides a storage medium, where the storage medium stores one or more programs, and the one or more programs are executable by one or more processors to implement the service access method according to any one of the first aspects.
According to the technical scheme provided by the embodiment of the invention, the service access request is received, and the service access request carries the service type requested to be accessed. Then, the priority of the service access request can be determined according to the service type, the service access request is added to the corresponding priority queue according to the priority, and the service access request is obtained from the priority queue so as to execute the service access operation. Compared with the prior art, the method distinguishes the service types, sets the corresponding priority according to the service types, and adds the corresponding priority queues. Therefore, the set priority is more reasonable, and the user experience is improved.
Drawings
Fig. 1 is a flowchart of an embodiment of a service access method according to an embodiment of the present invention;
fig. 2 is a flowchart of another embodiment of a service access method according to an embodiment of the present invention;
fig. 3 is a flowchart of another embodiment of a service access method according to an embodiment of the present invention;
fig. 4 is a block diagram of an embodiment of a service access apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. 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 invention.
The service access method provided by the present invention is further explained with specific embodiments in conjunction with the drawings, and the embodiments do not limit the embodiments of the present invention.
Referring to fig. 1, a flowchart of an embodiment of a service access method according to an embodiment of the present invention is provided. As shown in fig. 1, the method may include the steps of:
step 101, receiving a service access request, where the service access request carries a service type requested to be accessed.
Because different services have different service types and different requirements for network resources, the priority of the service access is further influenced, and therefore when a user sends the service access request to a server, the service access request can carry the service type of the request access.
In the embodiment of the invention, the server can receive the service access request sent by the user, and the accessed service type can be analyzed from the service access request.
Step 102, determining the priority of the service access request according to the service type, and adding the service access request into a corresponding priority queue according to the priority, wherein different priority queues are used for storing service access requests with different priorities.
In one embodiment, when the service type is a very urgent type, such as real-time service like voice call, the highest priority (7 ≦ priority ≦ 10) may be set, corresponding to the first priority queue; when the service type is of a relatively urgent type, for example, a certain webpage and other buffer services are opened, a higher priority (4 is less than or equal to priority < 7) can be set, and the higher priority corresponds to a second priority queue; when the service type is a non-urgent type, for example, a reserved service such as reserved download, a lower priority (0 ≦ priority < 4) may be set, corresponding to the third priority queue.
In another embodiment, a method similar to four-quadrant management can be used to divide the priority queue corresponding to the service type.
When the service type belongs to an emergency and important type, the highest level priority (7.5 is more than or equal to the priority and less than or equal to 10) can be set, and the priority corresponds to a first priority queue; when the service type is an urgent but unimportant type, a higher priority (5 is less than or equal to the priority < 7.5) can be set, corresponding to the second priority queue; when the service type is of a non-urgent but important type, the priority of a general level (2.5 is less than or equal to the priority < 5) can be set, and the priority corresponds to a third priority queue; when the service type is of a non-urgent but important type, a lower level priority (0 < priority < 2.5) may be set, corresponding to the fourth priority queue.
It should be noted that the dividing manner and the value of the two priority queues are only examples, and may be set by a designer according to actual requirements, which is not limited by the present invention.
Each priority and its corresponding priority queue may be in a one-to-one or one-to-many relationship.
As can be seen from the above description, the server may 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.
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 is explained in the following through the embodiments shown in fig. 2 and fig. 3, and will not be detailed here.
And 103, acquiring a service access request from the priority queue to execute service access operation.
In the embodiment of the invention, the server can poll each priority queue in turn according to the sequencing of the priority queues and obtain the service access request from the polled priority queue.
So far, the description about the flow shown in fig. 1 is completed.
As can be seen from the process shown in fig. 1, in the technical solution provided in the embodiment of the present invention, by receiving a service access request, the service access request carries a service type requested to be accessed. Then, the priority of the service access request can be determined according to the service type, the service access request is added to the corresponding priority queue according to the priority, and the service access request is obtained from the priority queue so as to execute the service access operation. Compared with the prior art, the method distinguishes the service types, sets the corresponding priority according to the service types, and adds the corresponding priority queues. Therefore, the set priority is more reasonable, and the user experience is improved.
Referring to fig. 2, a flowchart of another embodiment of a service access method according to an embodiment of the present invention is provided. The flow shown in fig. 2 is based on the flow shown in fig. 1, and specifically describes how to determine the priority of the service access request according to the service type. As shown in fig. 2, the method may include the steps of:
step 201, receiving a service access request, where the service access request carries a service type requested to be accessed.
For the detailed description of step 201, reference may be made to the related description of step 101 in the embodiment of fig. 1, which is not repeated herein.
Step 202, a preset priority table is searched by taking the service type as a keyword, wherein the priority table comprises the corresponding relation between the service type and the priority.
Step 203, determining the priority of the service access request according to the searched priority corresponding to the keyword.
Step 202 and step 203 are described collectively below:
the server may look up a preset priority table with the service type as a keyword, where the priority table includes a correspondence between the service type and the priority.
Table 1 below provides an example of a priority table for an embodiment of the present invention.
TABLE 1
Type of service Priority level
Service type A 9
Service type B 8
Service type C 5
Service type D 3
Taking the service access request received in step 201, where the service access request carries the service type requested to be accessed as service type a, as an example, the server may look up table 1 with service type a as a keyword, may find that the priority corresponding to service type a is 9, and use 9 as the priority of the service access request.
In an embodiment, the service access request may further carry a priority coefficient set by the user for the service access request.
Based on the priority coefficient, the server can perform setting operation on the priority coefficient and the searched priority corresponding to the keyword; and then determining the priority of the service access request according to the operation result.
Based on the above example, if the priority coefficient set for the service access request by the user carried in the service access request is 0.9, after the priority corresponding to the service type a is found to be 9, the priority coefficient can be multiplied by 0.9 and 9, the operation result is 8.1, and 8.1 can be used as the priority of the service access request.
Therefore, differentiated services can be provided for different users and different types of services, more reasonable priority is set for service access, and user experience is improved.
It should be noted that the multiplication given above is only an example of the setting operation, and the setting operation can be specifically performed by a designer or a user according to actual requirements, and the present invention is not limited to this.
And 204, adding the service access requests into corresponding priority queues according to the priorities, wherein different priority queues are used for storing the service access requests with different priorities.
Step 205, obtaining the service access request from the priority queue to execute the service access operation.
For the detailed description of step 204 and step 205, reference may be made to the related description of step 102 and step 103 in the embodiment of fig. 1, and details are not repeated here.
So far, the description about the flow shown in fig. 2 is completed.
As can be seen from the flow shown in fig. 2, in the technical solution provided in the embodiment of the present invention, a preset priority table is searched by using a service type as a keyword, where the priority table includes a correspondence between the service type and a priority; and determining the priority of the service access request according to the searched priority corresponding to the keyword. Therefore, the priority set for the service type can be more reasonable, and the user experience is improved.
Referring to fig. 3, a flowchart of another service access method according to an embodiment of the present invention is shown. The flow shown in fig. 3 is based on the flow shown in fig. 1, and specifically describes how to add the service access request to the corresponding priority queue according to the priority. As shown in fig. 3, the method may include the steps of:
step 301, receiving a service access request, where the service access request carries a service type requested to be accessed.
Step 302, determining the priority of the service access request according to the service type.
For the detailed description of step 301 and step 302, refer to the related description of step 101 and step 102 in the embodiment of fig. 1, and are not described herein again.
Step 303, if there are two or more priority queues corresponding to the priorities, selecting a priority queue from the two or more corresponding priority queues. Wherein, different priority queues are used for storing service access requests with different priorities.
Step 304, adding the service access request to the selected priority queue.
Step 303 and step 304 are described collectively below:
in the embodiment of the present invention, if there are two or more priority queues corresponding to priorities, one priority queue may be selected from the two or more corresponding priority queues. The service access request may then be added to the selected priority queue.
Further, the selection of a priority queue from two or more corresponding priority queues may be achieved by the following process:
and selecting a priority queue meeting a preset condition from two or more corresponding priority queues.
Optionally, the priority queue with the least number of service access requests in the priority queue is selected from two or more corresponding priority queues.
Alternatively, the priority queue with the highest ranking from among the two or more corresponding priority queues is selected.
Therefore, the priority queue for storing the service access request can be flexibly adjusted by combining the congestion condition of service processing under the condition of not changing the priority value, so that the service access request is processed in time.
Step 305, obtaining the service access request from the priority queue to execute the service access operation.
For the detailed description of step 305, refer to the related description of step 103 in the embodiment of fig. 1, which is not repeated herein.
So far, the description about the flow shown in fig. 3 is completed.
As can be seen from the process shown in fig. 3, according to the technical solution provided in the embodiment of the present invention, if there are two or more priority queues corresponding to priorities, one priority queue is selected from the two or more corresponding priority queues, and the service access request is added to the selected priority queue. The priority queue of the service access request stored by the service request can be flexibly adjusted, so that the service access request can be processed in time, and the user experience is improved.
Corresponding to the embodiment of the service access method, the invention also provides an embodiment of a service access device.
Referring to fig. 4, a block diagram of an embodiment of a service access apparatus according to an embodiment of the present invention is provided.
As shown in fig. 4, the apparatus includes:
a receiving module 41, configured to receive a service access request, where the service access request carries a service type requested to be accessed;
a determining module 42, configured to determine a 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, where different priority queues are used to store service access requests with different priorities;
an obtaining module 43, configured to obtain the service access request from the priority queue to perform a service access operation.
In a possible embodiment, said determination module 42 comprises (not shown in the figures):
the searching unit is used for searching a preset priority table by taking the service type as a keyword, wherein the priority table comprises the corresponding relation between the service type and the priority;
and the determining unit is used for determining the priority of the service access request according to the searched priority corresponding to the keyword.
In a possible implementation manner, the service access request further carries a priority coefficient set by a user for the service access request;
the determining unit is specifically configured to:
setting the priority coefficient and the searched priority corresponding to the keyword;
and determining the priority of the service access request according to the operation result.
In a possible embodiment, said determination module 42 comprises (not shown in the figures):
a selecting unit, configured to select one priority queue from two or more corresponding priority queues if two or more priority queues corresponding to the priorities exist;
and the adding unit is used for adding the service access request to the selected priority queue.
In a possible implementation, the selection unit is specifically configured to:
selecting a priority queue meeting preset conditions from two or more corresponding priority queues, wherein the preset conditions comprise: the number of service access requests in the priority queue is the smallest or the priority queue is ranked the first.
In a possible implementation, the obtaining module 43 is specifically configured to:
polling each priority queue in turn according to the sequence of the priority queues;
and acquiring the service access request from the polled priority queue.
Fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, where the electronic device 500 shown in fig. 5 includes: at least one processor 501, memory 502, at least one network interface 504, and a user interface 503. The various components in the electronic device 500 are coupled together by a bus system 505. It is understood that the bus system 505 is used to enable connection communications between these components. The bus system 505 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are labeled as bus system 505 in FIG. 5.
The user interface 503 may include, among other things, a display, a keyboard or a pointing device (e.g., a mouse, trackball), a touch pad or a touch screen, among others.
It is to be understood that the memory 502 in embodiments of the present invention may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The non-volatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash Memory. The volatile Memory may be a Random Access Memory (RAM) which serves as an external cache. By way of illustration and not limitation, many forms of RAM are available, such as Static random access memory (Static RAM, SRAM), dynamic Random Access Memory (DRAM), synchronous Dynamic random access memory (Synchronous DRAM, SDRAM), double Data Rate Synchronous Dynamic random access memory (ddr Data Rate SDRAM, ddr SDRAM), enhanced Synchronous SDRAM (ESDRAM), synchlink DRAM (SLDRAM), and Direct Rambus RAM (DRRAM). The memory 502 described herein is intended to comprise, without being limited to, these and any other suitable types of memory.
In some embodiments, memory 502 stores elements, executable units or data structures, or a subset thereof, or an expanded set thereof as follows: an operating system 5021 and application programs 5022.
The operating system 5021 includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, and is used for implementing various basic services and processing hardware-based tasks. The application programs 5022 include various application programs such as a Media Player (Media Player), a Browser (Browser), etc., for implementing various application services. A program for implementing the method according to the embodiment of the present invention may be included in the application program 5022.
In the embodiment of the present invention, by calling a program or an instruction stored in the memory 502, specifically, a program or an instruction stored in the application 5022, the processor 501 is configured to execute the method steps provided by the method embodiments, for example, including:
receiving a service access request, wherein the service access request carries a service type requested to be accessed;
determining the priority of the service access request according to the service type, and adding the service access request into corresponding priority queues according to the priority, wherein different priority queues are used for storing service access requests with different priorities;
and acquiring the service access request from the priority queue to execute service access operation.
The method disclosed by the above embodiments of the present invention may be applied to the processor 501, or implemented by the processor 501. The processor 501 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 501. The Processor 501 may be a general-purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, or discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software elements in the decoding processor. The software elements may be located in ram, flash, rom, prom, or eprom, registers, among other storage media that are well known in the art. 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 method in combination with the hardware.
It is to be understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof. For a hardware implementation, the Processing units may be implemented within one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), general purpose processors, controllers, micro-controllers, microprocessors, other electronic units designed to perform the functions described herein, or a combination thereof.
For a software implementation, the techniques described herein may be implemented by means of units performing the functions described herein. The software codes may be stored in a memory and executed by a processor. The memory may be implemented within the processor or external to the processor.
The electronic device provided in this embodiment may be the electronic device shown in fig. 5, and may execute all steps of the service access method shown in fig. 1 to 3, so as to achieve the technical effect of the service access method shown in fig. 1 to 3, and for brevity, refer to the related description of fig. 1 to 3, which is not described herein again.
The embodiment of the invention also provides a storage medium (computer readable storage medium). The storage medium herein stores one or more programs. Among others, storage media may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as read-only memory, flash memory, a hard disk, or a solid state disk; the memory may also comprise a combination of memories of the kind described above.
When the one or more programs in the storage medium are executable by the one or more processors, the service access method executed on the electronic device side is implemented.
The processor is used for executing the service access program stored in the memory to realize the following steps of the service access method executed on the electronic equipment side:
receiving a service access request, wherein the service access request carries a service type requested to be accessed;
determining the priority of the service access request according to the service type, and adding the service access request into a corresponding priority queue according to the priority, wherein different priority queues are used for storing service access requests with different priorities;
and acquiring the service access request from the priority queue to execute service access operation.
Those of skill would further appreciate that the various illustrative components and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the components and steps of the various examples have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied in hardware, a software module executed by a processor, or a combination of the two. A software module may reside in Random Access Memory (RAM), memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The above-mentioned embodiments, objects, technical solutions and advantages of the present invention are further described in detail, it should be understood that the above-mentioned embodiments are only examples of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (10)

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 to be accessed;
determining the priority of the service access request according to the service type, and adding the service access request into a corresponding priority queue according to the priority, wherein different priority queues are used for storing service access requests with different priorities;
and acquiring the service access request from the priority queue to execute service access operation.
2. The method of claim 1, wherein the prioritizing the service access requests according to the service type comprises:
searching a preset priority table by taking the service type as a keyword, wherein the priority table comprises a corresponding relation between the service type and the priority;
and determining the priority of the service access request according to the searched priority corresponding to the keyword.
3. The method of claim 2, wherein the service access request further carries a priority coefficient set by a user for the service access request;
the determining the priority of the service access request according to the searched priority corresponding to the keyword includes:
setting the priority coefficient and the searched priority corresponding to the keyword;
and determining the priority of the service access request according to the operation result.
4. The method of claim 1, wherein the adding the service access request to the corresponding priority queue according to the priority comprises:
if two or more priority queues corresponding to the priorities exist, selecting one priority queue from the two or more corresponding priority queues;
and adding the service access request to the selected priority queue.
5. The method of claim 4, wherein selecting a priority queue from two or more of the corresponding priority queues comprises:
selecting a priority queue meeting preset conditions from two or more corresponding priority queues, wherein the preset conditions comprise: the number of service access requests in the priority queue is the smallest or the priority queue is ranked the first.
6. The method of claim 1, wherein the obtaining the service access request from the priority queue comprises:
polling each priority queue in turn according to the sequence of the priority queues;
and acquiring the service access request from the polled priority queue.
7. A service access apparatus, characterized in that the apparatus comprises:
the receiving module is used for receiving a service access request, and the service access request carries a service type requested to be accessed;
a determining module, configured to determine a 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, where different priority queues are used to store service access requests of different priorities;
and the acquisition module is used for acquiring the service access request from the priority queue so as to execute service access operation.
8. The apparatus of claim 7, wherein the determining module comprises:
the searching unit is used for searching a preset priority table by taking the service type as a keyword, wherein the priority table comprises the corresponding relation between the service type and the priority;
and the determining unit is used for determining the priority of the service access request according to the searched priority corresponding to the keyword.
9. An electronic device, comprising: a processor and a memory, the processor being configured to execute a service access program stored in the memory to implement the service access method of any one of claims 1 to 6.
10. A storage medium storing one or more programs, the one or more programs being executable by one or more processors to implement the service access method of any one of claims 1 to 6.
CN202210663247.6A 2022-06-08 2022-06-08 Service access method, device, electronic equipment and storage medium Pending CN115278786A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210663247.6A CN115278786A (en) 2022-06-08 2022-06-08 Service access method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210663247.6A CN115278786A (en) 2022-06-08 2022-06-08 Service access method, device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115278786A true CN115278786A (en) 2022-11-01

Family

ID=83759780

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210663247.6A Pending CN115278786A (en) 2022-06-08 2022-06-08 Service access method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115278786A (en)

Similar Documents

Publication Publication Date Title
CN105791254B (en) Network request processing method and device and terminal
CN110943934A (en) Service request processing method, system, terminal and readable storage medium
CN110830604B (en) DNS scheduling method and device
CN114490566B (en) Cluster data migration method and device, computer equipment and storage medium
CN111435354A (en) Data export method and device, storage medium and electronic equipment
CN110851987B (en) Method, apparatus and storage medium for predicting calculated duration based on acceleration ratio
CN111444015A (en) Server control method and device, computer equipment and storage medium
US9690859B2 (en) Transmitting information based on reading speed
CN110633900A (en) Virtual resource allocation method and device and electronic equipment
CN110489356B (en) Information processing method, information processing device, electronic equipment and storage medium
CN115278786A (en) Service access method, device, electronic equipment and storage medium
CN114266357A (en) Federal learning model construction method and device, central server and client
CN110569114B (en) Service processing method, device, equipment and storage medium
CN111930505A (en) Data resource management method and system for big data platform, server and medium
WO2010084479A2 (en) A system and method for enhancing performance of computer applications
CN110209466B (en) Resource allocation method, resource allocation device and storage medium
CN112015529A (en) Data task scheduling method, system, electronic device and storage medium
CN111552548A (en) Task processing method and device, electronic equipment and machine-readable storage medium
CN114338386B (en) Network configuration method and device, electronic equipment and storage medium
CN112667368A (en) Task data processing method and device
CN107291864B (en) Searching method and device and electronic equipment
CN114490719A (en) Data query method and device, electronic equipment and storage medium
CN113468442A (en) Resource bit flow distribution method, computing device and computer storage medium
CN112182454A (en) Webpage optimization method and device, storage medium and electronic equipment
CN112685192A (en) Data acquisition method and device, client and computer readable storage medium

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
CB02 Change of applicant information

Address after: 9th Floor, Block A, Shenzhen National Engineering Laboratory Building, No. 20, Gaoxin South 7th Road, High-tech Zone Community, Yuehai Street, Nanshan District, Shenzhen, Guangdong 518000

Applicant after: Shenzhen Huayun Information System Technology Co.,Ltd.

Address before: 9th Floor, Block A, Shenzhen National Engineering Laboratory Building, No. 20, Gaoxin South 7th Road, High-tech Zone Community, Yuehai Street, Nanshan District, Shenzhen, Guangdong 518000

Applicant before: Shenzhen Huayun Information System Co.,Ltd.

CB02 Change of applicant information