CN113419860A - High-concurrency verification processing method and device, computer equipment and storage medium - Google Patents
High-concurrency verification processing method and device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN113419860A CN113419860A CN202110748363.3A CN202110748363A CN113419860A CN 113419860 A CN113419860 A CN 113419860A CN 202110748363 A CN202110748363 A CN 202110748363A CN 113419860 A CN113419860 A CN 113419860A
- Authority
- CN
- China
- Prior art keywords
- verification
- servers
- request
- target server
- screening
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5083—Techniques for rebalancing the load in a distributed system
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
- G06F9/5027—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
- G06F9/505—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals considering the load
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Storage Device Security (AREA)
Abstract
The embodiment of the invention discloses a high-concurrency verification processing method and device, computer equipment and a storage medium. The method comprises the following steps: acquiring a verification request; acquiring the current processable conditions of all verification servers; screening the verification servers meeting the requirements according to the current processable conditions of all the verification servers to obtain a target server; and issuing the verification request to the target server so that the target server verifies the operation authority of the verification request. By implementing the method provided by the embodiment of the invention, high-concurrency permission verification requests can be responded in time, and the experience of users is ensured.
Description
Technical Field
The present invention relates to computers, and more particularly, to a method and an apparatus for high concurrency authentication processing, a computer device, and a storage medium.
Background
The information era service system is more and more complex, a large-scale system is often composed of a plurality of subsystems, the multi-service system adopts unified users for facilitating the use of the users, the traditional method is to construct a unified authentication center, the authentication is carried out by the authentication center, each service system and a portal carry out single sign-on, namely, the operation authority verification of all visitors about the function points of the system needs to be executed on the same server, when high concurrent authority verification occurs, namely, a large number of visitors carry out the authority verification, the processing amount of one server is limited, the authority verification request of the visitors cannot be responded in time, the serious time delay is caused, and the experience feeling of the users is influenced.
Therefore, it is necessary to design a new method for responding to a highly concurrent permission verification request in time and ensuring the experience of the user.
Disclosure of Invention
The invention aims to overcome the defects of the prior art and provides a high-concurrency verification processing method and device, a computer device and a storage medium.
In order to achieve the purpose, the invention adopts the following technical scheme: a high concurrency authentication processing method comprises the following steps:
acquiring a verification request;
acquiring the current processable conditions of all verification servers;
screening the verification servers meeting the requirements according to the current processable conditions of all the verification servers to obtain a target server;
and issuing the verification request to the target server so that the target server verifies the operation authority of the verification request.
The further technical scheme is as follows: the verification request comprises operation authority information of the terminal, and the operation authority information comprises a terminal identification number, a mechanism type where the terminal is located and information of a function point to be operated.
The further technical scheme is as follows: the processable conditions include the load condition of the authentication server and the time to respond to the request.
The further technical scheme is as follows: the screening the verification servers meeting the requirements according to the current processable conditions of all the verification servers to obtain the target server comprises the following steps:
sequencing all the verification servers according to the sequence of the load condition from small quantity to large quantity to obtain a first sequencing result;
screening the top ten verification servers in the first sequencing result, and sequencing the top ten verification servers in a sequence from short to long in response request time to obtain a second sequencing result;
and screening the first verification server in the second sorting result to obtain a target server.
The further technical scheme is as follows: the screening the verification servers meeting the requirements according to the current processable conditions of all the verification servers to obtain the target server comprises the following steps:
carrying out weighted summation on the load conditions of all the verification servers and the time of responding to the request to obtain the total value of all the verification servers;
and sequencing all the verification servers according to the sequence of the total value from small to large, and determining the first verification server to obtain the target server.
The further technical scheme is as follows: after the issuing of the verification request to the target server to verify the operation authority of the verification request by the target server, the method further includes:
obtaining a verification result fed back from the target server;
and feeding back a corresponding response to the terminal according to the verification result.
The invention also provides a high concurrency verification processing device, which comprises:
a request acquisition unit configured to acquire a verification request;
the condition acquisition unit is used for acquiring the current processable conditions of all the verification servers;
the screening unit is used for screening the verification servers meeting the requirements according to the current processable conditions of all the verification servers to obtain a target server;
and the issuing unit is used for issuing the verification request to the target server so as to enable the target server to verify the operation authority of the verification request.
The further technical scheme is as follows: the screening unit includes:
the first sequencing subunit is used for sequencing all the verification servers according to the sequence of the load condition from small quantity to large quantity so as to obtain a first sequencing result;
the second sorting subunit is used for screening the top ten verification servers in the first sorting result, and sorting the top ten verification servers in a sequence from short to long in response request time to obtain a second sorting result;
and the result screening subunit is used for screening the first verification server in the second sorting result to obtain the target server.
The invention also provides computer equipment which comprises a memory and a processor, wherein the memory is stored with a computer program, and the processor realizes the method when executing the computer program.
The invention also provides a storage medium storing a computer program which, when executed by a processor, is operable to carry out the method as described above.
Compared with the prior art, the invention has the beneficial effects that: according to the invention, the current processable conditions of all the verification servers are obtained, the verification servers meeting the requirements are screened according to the processable conditions based on the principle of load balance, the verification requests are issued to the verification servers for authentication processing, all the verification requests are not integrated in one server to execute authentication operation any more, the authentication operation can be executed in a distributed manner, high-concurrency permission verification requests can be responded in time, and the experience of users is ensured.
The invention is further described below with reference to the accompanying drawings and specific embodiments.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic view of an application scenario of a high concurrency verification processing method according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a high concurrency verification processing method according to an embodiment of the present invention;
fig. 3 is a sub-flow diagram of a high concurrency verification processing method according to an embodiment of the present invention;
fig. 4 is a sub-flowchart of a high concurrency verification processing method according to another embodiment of the present invention;
fig. 5 is a schematic flowchart of a high concurrency verification processing method according to another embodiment of the present invention;
fig. 6 is a schematic block diagram of a high concurrency authentication processing apparatus according to an embodiment of the present invention;
fig. 7 is a schematic block diagram of a screening unit of a high concurrency verification processing apparatus according to an embodiment of the present invention;
fig. 8 is a schematic block diagram of a screening unit of a high concurrency verification processing apparatus according to another embodiment of the present invention;
fig. 9 is a schematic block diagram of a high concurrency authentication processing apparatus according to another embodiment of the present invention;
FIG. 10 is a schematic block diagram of a computer device provided by an embodiment of the present invention.
Detailed Description
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, 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.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the specification of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
Referring to fig. 1 and fig. 2, fig. 1 is a schematic view of an application scenario of a high concurrency verification processing method according to an embodiment of the present invention. Fig. 2 is a schematic flowchart of a high concurrency verification processing method according to an embodiment of the present invention. The high concurrency verification processing method is applied to a server, the server performs data interaction with a verification server and a terminal, the verification server is one server in a distributed service platform, the server sends a verification request of the terminal to the verification server with a light load, so that the verification server verifies the verification request, feeds back a verification result to the server, and feeds back a corresponding response to the terminal by the server.
Fig. 2 is a schematic flowchart of a high concurrency verification processing method according to an embodiment of the present invention. As shown in fig. 2, the method includes the following steps S110 to S140.
And S110, acquiring a verification request.
In this embodiment, the verification request refers to an authentication request of an operation authority issued when the terminal requests to access a certain function point, such as a certain function on a website.
Specifically, when the terminal needs to perform a function point access of a certain system, the terminal sends an authentication request to the server.
And S120, acquiring the current processable conditions of all the verification servers.
In this embodiment, the verification request includes operation authority information of the terminal, where the operation authority information includes a terminal identification number, a mechanism type where the terminal is located, and information of a function point to be operated. The processable conditions include the load condition of the authentication server and the time to respond to the request.
A load balancer is arranged between the server and the verification server, so that the server can issue the verification request to the server meeting the requirement for authentication processing according to the principle of load balancing, the server only forwards the request and determines the verification server, heavy authentication operation is carried out by different verification servers, and the problem of verification delay caused by high concurrent verification is avoided.
S130, screening the verification servers meeting the requirements according to the current processing conditions of all the verification servers to obtain the target server.
In this embodiment, the target server refers to the authentication server that meets the requirements currently, and is also the authentication server with the lightest current load, and can respond to the current authentication request quickly.
In an embodiment, referring to fig. 3, the step S130 may include steps S131 to S133.
S131, sorting all the verification servers according to the sequence of the load conditions from small quantity to large quantity to obtain a first sorting result.
In this embodiment, the first sorting result refers to a result obtained by sorting all the authentication servers in order from a small number to a large number according to the load condition.
The priority of the load condition can avoid the condition that the operation of the authentication server is crashed due to the overload processing request.
S132, screening the top ten verification servers in the first sorting result, and sorting the top ten verification servers in a sequence from short to long in response request time to obtain a second sorting result.
In this embodiment, the second ranking result is a result obtained by ranking the top ten verification servers in the first ranking result from short to long response request time.
S133, screening the first verification server in the second sorting result to obtain a target server.
When the load condition meets the condition, screening out the verification server with the shortest response request time as a target server, comprehensively considering the load condition and the response request time, so that the loads of all the verification servers can be more balanced, and determining the verification servers under the balanced condition.
In another embodiment, referring to FIG. 4, the step S130 can include steps S131 'to S132'.
S131', the load conditions of all the verification servers and the time for responding to the request are weighted and summed to obtain the total value of all the verification servers.
In this embodiment, the total value is a result obtained by multiplying the load condition and the time of responding to the request by the corresponding weight values respectively and then summing the result.
The weighted summation can simultaneously consider the load condition and the time of responding to the request, and different weighted values are set according to different conditions, so that the influence degree of the load condition and the time of responding to the request on the feedback of the verification request is determined.
S132', sequencing all the verification servers according to the sequence from small to large of the total value, and determining the first verification server to obtain the target server.
When the total value is smaller, it indicates that the actual load condition is lighter and the time for responding to the request is shorter, that is, the authentication server can process the authentication request in time.
S140, the verification request is sent to the target server, so that the target server verifies the operation authority of the verification request.
After the target server is determined, the verification request is issued to the target server, if the current target server has a task to process, the request or the task with a high priority level is processed preferentially according to the task and the priority level of the verification request, for example, the task processed by the current target server is suspended and the verification request is processed preferentially; and if the priority level of the task processed by the current target server is higher than that of the verification request, the target server finishes processing the current task and then processes the verification request so as to ensure that the task of the target server can be executed in order.
According to the high-concurrency verification processing method, the current processable conditions of all verification servers are obtained, the verification servers meeting the requirements are screened according to the processable conditions based on the principle of load balance, the verification requests are issued to the verification servers for authentication processing, all the verification requests are not integrated in one server to execute authentication operation any more, distributed execution is realized, high-concurrency authority verification requests can be responded in time, and the experience of users is ensured.
Fig. 5 is a flowchart illustrating a high concurrency verification processing method according to another embodiment of the present invention. As shown in fig. 5, a high concurrency authentication processing method of the present embodiment includes steps S210 to S260. Steps S210 to S240 are similar to steps S110 to S140 in the above embodiments, and are not described herein again. The added steps S260 to S270 in the present embodiment are explained in detail below.
S250, obtaining a verification result fed back by the target server;
and S260, feeding back a corresponding response to the terminal according to the verification result.
And the target server verifies whether the terminal has the right to operate the corresponding function according to the ID of the terminal, the mechanism where the terminal is located and the information of the function point to be accessed, thereby forming a verification result.
In this embodiment, the function point information includes information such as an identification number and a name of the function.
After the verification result is sent to the server by the target server, when the verification result is the result of authorized operation, the server feeds back the function to be operated by the terminal to the terminal, and when the verification result is not the result of authorized operation, the server feeds back notification information which is not operable to the terminal so as to play a role of prompting.
Fig. 6 is a schematic block diagram of a high concurrency authentication processing apparatus 300 according to an embodiment of the present invention. As shown in fig. 6, the present invention further provides a high concurrency verification processing apparatus 300 corresponding to the above high concurrency verification processing method. The high concurrency authentication processing apparatus 300 includes a unit for executing the high concurrency authentication processing method, and the apparatus may be configured in a server. Specifically, referring to fig. 6, the high concurrency verification processing apparatus 300 includes a request obtaining unit 301, a situation obtaining unit 302, a screening unit 303, and an issuing unit 304.
A request acquisition unit 301 configured to acquire an authentication request; a situation acquiring unit 302, configured to acquire current processable situations of all the authentication servers; a screening unit 303, configured to screen, according to current processable conditions of all the verification servers, verification servers meeting requirements to obtain a target server; an issuing unit 304, configured to issue the verification request to the target server, so that the target server performs operation permission verification on the verification request.
In one embodiment, as shown in fig. 7, the screening unit 303 includes a first ranking sub-unit 3031, a second ranking sub-unit 3032, and a result screening sub-unit 3033.
A first ordering subunit 3031, configured to order all the verification servers in an order from a small number to a large number according to the load condition, so as to obtain a first ordering result; a second sorting subunit 3032, configured to sort out the top ten verification servers in the first sorting result, and sort the top ten verification servers in a sequence from short to long in response to the request, so as to obtain a second sorting result; and a result screening subunit 3033, configured to screen the first authentication server in the second sorting result to obtain the target server.
In another embodiment, referring to fig. 8, the filtering unit 303 includes a summing sub-unit 3034 and a total value sorting sub-unit 3035.
A summation subunit 3034, configured to perform weighted summation on the load conditions of all the authentication servers and the time for responding to the request, so as to obtain a total value of all the authentication servers; and a total value sorting subunit 3035, configured to sort all the verification servers in the order from small to large according to the total value, and determine the first verification server to obtain the target server.
Fig. 9 is a schematic block diagram of a high concurrency authentication processing apparatus 300 according to another embodiment of the present invention. As shown in fig. 9, a high concurrency verification processing apparatus 300 of the present embodiment is added with a result acquiring unit 305 and a response unit 306 on the basis of the above embodiment.
A result obtaining unit 305, configured to obtain a verification result fed back from the target server;
a response unit 306, configured to feed back a corresponding response to the terminal according to the verification result.
It should be noted that, as can be clearly understood by those skilled in the art, for the specific implementation processes of the high concurrency verification processing apparatus 300 and each unit, reference may be made to the corresponding descriptions in the foregoing method embodiments, and for convenience and brevity of description, no further description is provided herein.
A high concurrency authentication processing apparatus 300 of the above type may be implemented in the form of a computer program that can be run on a computer device as shown in fig. 10.
Referring to fig. 10, fig. 10 is a schematic block diagram of a computer device according to an embodiment of the present application. The computer device 500 may be a server, wherein the server may be an independent server or a server cluster composed of a plurality of servers.
Referring to fig. 10, the computer device 500 includes a processor 502, memory, and a network interface 505 connected by a system bus 501, where the memory may include a non-volatile storage medium 503 and an internal memory 504.
The non-volatile storage medium 503 may store an operating system 5031 and a computer program 5032. The computer programs 5032 include program instructions that, when executed, cause the processor 502 to perform a high concurrency verification processing method.
The processor 502 is used to provide computing and control capabilities to support the operation of the overall computer device 500.
The internal memory 504 provides an environment for the execution of the computer program 5032 in the non-volatile storage medium 503, and when the computer program 5032 is executed by the processor 502, the processor 502 can be enabled to execute a high concurrency verification processing method.
The network interface 505 is used for network communication with other devices. Those skilled in the art will appreciate that the configuration shown in fig. 10 is a block diagram of only a portion of the configuration relevant to the present teachings and is not intended to limit the computing device 500 to which the present teachings may be applied, and that a particular computing device 500 may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
Wherein the processor 502 is configured to run the computer program 5032 stored in the memory to implement the following steps:
acquiring a verification request; acquiring the current processable conditions of all verification servers; screening the verification servers meeting the requirements according to the current processable conditions of all the verification servers to obtain a target server; and issuing the verification request to the target server so that the target server verifies the operation authority of the verification request.
The verification request comprises operation authority information of the terminal, wherein the operation authority information comprises a terminal identification number, a mechanism type where the terminal is located and information of a function point to be operated.
The processable conditions include the load condition of the authentication server and the time to respond to the request.
In an embodiment, when the processor 502 implements the step of screening the verification servers meeting the requirement according to the current processable conditions of all the verification servers to obtain the target server, the following steps are specifically implemented:
sequencing all the verification servers according to the sequence of the load condition from small quantity to large quantity to obtain a first sequencing result; screening the top ten verification servers in the first sequencing result, and sequencing the top ten verification servers in a sequence from short to long in response request time to obtain a second sequencing result; and screening the first verification server in the second sorting result to obtain a target server.
In an embodiment, when the processor 502 implements the step of screening the verification servers meeting the requirement according to the current processable conditions of all the verification servers to obtain the target server, the following steps are specifically implemented:
carrying out weighted summation on the load conditions of all the verification servers and the time of responding to the request to obtain the total value of all the verification servers; and sequencing all the verification servers according to the sequence of the total value from small to large, and determining the first verification server to obtain the target server.
In an embodiment, after implementing the step of issuing the verification request to the target server so that the target server performs the verification of the operation right on the verification request, the processor 502 further implements the following steps:
obtaining a verification result fed back from the target server; and feeding back a corresponding response to the terminal according to the verification result.
It should be understood that in the embodiment of the present Application, the Processor 502 may be a Central Processing Unit (CPU), and the Processor 502 may also be other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, and the like. Wherein a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
It will be understood by those skilled in the art that all or part of the flow of the method implementing the above embodiments may be implemented by a computer program instructing associated hardware. The computer program includes program instructions, and the computer program may be stored in a storage medium, which is a computer-readable storage medium. The program instructions are executed by at least one processor in the computer system to implement the flow steps of the embodiments of the method described above.
Accordingly, the present invention also provides a storage medium. The storage medium may be a computer-readable storage medium. The storage medium stores a computer program, wherein the computer program, when executed by a processor, causes the processor to perform the steps of:
acquiring a verification request; acquiring the current processable conditions of all verification servers; screening the verification servers meeting the requirements according to the current processable conditions of all the verification servers to obtain a target server; and issuing the verification request to the target server so that the target server verifies the operation authority of the verification request.
The verification request comprises operation authority information of the terminal, wherein the operation authority information comprises a terminal identification number, a mechanism type where the terminal is located and information of a function point to be operated.
The processable conditions include the load condition of the authentication server and the time to respond to the request.
In an embodiment, when the processor executes the computer program to implement the step of screening the authentication servers meeting the requirements according to the current processable conditions of all the authentication servers to obtain the target server, the following steps are specifically implemented:
sequencing all the verification servers according to the sequence of the load condition from small quantity to large quantity to obtain a first sequencing result; screening the top ten verification servers in the first sequencing result, and sequencing the top ten verification servers in a sequence from short to long in response request time to obtain a second sequencing result; and screening the first verification server in the second sorting result to obtain a target server.
In an embodiment, when the processor executes the computer program to implement the step of screening the authentication servers meeting the requirements according to the current processable conditions of all the authentication servers to obtain the target server, the following steps are specifically implemented:
carrying out weighted summation on the load conditions of all the verification servers and the time of responding to the request to obtain the total value of all the verification servers; and sequencing all the verification servers according to the sequence of the total value from small to large, and determining the first verification server to obtain the target server.
In an embodiment, after the step of implementing the verification that the target server issues the verification request to the target server so that the target server performs the operation right on the verification request by executing the computer program, the processor further implements the following steps:
obtaining a verification result fed back from the target server; and feeding back a corresponding response to the terminal according to the verification result.
The storage medium may be a usb disk, a removable hard disk, a Read-Only Memory (ROM), a magnetic disk, or an optical disk, which can store various computer readable storage media.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, and that the components and steps of the examples have been described in a functional general in the foregoing description for the purpose of illustrating clearly the 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.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative. For example, the division of each unit is only one logic function division, and there may be another division manner in actual implementation. For example, various elements or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented.
The steps in the method of the embodiment of the invention can be sequentially adjusted, combined and deleted according to actual needs. The units in the device of the embodiment of the invention can be merged, divided and deleted according to actual needs. In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a storage medium. Based on such understanding, the technical solution of the present invention essentially or partially contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a terminal, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention.
While the invention has been described with reference to specific embodiments, the invention is not limited thereto, and various equivalent modifications and substitutions can be easily made by those skilled in the art within the technical scope of the invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims (10)
1. A high concurrency authentication processing method is characterized by comprising the following steps:
acquiring a verification request;
acquiring the current processable conditions of all verification servers;
screening the verification servers meeting the requirements according to the current processable conditions of all the verification servers to obtain a target server;
and issuing the verification request to the target server so that the target server verifies the operation authority of the verification request.
2. The high concurrency authentication processing method as claimed in claim 1, wherein the authentication request includes operation authority information of the terminal, and the operation authority information includes a terminal identification number, a type of organization where the terminal is located, and information of a function point to be operated.
3. The method according to claim 1, wherein the processable conditions include a load condition of the authentication server and a time for responding to the request.
4. The method according to claim 3, wherein the screening the qualified authentication servers to obtain the target server according to the current processable situations of all the authentication servers comprises:
sequencing all the verification servers according to the sequence of the load condition from small quantity to large quantity to obtain a first sequencing result;
screening the top ten verification servers in the first sequencing result, and sequencing the top ten verification servers in a sequence from short to long in response request time to obtain a second sequencing result;
and screening the first verification server in the second sorting result to obtain a target server.
5. The method according to claim 3, wherein the screening the qualified authentication servers to obtain the target server according to the current processable situations of all the authentication servers comprises:
carrying out weighted summation on the load conditions of all the verification servers and the time of responding to the request to obtain the total value of all the verification servers;
and sequencing all the verification servers according to the sequence of the total value from small to large, and determining the first verification server to obtain the target server.
6. The method as claimed in claim 1, wherein after issuing the verification request to the target server to verify the operation right of the verification request, the method further comprises:
obtaining a verification result fed back from the target server;
and feeding back a corresponding response to the terminal according to the verification result.
7. A high concurrency authentication processing apparatus, comprising:
a request acquisition unit configured to acquire a verification request;
the condition acquisition unit is used for acquiring the current processable conditions of all the verification servers;
the screening unit is used for screening the verification servers meeting the requirements according to the current processable conditions of all the verification servers to obtain a target server;
and the issuing unit is used for issuing the verification request to the target server so as to enable the target server to verify the operation authority of the verification request.
8. The high concurrency verification processing device according to claim 7, wherein the screening unit includes:
the first sequencing subunit is used for sequencing all the verification servers according to the sequence of the load condition from small quantity to large quantity so as to obtain a first sequencing result;
the second sorting subunit is used for screening the top ten verification servers in the first sorting result, and sorting the top ten verification servers in a sequence from short to long in response request time to obtain a second sorting result;
and the result screening subunit is used for screening the first verification server in the second sorting result to obtain the target server.
9. A computer device, characterized in that the computer device comprises a memory, on which a computer program is stored, and a processor, which when executing the computer program implements the method according to any of claims 1 to 6.
10. A storage medium, characterized in that the storage medium stores a computer program which, when executed by a processor, implements the method according to any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110748363.3A CN113419860A (en) | 2021-06-30 | 2021-06-30 | High-concurrency verification processing method and device, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110748363.3A CN113419860A (en) | 2021-06-30 | 2021-06-30 | High-concurrency verification processing method and device, computer equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113419860A true CN113419860A (en) | 2021-09-21 |
Family
ID=77720013
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110748363.3A Pending CN113419860A (en) | 2021-06-30 | 2021-06-30 | High-concurrency verification processing method and device, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113419860A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20070060378A (en) * | 2005-12-08 | 2007-06-13 | 한국전자통신연구원 | System and method for ensuring stability of server application by load test |
CN107888546A (en) * | 2016-09-29 | 2018-04-06 | 腾讯科技(深圳)有限公司 | network attack defence method, device and system |
CN109302379A (en) * | 2018-08-10 | 2019-02-01 | 深圳市佰仟金融服务有限公司 | Identity identifying method, device, server and medium |
CN110138747A (en) * | 2019-04-23 | 2019-08-16 | 微梦创科网络科技(中国)有限公司 | A kind of method and system for verifying account logging state |
CN110175074A (en) * | 2019-04-18 | 2019-08-27 | 北京奇艺世纪科技有限公司 | Load-balancing method and server, load unit, service processing apparatus and medium |
-
2021
- 2021-06-30 CN CN202110748363.3A patent/CN113419860A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20070060378A (en) * | 2005-12-08 | 2007-06-13 | 한국전자통신연구원 | System and method for ensuring stability of server application by load test |
CN107888546A (en) * | 2016-09-29 | 2018-04-06 | 腾讯科技(深圳)有限公司 | network attack defence method, device and system |
CN109302379A (en) * | 2018-08-10 | 2019-02-01 | 深圳市佰仟金融服务有限公司 | Identity identifying method, device, server and medium |
CN110175074A (en) * | 2019-04-18 | 2019-08-27 | 北京奇艺世纪科技有限公司 | Load-balancing method and server, load unit, service processing apparatus and medium |
CN110138747A (en) * | 2019-04-23 | 2019-08-16 | 微梦创科网络科技(中国)有限公司 | A kind of method and system for verifying account logging state |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9424077B2 (en) | Throttle control on cloud-based computing tasks utilizing enqueue and dequeue counters | |
US8924467B2 (en) | Load distribution in client server system | |
JP3008896B2 (en) | Interrupt Load Balancing System for Shared Bus Multiprocessor System | |
US20170171304A1 (en) | Service updating method and system for server cluster | |
US20050034130A1 (en) | Balancing workload of a grid computing environment | |
TW201235944A (en) | Placing objects on hosts using hard and soft constraints | |
JP2005062927A (en) | Load control method and device, and processing program therefor | |
JP2012079242A (en) | Composite event distribution device, composite event distribution method and composite event distribution program | |
CN110930043A (en) | Credit signing method and device, computer equipment and storage medium | |
CN113591068B (en) | Online login device management method and device and electronic device | |
JP5531278B2 (en) | Server configuration management system | |
EP4296820A1 (en) | Instance deployment method and apparatus, cloud system, computing device, and storage medium | |
US11303546B2 (en) | Service system and control method of the same | |
CN111258729B (en) | Redis-based task allocation method and device, computer equipment and storage medium | |
CN113419860A (en) | High-concurrency verification processing method and device, computer equipment and storage medium | |
WO2020143851A2 (en) | Method and system for optimizing resource redistribution | |
CN111831408A (en) | Asynchronous task processing method and device, electronic equipment and medium | |
CN113590274A (en) | Task allocation method and device and task processing system | |
CN111475251A (en) | Cluster container scheduling method, system, terminal and storage medium | |
CN111131375A (en) | Interface service acquisition method and device, computer equipment and storage medium | |
CN110908746A (en) | Data processing method, system, readable storage medium and terminal equipment | |
JP2021505989A5 (en) | ||
US20140047454A1 (en) | Load balancing in an sap system | |
CN113535038A (en) | Front-end menu tree generation method and device, computer equipment and storage medium | |
CN114675973A (en) | Resource management method, device, storage medium, and program product |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20210921 |
|
RJ01 | Rejection of invention patent application after publication |