Routing processing method and device

By obtaining the core processing parameters of third-party core channels to calculate routing indicators and perform dynamic routing switching, the complexity of multi-channel routing management in online services is solved, and the stability of online services and user experience is improved.

CN120223764BActive Publication Date: 2025-08-29CHONGQING ANT CONSUMER FINANCE CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202510471692.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-04-15
Publication Date
2025-08-29
Estimated Expiration
2045-04-15

AI Technical Summary

Technical Problem

With the increase in the number of online service users, the nucleation scenarios are becoming increasingly complex, and it is difficult for the existing technology to effectively manage the routing switching of multiple third-party nucleation channels, resulting in a decline in the stability and user experience of online services.

Method used

By obtaining the self-processing parameters of third-party self-self channels, calculating routing indicators and dynamic routing switching, the routing interval of each third-party self-self channel is adjusted to optimize the self-request routing processing of resource services.

Benefits of technology

Improve the stability and user experience of online services, ensure unsensed continuity and flexibility in the event of third-party nuclear channel failure, and improve the efficiency and reliability of nuclear processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120223764B_ABST
    Figure CN120223764B_ABST
Patent Text Reader

Abstract

The embodiments of this specification provide a routing processing method and device, wherein a routing processing method includes: after obtaining the authentication processing parameters of each third-party authentication channel called by the resource service for authentication processing, performing routing indicator calculation based on the authentication processing parameters of any third-party authentication channel to obtain a routing indicator, dynamically switching the routing interval of each third-party authentication channel according to the routing indicator, obtaining the switching routing interval of each third-party authentication channel after switching, and routing the authentication request of the resource service by switching the routing interval, thereby realizing dynamic adjustment of the routing interval of each third-party authentication channel.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This document relates to the field of data processing technology, and in particular to a routing processing method and device. Background Art

[0002] With the continuous development and progress of Internet technology, the application scope of online services provided by Internet technology is becoming wider and wider, and the richness of online services is becoming higher and higher. With the continuous expansion of online services, the requirements for safe use of online services are also gradually increasing. It has gradually developed into a common practice for service providers to authenticate users who use online services and open services to users who meet the authentication conditions. However, as online services continue to become more popular among users, the number of users participating in online services continues to increase, and the authentication scenarios are becoming increasingly complex, which brings certain challenges to the service providers of online services. Summary of the Invention

[0003] One or more embodiments of this specification provide a routing processing method, which is applied to a detection module, and the method includes: obtaining authentication processing parameters for resource services to call each third-party authentication channel for authentication processing. If the authentication processing parameters of any third-party authentication channel trigger a routing switching condition, a routing indicator is calculated based on the authentication processing parameters of any third-party authentication channel to obtain a routing indicator. Routing switching is performed on the routing intervals of the third-party authentication channels according to the routing indicators to obtain a switching routing interval of the third-party authentication channels. The switching routing interval is used to perform routing processing of the authentication request of the resource service through the routing module.

[0004] One or more embodiments of this specification provide a routing processing device that runs in a detection module, and the device includes: a parameter acquisition module, configured to obtain authentication processing parameters for resource services to call each third-party authentication channel for authentication processing. An indicator calculation module, configured to calculate routing indicators based on the authentication processing parameters of any third-party authentication channel if the authentication processing parameters of the channel trigger a routing switching condition, and obtain a routing indicator. A routing switching module, configured to perform routing switching on the routing intervals of the third-party authentication channels according to the routing indicators, and obtain a switching routing interval for the third-party authentication channels. The switching routing interval is used to perform routing processing of the authentication request of the resource service through the routing module.

[0005] One or more embodiments of the present specification provide a routing processing device, comprising: a processor; and a memory configured to store computer-executable instructions, wherein when the computer-executable instructions are executed, the processor is caused to: obtain authentication processing parameters for the resource service to call each third-party authentication channel for authentication processing. If the authentication processing parameters of any third-party authentication channel trigger a routing switching condition, a routing indicator is calculated based on the authentication processing parameters of any third-party authentication channel to obtain a routing indicator. Routing switching is performed on the routing intervals of the third-party authentication channels according to the routing indicators to obtain a switching routing interval of the third-party authentication channels. The switching routing interval is used to perform routing processing of the authentication request of the resource service through a routing module.

[0006] One or more embodiments of the present specification provide a computer-readable storage medium for storing computer-executable instructions, which implement the following steps when executed: obtaining authentication processing parameters for the resource service to call each third-party authentication channel for authentication processing. If the authentication processing parameters of any third-party authentication channel trigger a routing switching condition, a routing indicator is calculated based on the authentication processing parameters of any third-party authentication channel to obtain a routing indicator. Routing switching is performed on the routing intervals of the third-party authentication channels according to the routing indicators to obtain a switching routing interval of the third-party authentication channels. The switching routing interval is used to perform routing processing of the authentication request of the resource service through the routing module. BRIEF DESCRIPTION OF THE DRAWINGS

[0007] In order to more clearly illustrate one or more embodiments of this specification or technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or descriptions of the prior art. Obviously, the drawings described below are only some embodiments described in this specification. Those skilled in the art can derive other drawings based on these drawings without inventive effort.

[0008] Figure 1 A schematic diagram of an implementation environment of a routing processing method provided in one or more embodiments of this specification;

[0009] Figure 2 A processing flow chart of a routing processing method provided in one or more embodiments of this specification;

[0010] Figure 3 A schematic diagram of a routing process provided for one or more embodiments of this specification;

[0011] Figure 4 A processing flow chart of a routing processing method applied to a resource service scenario provided in one or more embodiments of this specification;

[0012] Figure 5 A schematic diagram of an embodiment of a routing processing device provided in one or more embodiments of this specification;

[0013] Figure 6 A schematic diagram of the structure of a routing processing device provided in one or more embodiments of this specification. DETAILED DESCRIPTION

[0014] In order to enable those skilled in the art to better understand the technical solutions in one or more embodiments of this specification, the technical solutions in one or more embodiments of this specification will be clearly and completely described below in conjunction with the drawings in one or more embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on one or more embodiments of this specification, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of this document.

[0015] The routing processing method provided in one or more embodiments of this specification can be applied to the implementation environment of routing processing. Figure 1 , the implementation environment includes at least:

[0016] Detection module 101, routing module 102; in addition, the implementation environment may also include various third-party authentication channels 103, and may also include a service system 104 for resource services; each third-party authentication channel 103 may include third-party authentication channel 1, third-party authentication channel 2 to third-party authentication channel n, where n can be any integer greater than 0.

[0017] Among them, the detection module 101 and the routing module 102 can be deployed on the server of the resource service. The server where the detection module 101 and the routing module 102 are deployed can be the same server or different servers. The server of the resource service can be one or more servers, a server cluster composed of several servers, or a cloud server of a cloud computing platform. The detection module 101 is used to calculate the routing index based on the authentication processing parameters of any third-party authentication channel to obtain the routing index, and perform routing switching on the routing interval of each third-party authentication channel according to the routing index to obtain the switching routing interval. The routing module 102 is used to perform routing processing on the authentication request of the resource service.

[0018] Each third-party authentication channel 103 is used to perform authentication processing; each third-party authentication channel 103 can be an authentication interface provided by each third-party authentication platform, and each third-party authentication platform can be deployed on its own third-party server. Each third-party server can be one or more servers, a server cluster consisting of several servers, or a cloud server of a cloud computing platform;

[0019] The resource service service system 104 can be used to generate an authentication request for the resource service; the resource service service system 104 can be deployed on the resource service server; the server deployed by the service system 104 and the server deployed by the detection module 101 and the routing module 102 can be the same server or different servers.

[0020] In this implementation environment, the detection module 101 obtains authentication processing parameters for each third-party authentication channel 103 to be called by the resource service for authentication processing. When the authentication processing parameters of any third-party authentication channel trigger a routing switching condition, the detection module 101 calculates a routing indicator based on the authentication processing parameters of any third-party authentication channel to obtain a routing indicator. The routing interval of each third-party authentication channel is switched based on the routing indicator to obtain a switching routing interval of each third-party authentication channel. In this way, the routing interval of each third-party authentication channel is dynamically adjusted based on the authentication processing parameters of each third-party authentication channel for the authentication request.

[0021] The switching routing interval is used to perform routing processing of the authentication request of the resource service through the routing module 102 ; the authentication request of the resource service may be generated by the service system 104 of the resource service.

[0022] One or more embodiments of a routing processing method provided in this specification are as follows:

[0023] Reference Figure 2 The routing processing method provided in this embodiment can be applied to the detection module, and specifically includes steps S202 to S206.

[0024] Step S202: Obtain authentication processing parameters for the resource service to call various third-party authentication channels for authentication processing.

[0025] The resource service described in this embodiment can be a resource application or a resource subroutine, and the resource subroutine can specifically be a resource applet; the resource service can be any resource service that requires user authentication; when the resource service is a resource subroutine, the resource service can be an in-application resource service, the application can be a payment application or a third-party application, and the in-application resource service can be a resource subroutine or an in-application resource service unit; the resource service can be a resource credit service for granting resource credit to users or a resource application service for users to apply for resources, and the resource service can also be a fund service, specifically a fund credit service for granting fund credit to users or a fund application service for users to apply for funds; this embodiment can be applied to a detection module, and the detection module can be deployed on a server of a resource service.

[0026] Each of the third-party authentication channels can be used to perform authentication processing, and the authentication processing can specifically be identity verification processing or identity authentication processing, and can specifically be used to perform authentication processing for authentication requests of resource services; each third-party authentication channel can be a third-party authentication interface provided by a third-party authentication platform, and each third-party authentication channel can be an external authentication channel or an internal authentication channel of the resource service; the service provider of the resource service can call the third-party authentication interface to perform authentication processing.

[0027] Each third-party authentication channel can be determined based on the authentication processing time threshold of the resource service for authentication processing or based on the authentication category of the resource service for authentication processing. The authentication category can specifically be the authentication scenario, and the number of authentication categories can be one or more; the authentication category can be determined according to the authentication limit time for the resource service for authentication processing, and the authentication limit time can be the authentication processing time threshold; the number of channels of each third-party authentication channel can also be determined based on the authentication limit time for the resource service for authentication processing; for example, there are two authentication limit times for the resource service for authentication processing, namely a second and b hours. A second means that the authentication result will be fed back to the user within a second, and b hour means that the authentication result will be fed back to the user within b hours. These two authentication limit times represent two authentication scenarios; using the above example, for the two authentication scenarios of a second and b hours, in the authentication scenario of a second, each third-party authentication channel includes third-party authentication channel 1 and third-party authentication channel 2, and in the authentication scenario of b hours, each third-party authentication channel includes third-party authentication channel 1 and third-party authentication channel 3.

[0028] The authentication processing parameters may be one or more, and the authentication processing parameters may include authentication response parameters and / or authentication channel parameters; the authentication response parameters may include authentication response time and / or authentication response success rate; the authentication response time of each third-party authentication channel may be the time spent by the resource service to call each third-party authentication channel for authentication processing; the authentication response success rate of each third-party authentication channel may be the success rate of the resource service to call each third-party authentication channel for authentication processing; the authentication response success rate of each third-party authentication channel may be calculated based on the processing status of each third-party authentication channel for authentication processing of the resource service's authentication request within a time period and / or the number of authentication requests, and the processing status may include a successful processing status and / or a failed processing status; the authentication response time may be the average response time of each third-party authentication channel for authentication processing of the resource service's authentication request within a time period, or it may be the last authentication response time of each third-party authentication channel for authentication processing of the last authentication request of the resource service within a time period;

[0029] The authentication channel parameters of each third-party authentication channel may be the channel attribute parameters of each third-party authentication channel; the authentication channel parameters may include payment fees, credibility and / or manual switching parameters. The specific authentication channel parameters may include at least one of the following: the payment fees paid by the service provider of the resource service to call each third-party authentication channel, the authentication credibility of each third-party authentication channel for authentication processing, and the manual switching parameters used by the service provider of the resource service to manually switch each third-party authentication channel during the route switching process; wherein, the authentication credibility of each third-party authentication channel for authentication processing may be the compliance of each third-party authentication channel for authentication processing; the service provider of the resource service may change the manual switching parameters. The setting of the manual switching parameters can be used to provide an entry for manual participation in the route switching process or manual intervention in the route switching process, thereby improving the flexibility of route switching. Manual switching parameters can be manually changed. After the change, the parameter change is made on behalf of the manual person, and further participation in route switching on behalf of the manual person is represented.

[0030] During specific implementation, the authentication processing parameters for the resource service to call each third-party authentication channel for authentication processing are obtained; specifically, the authentication processing parameters for the resource service to call each third-party authentication channel for authentication processing within a time period can be obtained, and the time period here can be any time period, such as x milliseconds, and the authentication processing parameters can be the authentication processing parameters for each third-party authentication channel to authenticate the resource service within the time period; more specifically, the log collection unit of the detection module can obtain the authentication processing parameters for the resource service to call each third-party authentication channel for authentication processing, or can obtain the authentication processing parameters for the resource service to call each third-party authentication channel for authentication processing within a time period.

[0031] It should be added that the above-mentioned process of obtaining the authentication processing parameters of the resource service calling each third-party authentication channel for authentication processing can be replaced by obtaining the authentication processing parameters of the service calling each third-party authentication channel for authentication processing; optionally, the service includes resource service, takeaway service, government service or shopping service, and the service may also include other services. The resource service may be a fund credit service, a guarantee service or a guarantee application service; or it can be replaced by obtaining the authentication processing parameters of the resource service or the service calling the authentication channel for authentication processing; optionally, the authentication channel includes a third-party authentication channel, an application authentication channel and / or a resource service authentication channel; or it can be replaced by obtaining the authentication processing parameters of each third-party authentication channel for the resource service to perform authentication processing; and constitute a new implementation method with the other processing steps provided in this embodiment.

[0032] Step S204: If the authentication processing parameters of any third-party authentication channel trigger the routing switching condition, a routing index is calculated based on the authentication processing parameters of any third-party authentication channel to obtain a routing index.

[0033] The above-mentioned resource service obtains the authentication processing parameters for calling each third-party authentication channel for authentication processing. In this step, when the authentication processing parameters of any third-party authentication channel trigger the routing switching conditions, the routing indicators are calculated based on the authentication processing parameters of any third-party authentication channel to obtain the routing indicators.

[0034] Any third-party authentication channel mentioned in this embodiment refers to any third-party authentication channel; the authentication processing parameters of any third-party authentication channel refer to the authentication processing parameters of any third-party authentication channel called by the resource service for authentication processing; optionally, the authentication processing parameters of any third-party authentication channel include authentication response parameters and / or authentication channel parameters, the authentication response parameters include authentication response time and / or authentication response success rate, and the authentication response parameters can be authentication response parameters within a time period; the authentication response time of any third-party authentication channel can be the time it takes for the resource service to call any third-party authentication channel for authentication processing, and any third-party authentication channel The authentication response success rate may be the success rate of the resource service calling any third-party authentication channel for authentication processing; the authentication response success rate may be calculated based on the processing status and / or the number of authentication requests for authentication processing of the resource service authentication request by any third-party authentication channel within a time period, and the processing status may include a successful processing status and / or a failed processing status; the authentication response duration may be the average response time for authentication processing of the resource service authentication request by any third-party authentication channel within a time period, or it may be the authentication response time for authentication processing of the last authentication request of the resource service by any third-party authentication channel within a time period;

[0035] The authentication channel parameters may be the channel attribute parameters of any third-party authentication channel; the authentication channel parameters may include payment fees, credibility and / or manual switching parameters; optionally, the authentication channel parameters include at least one of the following: the payment fee paid by the service provider of the resource service to call any third-party authentication channel to call any third-party authentication channel, the authentication credibility of any third-party authentication channel for authentication processing, and the manual switching parameters for the service provider to manually switch any third-party authentication channel during the route switching process; wherein, the authentication credibility of any third-party authentication channel for authentication processing may be the compliance of any third-party authentication channel for authentication processing; the service provider of the resource service may change the manual switching parameters, and the setting of the manual switching parameters may be used to provide an entry for manual participation in the route switching process or manual intervention in the route switching process, thereby improving the flexibility of route switching. Manual switching parameters may be manually changed, and after the change, the parameter change is made on behalf of the manual person, further representing the manual person in participating in the route switching.

[0036] The routing switching condition may include a condition for switching the routing interval of each third-party authentication channel; the routing switching condition may include a difference between the authentication response parameter and the historical authentication response parameter being greater than a difference threshold, and the authentication channel parameter being obtained by changing a parameter based on a change instruction of a historical authentication channel parameter of any third-party authentication channel; wherein the historical authentication response parameter may be a previous authentication response parameter of the authentication response parameter or an authentication response parameter of a previous time period; the historical authentication channel parameter may be a previous authentication channel parameter of the authentication channel parameter; and the change instruction may be submitted by a service provider of the resource service;

[0037] In addition, the routing switching conditions may also include that the difference between the authentication response parameters and the historical authentication response parameters is greater than the difference threshold, or the authentication channel parameters are obtained by parameter change based on the change instructions of the historical authentication channel parameters of any third-party authentication channel; for example, the difference between the authentication response time of the third-party authentication channel 1 within the time period and the historical authentication response time in the previous time period is greater than the difference threshold, and the authentication response time of the third-party authentication channel 1 triggers the routing switching condition; for another example, the payment fee of the third-party authentication channel 2 is obtained by fee change based on the change instructions of the historical payment fee of the third-party authentication channel 2, which means that the payment fee of the third-party authentication channel 2 is obtained by fee change based on the historical payment fee, and the payment fee of the third-party authentication channel 2 triggers the routing switching condition.

[0038] The routing indicator can be a routing indicator of each third-party authentication channel, and the routing indicator can be an indicator that characterizes the routing degree of request allocation or request routing to each third-party authentication channel; the routing indicator can be a routing selection indicator of each third-party authentication channel, specifically a routing selection score that characterizes the selection of each third-party authentication channel for authentication processing; in addition, the routing indicator can also be an authentication evaluation indicator, specifically an authentication quality score that characterizes the authentication quality of each third-party authentication channel and / or an authentication performance score that characterizes the authentication performance of each third-party authentication channel and / or a comprehensive evaluation indicator of each third-party authentication channel.

[0039] During specific implementation, routing indicators of each third-party authentication channel can be calculated based on the authentication processing parameters of any third-party authentication channel to obtain the routing indicators of each third-party authentication channel, thereby realizing dynamic evaluation of each third-party authentication channel. The convenience of subsequent routing switching can be improved through dynamic evaluation of each third-party authentication channel, and timely perception can be achieved in the event of channel failure. The stability of resource services calling third-party authentication channels for authentication processing can be guaranteed through subsequent routing switching, and the continuity of resource services in the process of authenticating users can be guaranteed, so that users are unaware of failures.

[0040] In actual applications, there may be one or more authentication processing parameters. When there are multiple authentication processing parameters, different authentication processing parameters may have different importance for route switching. In order to improve the comprehensiveness and effectiveness of routing indicator calculation, this embodiment provides an optional implementation method. In the process of calculating the routing indicator based on the authentication processing parameters of any third-party authentication channel, the following operations are performed:

[0041] Update authentication parameter data based on authentication processing parameters of any third-party authentication channel;

[0042] Calculate the routing index based on the authentication processing parameters of each third-party authentication channel in the authentication parameter data and the corresponding parameter weights.

[0043] Optionally, the parameter weight is determined based on a threshold of the authentication processing time for the resource service to perform authentication processing.

[0044] Among them, the authentication parameter data can be any data structure, for example, the authentication parameter data can be an authentication parameter table or an authentication parameter linked list; the authentication parameter data can store the authentication processing parameters of each third-party authentication channel, and the authentication parameter data can be updated; the parameter weights corresponding to the authentication processing parameters of each third-party authentication channel can be determined based on the authentication category of the authentication processing performed by the resource service, and the authentication category can specifically be an authentication scenario, and the number of authentication categories can be one or more; the authentication category can be determined according to the authentication limit time for the authentication processing performed by the resource service, and the authentication limit time can be an authentication processing time threshold; for example, there are two authentication limit times for the authentication processing performed by the resource service, namely a second and b hours, a second means that the authentication result is fed back to the user within a second, and b hour means that the authentication result is fed back to the user within b hours, and these two authentication limit times represent two authentication scenarios;

[0045] The parameter weight corresponding to the authentication processing parameter can be any value, specifically a positive number, a negative number or 0; using the above example, for the two authentication scenarios of a second and b hours, in the authentication scenario of a second, more attention is paid to the payment fee and the authentication response time, and the parameter weights of the payment fee and the authentication response time are set higher, and the authentication credibility, the authentication response success rate and the manual switching parameter are set lower. In the authentication scenario of b hours, more attention is paid to the authentication credibility and the authentication success rate, and the parameter weights of the authentication credibility and the authentication success rate are set higher, and the authentication response time, payment fee and manual switching parameters are set lower; it should be noted that the parameter weight corresponding to the manual switching parameter may be greater than the parameter weights corresponding to the payment fee, authentication response time, authentication response success rate and authentication credibility.

[0046] Specifically, the authentication parameter table can be updated based on the authentication processing parameters of any third-party authentication channel, and the routing indicators of each third-party authentication channel can be calculated according to the authentication processing parameters and corresponding parameter weights of each third-party authentication channel in the authentication parameter table.

[0047] On this basis, since the parameter attributes of the authentication processing parameters may be different, it is impossible to directly use the authentication processing parameters to calculate the routing index. To improve the convenience of calculating the routing index, this embodiment provides an optional implementation method. In the process of calculating the routing index based on the authentication processing parameters of each third-party authentication channel in the authentication parameter data and the corresponding parameter weights, the following operations are performed:

[0048] Standardize the authentication processing parameters of each third-party authentication channel in accordance with the standardization method corresponding to the parameter attributes of the authentication processing parameters of each third-party authentication channel in the authentication parameter data to obtain standard processing parameters;

[0049] The routing metric is calculated based on the standard processing parameters and corresponding parameter weights.

[0050] Optionally, the parameter attribute includes a positive parameter attribute and / or a negative parameter attribute.

[0051] Among them, the positive parameter attribute can be a positive parameter attribute, in which the larger the authentication processing parameter is, the better the third-party authentication channel is; the negative parameter attribute can be a negative parameter attribute, in which the larger the authentication processing parameter is, the worse the third-party authentication channel is. For example, the larger the payment fee is, the worse the third-party authentication channel is, and the parameter attribute of the payment fee is a negative parameter attribute; the larger the authentication response success rate is, the better the third-party authentication channel is, and the parameter attribute of the authentication response success rate is a positive parameter attribute.

[0052] The standardization method corresponding to the parameter attributes may include a standardization method corresponding to the positive parameter attributes and / or a standardization method corresponding to the negative parameter attributes; the standardization method corresponding to the positive parameter attributes may be a standardization method for performing standardization processing based on a standardization algorithm, and the standardization method corresponding to the negative parameter attributes may be a standardization method for calculating the standard processing parameters based on preset numerical values ​​and candidate standard processing parameters obtained by performing standardization processing based on a standardization algorithm.

[0053] Specifically, the authentication processing parameters of each third-party authentication channel are standardized in accordance with the standardized method corresponding to the parameter attributes of the authentication processing parameters of each third-party authentication channel in the authentication parameter data. In the process of obtaining the standard processing parameters, the first authentication processing parameter and the last authentication processing parameter are determined in the authentication processing parameters of each third-party authentication channel. The authentication processing parameters, the first authentication processing parameter and the last authentication processing parameter of each third-party authentication channel are input into the standardized algorithm for standardized processing to obtain candidate standard processing parameters for each third-party authentication channel. If the parameter attribute of the authentication processing parameter of each third-party authentication channel is a positive parameter attribute, the candidate standard processing parameter is used as the standard processing parameter of each third-party authentication channel. If each The parameter attribute of the authentication processing parameter of the third-party authentication channel is a negative parameter attribute. The difference between the preset value and the candidate standard processing parameter is calculated as the standard processing parameter of each third-party authentication channel. The preset value can be any value, such as the preset value is 1; in the process of calculating the routing index based on the standard processing parameter and the parameter weight, the routing index of each third-party authentication channel can be obtained by weighted calculation based on the standard processing parameter of each third-party authentication channel and the corresponding parameter weight; among them, the first authentication processing parameter can be the authentication processing parameter that ranks first after sorting the authentication processing parameters of each third-party authentication channel in order from small to large, and the last authentication processing parameter can be the authentication processing parameter that ranks last.

[0054] For example, normalization algorithms include:

[0055] normalized_value=(value-min_value) / (max_value-min_value)

[0056] Where normalized_value represents the candidate standard processing parameter; value represents the authentication processing parameter of each third-party authentication channel; min_value represents the first authentication processing parameter; max_value represents the last authentication processing parameter;

[0057] Assume that the authentication processing parameter of any third-party authentication channel is the authentication response time, the authentication response time of any third-party authentication channel is 400, and the authentication response time of the remaining third-party authentication channels are 500, 400, and 500 respectively. Among the authentication response times of each third-party authentication channel, the first authentication response time is determined to be 400, and the last authentication response time is determined to be 500.

[0058] For another example, there are a total of 4 third-party authentication channels, and the authentication parameter data is shown in Table 1 below:

[0059]

[0060] Table 1

[0061] The third-party authentication channels include Channel 1, Channel 2, Channel 3, and Channel 4. The payment fee for Channel 1 is 1.1, the authentication response time is 400 seconds, the authentication response success rate is 99%, the authentication credibility is 3, and the manual switching parameter is 0. The authentication processing parameters for the remaining channels are similar to those for Channel 1 and are not detailed here.

[0062] Assume that the authentication response time obtained by the resource service calling channel 1 for authentication processing is 600. The authentication response time triggers the routing switching condition, and the authentication response time of channel 1 changes from 400 to 600. The authentication parameter data based on the authentication response time of channel 1 is updated as shown in Table 2 below:

[0063]

[0064] Table 2

[0065] Among them, the authentication response time of channel 1 in Table 2 is updated from 400 to 600;

[0066] Third-party authentication channels include Channel 1, Channel 2, Channel 3, and Channel 4. Channel 1 has a payment fee of 1.1, an authentication response time of 600 seconds, an authentication response success rate of 99%, an authentication credibility of 3, and a manual switching parameter of 0. The authentication processing parameters for the remaining channels are similar to those for Channel 1 and are not detailed here.

[0067] According to the standardization method corresponding to the parameter attributes of the authentication processing parameters of channels 1 to 4 in the authentication parameter data, the authentication processing parameters of channels 1 to 4 are standardized, and the standard processing parameters are obtained as shown in Table 3 below:

[0068]

[0069] Table 3

[0070] Among them, the standard payment fees of channel 1 to channel 4 in Table 3 are 1, 0, 0.2, and 0.64 respectively, the standard authentication response time is 0, 0.5, 1, and 0.5 respectively, the standard authentication response success rate is 0.67, 0.33, 1, and 0 respectively, the standard authentication credibility is 1, 0, 1, and 0 respectively, and the standard manual switching parameters are 0, 0, 0, and 0 respectively;

[0071] Assume that the parameter weights corresponding to the payment fee, authentication response time, authentication response success rate, authentication credibility, and manual switching parameters are 2, 3, 3, 4, and 10, respectively; based on the standard processing parameters and parameter weights, the routing index of channel 1 is calculated as 2+2.01+4=8.01, and the routing indexes of channels 2 to 4 are 2.49, 10.4, and 2.78, respectively.

[0072] It should be added that, if the authentication processing parameters of any third-party authentication channel trigger the routing switching condition, the routing indicator calculation is performed based on the authentication processing parameters of any third-party authentication channel, and the operation of obtaining the routing indicator can be replaced by calculating the routing indicator based on the authentication processing parameters of any third-party authentication channel to obtain the routing indicator; or it can be replaced by calculating the routing indicators of each third-party authentication channel based on the authentication processing parameters of any third-party authentication channel; and constitute a new implementation method together with the other processing steps provided in this embodiment.

[0073] Step S206: Perform routing switching on the routing intervals of the third-party authentication channels according to the routing indicators to obtain the switched routing intervals of the third-party authentication channels.

[0074] In the above-mentioned case where the authentication processing parameters of any third-party authentication channel trigger the routing switching conditions, the routing indicator calculation is performed based on the authentication processing parameters of any third-party authentication channel to obtain the routing indicator. In this step, the routing interval of each third-party authentication channel is routed and switched according to the routing indicator to obtain the switching routing interval of each third-party authentication channel, thereby realizing dynamic switching of each third-party authentication channel.

[0075] The routing interval described in this embodiment refers to the routing interval for routing authentication requests for resource services. The routing interval can represent the routing weight interval of the request routing for authentication requests to the third-party authentication channel. The larger the routing interval, the more authentication requests are routed to the third-party authentication channel. The smaller the routing interval, the fewer authentication requests are routed to the third-party authentication channel. The routing interval can be a routing weight interval, a routing capacity interval, or a routing load interval. For example, the third-party authentication channel includes channel 1, channel 2, channel 3, and channel 4. The routing intervals of the four channels are [25, 100], [15, 25), [5, 15), and [0, 5] respectively. The switching routing area The interval refers to the switching routing interval of each third-party authentication channel after the routing interval of each third-party authentication channel is switched; optionally, the switching routing interval is used to perform routing processing of the authentication request of the resource service through the routing module, or the switching routing interval is used to perform routing processing of the authentication request of the resource service; optionally, the routing module is deployed on the server of the resource service, and the authentication request of the resource service is generated after detecting the service activation instruction submitted by the user to the resource service or the application task generated by the resource service for the user to apply for resources to the resource agency; the resource agency here can be a third-party resource agency or a cooperative resource agency of the resource service, and the resource agency can be used to grant resource credit to the user.

[0076] In actual applications, the routing indicators of authentication processing performed by each third-party authentication channel are different, that is, the authentication performance of each third-party authentication channel is different. In view of this, since the third-party authentication channel with higher routing indicators has better authentication performance, in order to ensure the authentication stability of authentication processing and improve the authentication effect of calling the third-party authentication channel for authentication processing, the routing priority of each third-party authentication channel can be determined based on the routing indicator, and the routing interval of each third-party authentication channel can be switched to the switching routing interval corresponding to the routing priority. In this way, a larger switching routing interval can be switched to the third-party authentication channel with higher routing priority, and more authentication requests can be allocated to the third-party authentication channel with higher routing priority through the larger switching routing interval, and at the same time, a smaller switching routing interval can be used. The interval keeps the third-party authentication channels with lower routing priorities alive, ensuring that the third-party authentication channels with lower routing priorities can also perform authentication processing normally after the routing is switched to a higher routing priority, thereby improving the stability of the authentication processing of resource services. In the event of a failure in the third-party authentication channel, routing switching can be automatically performed, so that users are unaware of the failure. Specifically, in an optional implementation manner provided by this embodiment, in the process of performing routing switching on the routing intervals of each third-party authentication channel according to the routing indicators and obtaining the switching routing intervals of each third-party authentication channel, the routing interval corresponding to the routing priority obtained by sorting each third-party authentication channel is used as the switching routing interval, and each third-party authentication channel is sorted based on the routing indicators. Specifically, the following operations can be performed:

[0077] Sort each third-party authentication channel according to the routing indicators to obtain the routing priority of each third-party authentication channel;

[0078] Switch the routing interval of each third-party authentication channel to the switching routing interval corresponding to the routing priority.

[0079] Continuing with the above example, the routing indicators of channels 1 to 4 are 8.01, 2.49, 10.4, and 2.78, respectively. The third-party authentication channels are sorted according to the routing indicators, and the routing priorities of each third-party authentication channel are obtained as follows: channel 3 is the first routing priority, channel 1 is the second routing priority, channel 4 is the third routing priority, and channel 2 is the fourth routing priority. The routing intervals of each third-party authentication channel are switched to the switching routing intervals corresponding to the routing priorities of channels 1 to 4. The switching routing intervals of channels 1 to 4 are [15, 25), [0, 5), [25, 100], and [5, 15], respectively.

[0080] As described above, switching routing intervals can be used to perform routing processing of authentication requests for resource services through the routing module; thereby, by switching routing intervals, the proportion of request routing for authentication requests to various third-party authentication channels can be controlled; in an optional implementation provided by this embodiment, the routing module performs the routing processing in the following manner:

[0081] The authentication request is distributed to the third-party authentication channel corresponding to the switching routing interval that matches the routing parameters.

[0082] Optionally, the routing parameters are obtained by performing parameter calculation based on a random number generated for the authentication request and a routing cumulative value.

[0083] Among them, the routing cumulative value can represent the authentication processing volume of the resource service calling each third-party authentication channel for authentication processing, or represent the cumulative value of the authentication requests for authentication processing by each third-party authentication channel; in addition, the first routing cumulative value is 0, and subsequent routing cumulative values ​​can also be routing parameters; the routing cumulative value can be obtained by counting based on a counter.

[0084] On this basis, in order to reduce randomness in the routing processing of authentication requests, third-party authentication channels with smaller switching routing intervals can also receive fewer authentication requests, thereby preventing third-party authentication channels with smaller switching routing intervals from being unable to receive authentication requests for a long time, and to keep third-party authentication channels with smaller switching routing intervals alive; in an optional implementation provided by this embodiment, in the process of allocating authentication requests to third-party authentication channels corresponding to the switching routing intervals that match routing parameters, routing parameters can be introduced, and the routing parameters can be matched with the switching routing intervals of each third-party authentication channel, and authentication requests can be allocated to the third-party authentication channels corresponding to the switching routing intervals that match the routing parameters. Specifically, the following operations can be performed:

[0085] Match the routing parameters with the switching routing intervals of each third-party authentication channel to obtain the switching routing interval that matches the routing parameters;

[0086] Call the third-party authentication channel corresponding to the matching switching routing interval to process the authentication request.

[0087] Based on the above-mentioned routing parameters being calculated based on the random number generated for the authentication request and the routing cumulative value, in order to ensure the randomness of the routing processing of the authentication request, this embodiment provides an optional implementation method in which the following operations are performed during the parameter calculation based on the random number generated for the authentication request and the routing cumulative value:

[0088] Generate a random number for the authentication request of the resource service and update the routing cumulative value based on the random number;

[0089] The routing parameters are calculated based on the routing cumulative value and the random number to obtain the routing parameters.

[0090] Specifically, in the process of generating random numbers for resource service authentication requests, random numbers can be generated for resource service authentication requests within the entire numerical range, or random numbers can be generated for resource service authentication requests within the numerical range of the routing threshold; wherein the routing threshold may include the total proportion value of the routing proportions corresponding to the switching routing intervals of each third-party authentication channel, and the total proportion value may be the sum of the routing proportions corresponding to the switching routing intervals of each third-party authentication channel.

[0091] It should be noted that after the routing parameters are calculated based on the routing cumulative value and the random number, the routing cumulative value can also be updated based on the routing parameters to use the routing parameters as the new routing cumulative value for routing processing of the next authentication request.

[0092] In order to prevent the third-party authentication channels corresponding to smaller switching routing intervals from being unable to receive authentication requests for a period of time due to the random number, and to improve the liveness of these third-party authentication channels, a routing accumulation value may be introduced. The routing parameters obtained by calculating the routing accumulation value and the random number are used to perform routing processing on authentication requests, thereby reducing the randomness of the routing processing of authentication requests caused by the random number. In an optional implementation provided by this embodiment, in the process of calculating the routing parameters based on the routing accumulation value and the random number to obtain the routing parameters, candidate routing parameters are calculated based on the routing accumulation value and the random number, and the routing parameters are determined based on the comparison result of the candidate routing parameters with the routing threshold of the switching routing interval. Specifically, the following operations may be performed:

[0093] Calculate candidate routing parameters based on routing cumulative value and random number;

[0094] If the candidate routing parameter is less than or equal to the routing threshold, the candidate routing parameter is used as the routing parameter. If the candidate routing parameter is greater than the routing threshold, the candidate routing parameter is modulo-processed based on the routing threshold to obtain the routing parameter.

[0095] Among them, the routing threshold may include the total ratio value of the routing ratios corresponding to the switching routing intervals of each third-party authentication channel, and the total ratio value may be the sum of the routing ratios corresponding to the switching routing intervals of each third-party authentication channel.

[0096] Specifically, in the process of calculating the candidate routing parameters based on the routing cumulative value and the random number, the sum of the routing cumulative value and the random number can be calculated as the candidate routing parameter, the positive number of the difference between the routing cumulative value and the random number can be calculated as the candidate routing parameter, the product of the routing cumulative value and the random number can be calculated as the candidate routing parameter, and the ratio of the routing cumulative value and the random number can be calculated as the candidate routing parameter; the calculation result of the routing cumulative value and the random number can be calculated by any one or more calculation methods as the candidate routing parameter.

[0097] For example, before routing the authentication request for the first resource service, the routing cumulative value is 0. After receiving the authentication request for the first resource service, assuming that the random number generated for the authentication request for the first resource service is 2, a candidate routing parameter 0+2=2<100 is generated based on the routing cumulative value and the random number. The candidate routing parameter is the routing parameter. Routing parameter 2 matches [0, 5). Channel 2 corresponding to the matching switching routing interval [0, 5) is called to process the authentication request, and the routing cumulative value is updated using the routing parameter. Assuming that the subsequent routing cumulative value is 82, and the random number generated for the received authentication request for the resource service is 40, the candidate routing parameter is calculated based on the routing cumulative value 82 and the random number 40 as 82+40=122>100. Based on the routing threshold 100, the candidate routing parameter 122 is modulo-processed to obtain a routing parameter of 22. Routing parameter 22 matches [15, 25). Channel 1 corresponding to the matching switching routing interval [15, 25) is called to process the authentication request.

[0098] In actual applications, the routing indicators of authentication processing by each third-party authentication channel are different, and the authentication performance of each third-party authentication channel is different. In view of this, since the third-party authentication channel with higher routing indicators has better authentication performance, in order to ensure the authentication stability of authentication processing, the authentication effect of calling the third-party authentication channel for authentication processing is improved; optionally, the switching routing interval of each third-party authentication channel has a corresponding routing priority; the interval size of the switching routing interval is positively correlated with the routing priority; the switching routing interval is calculated based on the routing ratio and routing threshold corresponding to the routing priority;

[0099] Among them, the routing priority corresponding to each third-party authentication channel can be obtained by sorting based on the routing index of each third-party authentication channel. The routing index of each third-party authentication channel can be positively correlated with the routing priority of each third-party authentication channel. Specifically, the larger the routing index of the third-party authentication channel, the higher the routing priority of each third-party authentication channel, and the smaller the routing index of the third-party authentication channel, the lower the routing priority of each third-party authentication channel; any one, two, or three of the routing index, routing priority, and the size of the switching routing interval corresponding to each third-party authentication channel are positively correlated. Specifically, the larger the routing index of each third-party authentication channel, the higher the routing priority of the third-party authentication channel, the larger the switching routing interval, the smaller the routing index of each third-party authentication channel, the lower the routing priority of the third-party authentication channel, and the smaller the switching routing interval;

[0100] The routing threshold may include the total proportion value of the routing ratio corresponding to the switching routing interval, and the total proportion value may be the sum of the routing ratios corresponding to the switching routing intervals of each third-party authentication channel; for example, the switching routing intervals of channel 1 to channel 4 are [15, 25), [0, 5), [25, 100], [5, 15], respectively. Channel 1 is the second routing priority, channel 2 is the fourth routing priority, channel 3 is the first routing priority, and channel 4 is the third routing priority. The routing ratios corresponding to the switching routing intervals [15, 25), [0, 5), [25, 100], [5, 15) are 10%, 5%, 75%, and 10%, respectively. The routing threshold of the switching routing interval is the total proportion value of the routing ratio, 100.

[0101] It should be noted that the above-mentioned operation of switching the routing intervals of each third-party authentication channel according to the routing indicators and obtaining the switching routing intervals of each third-party authentication channel can be replaced by switching the routing intervals of each third-party authentication channel according to the routing indicators and obtaining the switching routing intervals of each third-party authentication channel, and forming a new implementation method together with the other processing steps provided in this embodiment.

[0102] In this embodiment, the server of the resource service may deploy a service system, a detection module and / or a routing module; for example Figure 3As shown, the service system of the resource service can generate an authentication request for authentication processing, the routing module can perform routing processing on the authentication request to each third-party authentication channel according to the routing interval of each third-party authentication channel, the detection module can obtain the authentication processing parameters of each third-party authentication channel called by the resource service for authentication processing, and dynamically update the routing interval of each third-party authentication channel based on the authentication processing parameters; specifically, the detection module can update the authentication parameter data based on the authentication processing parameters of any third-party authentication channel when the authentication processing parameters of any third-party authentication channel trigger the routing switching condition, calculate the routing index of each third-party authentication channel based on the authentication processing parameters of each third-party authentication channel in the authentication parameter data, perform routing switching on the routing interval of each third-party authentication channel based on the routing index of each third-party authentication channel, and obtain the switching routing interval of each third-party authentication channel;

[0103] Before the resource service goes online, the routing module can generate a test authentication request for authentication testing and distribute the test authentication request to each third-party authentication channel. The detection module can calculate the routing indicators of each third-party authentication channel based on the authentication processing parameters of each third-party authentication channel for authentication processing of the test authentication request, and determine the routing interval of each third-party authentication channel according to the routing indicators of each third-party authentication channel; the routing interval can be the initial routing interval; after the resource service goes online, the routing module can first perform routing processing of the authentication request of the resource service according to the initial routing interval of each third-party authentication channel, and subsequently, when the authentication processing parameters of any third-party authentication channel trigger the routing switching condition, the initial routing interval and subsequent routing intervals of each third-party authentication channel can be routed, so as to dynamically switch the routing interval of each third-party authentication channel.

[0104] It should be added that the various optional implementation methods and execution operation processes of steps S202 to S206 provided in this embodiment can be executed independently as needed, or can be combined and referenced with each other. At the same time, each specific execution step in each optional implementation method or each execution operation process can also be executed independently or combined as needed. The operations executed by the "if" or "under a certain situation" conditions in this embodiment can delete the "if" and "under a certain situation" conditions and directly execute subsequent operations. For example, the condition that the authentication processing parameters of any third-party authentication channel trigger the routing switching condition can be deleted, and the routing indicator calculation based on the authentication processing parameters of any third-party authentication channel can be directly executed to obtain the routing indicator; the limitation of "with" in the execution step can also be deleted as needed; this embodiment does not make specific limitations on this.

[0105] In summary, one or more routing processing methods provided in this embodiment can be applied to the detection module. During the routing processing process, after obtaining the authentication processing parameters of each third-party authentication channel for authentication processing by the resource service, if the authentication processing parameters of any third-party authentication channel trigger the routing switching condition, then the authentication parameter data is updated based on the authentication processing parameters of any third-party authentication channel, and the authentication processing parameters of each third-party authentication channel are standardized according to the standardized method corresponding to the parameter attributes of the authentication processing parameters of each third-party authentication channel in the authentication parameter data to obtain standard processing parameters, and the routing indicators are calculated based on the standard processing parameters and the corresponding parameter weights; secondly, the third-party authentication channels are sorted according to the routing indicators to obtain the routing priority of each third-party authentication channel, and the authentication parameters of each third-party authentication channel are sorted according to the routing indicators. The routing interval is switched to the switching routing interval corresponding to the routing priority; the switching routing interval can be used for routing processing of authentication requests for resource services through the routing module; thereby, the routing priority of each third-party authentication channel is dynamically adjusted through the routing indicators of each third-party authentication channel, and the subsequent routing processing of authentication requests for each third-party authentication channel is realized through the switching routing interval corresponding to the routing priority. The request routing processing of each third-party authentication channel is dynamically regulated by the switching routing interval, so as to ensure that the third-party authentication channel can perceive the failure in time through the routing indicators, thereby improving the stability of the authentication processing of resource services when the failure occurs. At the same time, by setting the switching routing interval for different routing priorities, the third-party authentication channel can be kept alive, so that the third-party authentication channel can perform authentication processing normally after the routing switch.

[0106] The following takes the application of a routing processing method provided by this embodiment in a resource service scenario as an example to further illustrate the routing processing method provided by this embodiment. Figure 4 ,The routing processing method applied to the resource service scenario can be applied to the detection module, and specifically includes the following steps.

[0107] Step S402: obtaining authentication response parameters of the resource service when calling each third-party authentication channel to perform authentication processing within a time period.

[0108] Step S404: If the authentication response parameter of any third-party authentication channel triggers a routing switching condition, the authentication parameter data is updated based on the authentication response parameter of any third-party authentication channel.

[0109] Step S406: Standardize the authentication response parameters and authentication channel parameters according to the standardized method corresponding to the parameter attributes of the authentication response parameters and authentication channel parameters of each third-party authentication channel in the authentication parameter data to obtain standard response parameters and standard channel parameters.

[0110] The authentication response parameters and authentication channel parameters may be the authentication response parameters and authentication channel parameters of each third-party authentication channel.

[0111] Step S408: Calculate the routing index of each third-party authentication channel based on the standard response parameters and the standard channel parameters and their corresponding parameter weights.

[0112] Step S410: sort the third-party authentication channels according to the routing indicators to obtain the routing priority of each third-party authentication channel.

[0113] Step S412: Switch the routing interval of each third-party authentication channel to the switching routing interval corresponding to the routing priority.

[0114] Optionally, the switching routing interval is used to perform routing processing of authentication requests for resource services in the next time period through the routing module.

[0115] It should be noted that any one of steps S402 to S412 or any combination of multiple steps can be replaced by the corresponding technical means provided by the above steps S202 to S206 according to the needs of implementation and deployment, and any one of steps S402 to S412 or any combination of multiple steps can be combined into a new implementation method according to the needs of implementation and deployment; and any one of steps S402 to S412 or any combination of multiple steps can also form a new implementation method with one or more steps provided by the above steps S202 to S206 according to the actual deployment needs, or form a new implementation method with one or more optional implementation methods provided by steps S202 to S206, which will not be repeated here.

[0116] An embodiment of a routing processing device provided in this specification is as follows:

[0117] In the above embodiment, a routing processing method is provided, and correspondingly, a routing processing device is also provided, which will be described below with reference to the accompanying drawings.

[0118] Reference Figure 5 , which shows a schematic diagram of an embodiment of a routing processing device provided by this embodiment.

[0119] Since the device embodiment corresponds to the method embodiment, the description is relatively simple. For the relevant parts, please refer to the corresponding description of the method embodiment provided above. The device embodiment described below is only illustrative.

[0120] This embodiment provides a routing processing device, which runs in a detection module. The device includes:

[0121] The parameter acquisition module 502 is configured to obtain authentication processing parameters for the resource service to call various third-party authentication channels for authentication processing;

[0122] The indicator calculation module 504 is configured to calculate the routing indicator based on the authentication processing parameters of any third-party authentication channel to obtain the routing indicator if the authentication processing parameters of any third-party authentication channel trigger the routing switching condition;

[0123] The routing switching module 506 is configured to perform routing switching on the routing intervals of the third-party authentication channels according to the routing indicators to obtain the switching routing intervals of the third-party authentication channels; the switching routing intervals are used to perform routing processing on the authentication requests of the resource services through the routing module.

[0124] An embodiment of a routing processing device provided in this specification is as follows:

[0125] Corresponding to the routing processing method described above, based on the same technical concept, one or more embodiments of this specification further provide a routing processing device, which is used to execute the routing processing method provided above. Figure 6 A schematic diagram of the structure of a routing processing device provided in one or more embodiments of this specification.

[0126] This embodiment provides a routing processing device, including:

[0127] like Figure 6 As shown, the routing processing device may vary significantly depending on its configuration or performance. It may include one or more processors 601 and memory 602. Memory 602 may store one or more applications or data. Memory 602 may be either ephemeral or persistent. The applications stored in memory 602 may include one or more modules (not shown), each of which may include a series of computer-executable instructions within the routing processing device. Furthermore, processor 601 may be configured to communicate with memory 602 to execute the series of computer-executable instructions within memory 602 on the routing processing device. The routing processing device may also include one or more power supplies 603, one or more wired or wireless network interfaces 604, one or more input / output interfaces 605, one or more keyboards 606, and the like.

[0128] In a specific embodiment, the routing processing device includes a memory and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs may include one or more modules, and each module may include a series of computer-executable instructions for the routing processing device, and the one or more programs are configured to be executed by one or more processors, including computer-executable instructions for performing the following:

[0129] Obtain authentication parameters for resource services to call third-party authentication channels for authentication;

[0130] If the authentication processing parameters of any third-party authentication channel trigger a routing switching condition, calculate the routing index based on the authentication processing parameters of any third-party authentication channel to obtain the routing index;

[0131] The routing intervals of the third-party authentication channels are switched according to the routing indicators to obtain the switching routing intervals of the third-party authentication channels; the switching routing intervals are used to perform routing processing of the authentication requests of the resource services through the routing module.

[0132] An embodiment of a computer-readable storage medium provided in this specification is as follows:

[0133] Corresponding to the routing processing method described above, based on the same technical concept, one or more embodiments of this specification further provide a computer-readable storage medium.

[0134] The computer-readable storage medium provided in this embodiment is used to store computer-executable instructions, which, when executed, implement the following steps:

[0135] Obtain authentication parameters for resource services to call third-party authentication channels for authentication;

[0136] If the authentication processing parameters of any third-party authentication channel trigger a routing switching condition, calculate the routing index based on the authentication processing parameters of any third-party authentication channel to obtain the routing index;

[0137] The routing intervals of the third-party authentication channels are switched according to the routing indicators to obtain the switching routing intervals of the third-party authentication channels; the switching routing intervals are used to perform routing processing of the authentication requests of the resource services through the routing module.

[0138] It should be noted that the embodiment of a computer-readable storage medium in this specification and the embodiment of a routing processing method in this specification are based on the same inventive concept. Therefore, the specific implementation of this embodiment can refer to the implementation of the aforementioned corresponding method, and the repeated parts will not be repeated.

[0139] An embodiment of a computer program product provided in this specification is as follows:

[0140] Corresponding to the routing processing method described above, based on the same technical concept, one or more embodiments of this specification also provide a computer program product.

[0141] A computer program product comprising a computer program / instructions, which, when executed by a processor, implements the following steps:

[0142] Obtain authentication parameters for resource services to call third-party authentication channels for authentication;

[0143] If the authentication processing parameters of any third-party authentication channel trigger a routing switching condition, calculate the routing index based on the authentication processing parameters of any third-party authentication channel to obtain the routing index;

[0144] The routing intervals of the third-party authentication channels are switched according to the routing indicators to obtain the switching routing intervals of the third-party authentication channels; the switching routing intervals are used to perform routing processing of the authentication requests of the resource services through the routing module.

[0145] It should be noted that an embodiment of a computer program product in this specification and an embodiment of a routing processing method in this specification are based on the same inventive concept. Therefore, the specific implementation of this embodiment can refer to the implementation of the aforementioned corresponding method, and the repeated parts will not be repeated.

[0146] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referred to each other. Each embodiment focuses on the differences from other embodiments. For example, the device embodiment, equipment embodiment and computer-readable storage medium embodiment are similar to the method embodiment, so the description is relatively simple. For relevant content in the device embodiment, equipment embodiment and computer-readable storage medium embodiment, please refer to the partial description of the method embodiment.

[0147] The foregoing description of this specification describes specific embodiments. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims can be performed in an order different from that described in the embodiments and still achieve the desired results. Furthermore, the processes depicted in the accompanying drawings do not necessarily require the specific order shown or the sequential order to achieve the desired results. In certain embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0148] In the 1930s, technological improvements could be clearly distinguished as either hardware improvements (for example, improvements to circuit structures like diodes, transistors, and switches) or software improvements (improvements to process flows). However, with the advancement of technology, many process flow improvements today can be considered direct improvements to hardware circuit structures. Designers almost always create the corresponding hardware circuit structure by programming the improved process flow into the hardware circuit. Therefore, it cannot be said that a process flow improvement cannot be implemented using physical hardware modules. For example, a programmable logic device (PLD), such as a field programmable gate array (FPGA), is an integrated circuit whose logical function is determined by user programming. Designers can "integrate" a digital system on a PLD by programming it themselves, without having to hire a chip manufacturer to design and manufacture a dedicated integrated circuit chip. Moreover, nowadays, instead of manually fabricating integrated circuit chips, this programming is mostly performed using software called a "logic compiler." This is similar to the software compilers used during program development. Before compilation, the original code must be written in a specific programming language, called a Hardware Description Language (HDL). There are many types of HDL, including ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, and RHDL (Ruby Hardware Description Language). Currently, the most commonly used are VHDL (Very-High-Speed ​​Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art will also understand that simply by programming a method flow in one of these hardware description languages ​​and then programming it into an integrated circuit, a hardware circuit that implements the logic method flow can be easily obtained.

[0149] The controller can be implemented in any suitable manner. For example, the controller can take the form of a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro)processor, logic gates, switches, an application-specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller. Examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320. The memory controller can also be implemented as part of the memory control logic. Those skilled in the art will also appreciate that, in addition to implementing the controller purely in computer-readable program code, the controller can also be implemented in the form of logic gates, switches, an application-specific integrated circuit, a programmable logic controller, an embedded microcontroller, etc. by logically programming the method steps. Therefore, such a controller can be considered a hardware component, and the means for implementing the various functions included therein can also be considered as structures within the hardware component. Alternatively, the means for implementing the various functions can be considered both a software module implementing the method and a structure within the hardware component.

[0150] The systems, devices, modules, or units described in the above embodiments may be implemented by computer chips or entities, or by products having certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.

[0151] For the convenience of description, the above devices are described as being divided into various units according to their functions. Of course, when implementing the embodiments of this specification, the functions of each unit can be implemented in the same or multiple software and / or hardware.

[0152] Those skilled in the art will appreciate that one or more embodiments of this specification may be provided as a method, system, or computer program product. Thus, one or more embodiments of this specification may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware. Furthermore, this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0153] This specification is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of this specification. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable test processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable test processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0154] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable test processing equipment to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture comprising an instruction device that implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.

[0155] These computer program instructions may also be loaded onto a computer or other programmable test processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, whereby the instructions executed on the computer or other programmable device provide for implementing the process described in the flow. Figure 1 a process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0156] In a typical configuration, a computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory.

[0157] Memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.

[0158] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can be implemented using any method or technology for information storage. Information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase-change RAM (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices, or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include transitory computer-readable media such as modulated data signals and carrier waves.

[0159] It should also be noted that the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, commodity, or apparatus that includes a list of features includes not only those features but also other features not explicitly listed, or features inherent to such process, method, commodity, or apparatus. In the absence of further limitations, features defined by the phrase "comprising a..." do not preclude the presence of other identical features in the process, method, commodity, or apparatus that includes the features.

[0160] One or more embodiments of this specification may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, and the like that perform specific tasks or implement specific abstract data types. One or more embodiments of this specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected via a communications network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.

[0161] The various embodiments in this specification are described in a progressive manner. Similar parts between the various embodiments can be referred to in conjunction with each other. Each embodiment focuses on the differences between the other embodiments. In particular, the system embodiments are generally similar to the method embodiments, so the description is relatively simple. For relevant parts, refer to the description of the method embodiments.

[0162] The foregoing description is merely an example of the present invention and is not intended to limit the present invention. Persons skilled in the art will readily appreciate that various modifications and variations of the present invention are possible. Any modifications, equivalent substitutions, or improvements made within the spirit and principles of the present invention are intended to be included within the scope of the claims herein.

Claims

1. A routing processing method, applied to a detection module, comprising: Obtain authentication parameters for resource services to call third-party authentication channels for authentication; If the authentication processing parameters of any third-party authentication channel trigger a routing switching condition, calculate the routing index based on the authentication processing parameters of any third-party authentication channel to obtain the routing index; The routing intervals of the third-party authentication channels are switched according to the routing indicators to obtain the switching routing intervals of the third-party authentication channels; the switching routing intervals are used to perform routing processing of authentication requests for the resource services through the routing module; the routing processing includes allocating the authentication requests to the third-party authentication channels corresponding to the switching routing intervals that match the routing parameters; the routing parameters are obtained by parameter calculation based on the random number generated for the authentication request and the routing cumulative value.

2. The routing processing method according to claim 1, wherein allocating the authentication request to the third-party authentication channel corresponding to the switching routing interval that matches the routing parameters comprises: Matching the routing parameters with the switching routing intervals of the third-party authentication channels to obtain the switching routing intervals that match the routing parameters; The third-party authentication channel corresponding to the matched switching routing interval is called to process the authentication request.

3. The routing processing method according to claim 1, wherein the parameter calculation based on the random number generated for the authentication request and the routing cumulative value comprises: generating the random number for the authentication request of the resource service, and updating the route accumulation value based on the random number; The routing parameter is calculated according to the routing cumulative value and the random number to obtain the routing parameter.

4. The routing processing method according to claim 3, wherein the step of calculating the routing parameters based on the routing cumulative value and the random number to obtain the routing parameters comprises: Calculate candidate routing parameters according to the routing cumulative value and the random number; If the candidate routing parameter is less than or equal to the routing threshold, the candidate routing parameter is used as the routing parameter; if the candidate routing parameter is greater than the routing threshold, the candidate routing parameter is modulo-processed based on the routing threshold to obtain the routing parameter.

5. The routing processing method according to claim 1, wherein the switching routing intervals of each third-party authentication channel have corresponding routing priorities; The size of the switching routing interval of each third-party authentication channel is positively correlated with the routing priority; the switching routing interval of each third-party authentication channel is calculated based on the routing ratio and routing threshold corresponding to the routing priority.

6. The routing processing method according to claim 1, wherein the routing intervals of the third-party authentication channels are switched according to the routing indicators to obtain the switched routing intervals of the third-party authentication channels, comprising: Sort the third-party authentication channels according to the routing indicators to obtain routing priorities of the third-party authentication channels; The routing interval of each third-party authentication channel is switched to the switching routing interval corresponding to the routing priority.

7. The routing processing method according to claim 1, wherein the calculating of routing indicators based on the authentication processing parameters of any third-party authentication channel to obtain routing indicators comprises: Update authentication parameter data based on authentication processing parameters of any third-party authentication channel; Calculating the routing indicator based on the authentication processing parameters of each third-party authentication channel in the authentication parameter data and the corresponding parameter weights; The parameter weight is determined based on a threshold of the authentication processing time for the resource service to perform authentication processing.

8. The routing processing method according to claim 7, wherein the calculating the routing indicator based on the authentication processing parameters of each third-party authentication channel in the authentication parameter data and the corresponding parameter weights comprises: Standardize the authentication processing parameters of each third-party authentication channel in the authentication parameter data in accordance with the standardization method corresponding to the parameter attributes of the authentication processing parameters of each third-party authentication channel to obtain standard processing parameters; Calculating the routing metric based on the standard processing parameters and corresponding parameter weights; The parameter attributes include positive parameter attributes and negative parameter attributes.

9. The routing processing method according to claim 1, wherein the authentication processing parameters of any third-party authentication channel include authentication response parameters and / or authentication channel parameters; in, The authentication response parameters include authentication response duration and / or authentication response success rate.

10. The routing processing method according to claim 9, wherein the authentication channel parameter includes at least one of the following: The service provider of the resource service calls any third-party authentication channel to pay the payment fee for calling any third-party authentication channel, the authentication credibility of any third-party authentication channel for authentication processing, and the manual switching parameters used by the service provider to manually switch any third-party authentication channel during the route switching process.

11. The routing processing method according to claim 9, wherein the routing switching condition includes that the difference between the authentication response parameter and the historical authentication response parameter is greater than a difference threshold, or the authentication channel parameter is obtained by changing the parameter based on the change instruction of the historical authentication channel parameter of any third-party authentication channel.

12. The routing processing method according to claim 1, wherein the detection module and the routing module are deployed on the server of the resource service; in, The authentication request of the resource service is generated after detecting a service activation instruction submitted by a user to the resource service or an application task generated by the resource service for the user to apply for resources from a resource organization.

13. A routing processing device, running in a detection module, comprising: A parameter acquisition module is configured to obtain authentication processing parameters used by the resource service to call various third-party authentication channels for authentication processing; an indicator calculation module configured to calculate a routing indicator based on the authentication processing parameters of any third-party authentication channel to obtain a routing indicator if the authentication processing parameters of any third-party authentication channel trigger a routing switching condition; A routing switching module is configured to perform routing switching on the routing intervals of the third-party authentication channels according to the routing indicators to obtain the switching routing intervals of the third-party authentication channels; the switching routing intervals are used to perform routing processing of authentication requests for the resource services through the routing module; the routing processing includes allocating the authentication requests to the third-party authentication channels corresponding to the switching routing intervals that match the routing parameters; the routing parameters are obtained by parameter calculation based on the random number generated for the authentication request and the routing cumulative value.

14. A routing processing device, comprising: processor; and a memory configured to store computer-executable instructions that, when executed, cause the processor to: Obtain authentication parameters for resource services to call third-party authentication channels for authentication; If the authentication processing parameters of any third-party authentication channel trigger a routing switching condition, calculate the routing index based on the authentication processing parameters of any third-party authentication channel to obtain the routing index; The routing intervals of the third-party authentication channels are switched according to the routing indicators to obtain the switching routing intervals of the third-party authentication channels; the switching routing intervals are used to perform routing processing of authentication requests for the resource services through the routing module; the routing processing includes allocating the authentication requests to the third-party authentication channels corresponding to the switching routing intervals that match the routing parameters; the routing parameters are obtained by parameter calculation based on the random number generated for the authentication request and the routing cumulative value.

15. A computer-readable storage medium for storing computer-executable instructions, wherein the computer-executable instructions implement the steps of the method of claim 1 when executed.

Citation Information

Patent Citations

  • Face verification method and device and terminal equipment

    CN116541313A