Financial authentication service routing method and management system
Through decoupling service implementation and system scheduling process, dynamic monitoring and flexible routing strategy selection, the independence and difficulty of financial enterprises in the management of multiple certification services is solved, and efficient and flexible financial certification service management is achieved, reducing the management of financial certification services. Cost and risk.
Patent Information
- Application Number
- CN202411384697.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-30
- Publication Date
- 2024-12-06
AI Technical Summary
When using a variety of certification services, financial enterprises face the problems of service independence, difficulty in expansion and maintenance workload, which makes it difficult to efficiently manage and use financial certification services, and it is difficult to achieve cost reduction and efficiency improvement.
By establishing a mapping relationship between service type and service channel, the service implementation is decoupled from the system scheduling process, identify the service channel status, load the routing strategy, and dynamically monitor the service channel to achieve comprehensive optimization of service quality and cost, and adopt time period-based, Routing strategies for cost, response time and completion rate, flexible selection of service channels.
It realizes the small workload of service access development, strong risk resistance, flexible routing strategy access, flexible service channel switching, and reasonable selection of services with fast response speed and low cost, improving the robustness and user experience of the service cluster, reducing Access and maintenance costs.
Smart Images

Figure CN119094234A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of security authentication technology, and in particular to a financial authentication service routing method and management system. Background Art
[0002] In financial enterprises, multiple authentication methods are required to verify user identities to ensure the security of user transactions. Users are allowed to perform corresponding operations in the system only after completing identity verification. The main authentication services used involve identity authentication services such as personal authentication and person-document authentication, as well as text and image recognition services such as contract recognition, document recognition, business license recognition, bill remittance recognition, and liveness recognition, collectively referred to as financial authentication services. At present, most companies are limited by business scale and R&D costs, so they tend to use authentication services provided by professional technology companies, that is, adopt the SaaS model; in addition, some companies will choose the On-Premise model to obtain services due to data security and performance requirements. In this model, all hardware, software and other related resources are located within the company's own physical boundaries and are managed and maintained by the company itself. The services under the above two modes are called cloud services and local services respectively.
[0003] Normally, in order to avoid the risk of financial authentication services not being able to operate correctly and causing the unavailability of related businesses, enterprises will purchase similar services from multiple authentication vendors at the same time to enhance their ability to cope with failures. Since the authentication systems of various authentication vendors are relatively independent, independent authentication feature databases need to be configured, and it is also difficult to expand access to similar services from other vendors. As the scale and business scope of enterprises continue to expand and the demand for stability continues to increase, the number of accessed services increases accordingly, and the difficulty of implementation and the workload of maintenance also increase rapidly. Therefore, how to efficiently manage and use financial authentication services has become an urgent problem to be solved. In addition, the cost reduction and efficiency improvement requirements of enterprises also require efficient management of financial authentication services to support rapid business innovation. Summary of the invention
[0004] The present invention provides a financial authentication service routing method and management system, which has the advantages of small service access development workload, strong risk resistance, flexible routing strategy access, flexible service channel switching, etc.
[0005] This application provides the following technical solutions:
[0006] The financial authentication service routing method comprises the following steps:
[0007] S1. Establish the mapping relationship between service type, service provider and service channel, and decouple service implementation from system scheduling process;
[0008] S2. Identify the service channel status and establish a service channel identifier;
[0009] S3, identify the financial authentication service request, load the routing policy, and call the service channel;
[0010] S4. Establish dynamic monitoring for the service channel and manage the service channel according to the dynamic monitoring data and routing strategy. The dynamic monitoring includes health, response time, and channel computing capacity.
[0011] Technical principle: Define financial authentication services of various types and service providers as different service channels, set routing policies for service channels of the same type, and call and manage service channels based on routing policies and dynamic monitoring data of service channels.
[0012] Beneficial effects: The financial authentication service system of the present invention can reasonably select services with fast response speed, high response reply rate and low price to meet business needs, and achieve the comprehensive optimization of service quality and service cost;
[0013] The service routing strategy can be reasonably expanded and configured to improve the robustness of services in the entire service cluster.
[0014] Further, the S1 includes:
[0015] S11. Classify financial authentication services into different service types;
[0016] S12. define service channels, each service channel corresponds to a specific service type and a specific service provider;
[0017] S13. Define an abstract class of service type to decouple service implementation from system scheduling process.
[0018] Beneficial effects: Coding and development can be done by focusing only on service access logic and not on call logic, so that new services can be quickly accessed and stably released, achieving efficient expansion of financial authentication services and reducing access and maintenance costs.
[0019] Furthermore, the service types include identity factor authentication, liveness authentication, person-document authentication, and OCR service.
[0020] Furthermore, the service channel identifier includes an available identifier and an abnormal identifier.
[0021] Beneficial effects: By establishing status identification for service channels, service channels with abnormal services can be automatically closed, improving the stability of the financial service base.
[0022] Furthermore, the health of the service channel is updated after each call.
[0023] Beneficial effects: Timely updates of the health of service channels are conducive to system optimization of service routing and improved user experience.
[0024] Furthermore, all available service channels are called periodically and cyclically.
[0025] Beneficial effects: Since there are multiple service channels under the same service type, under the scheduling of routing strategies, some channels may be called only once in a long time. During this period, abnormalities cannot be detected and repaired in time. Therefore, it is necessary to periodically call all channels once and send test messages to check whether the results are abnormal to actively update the health of the channels. The available channels are selected from the candidate service channels according to the routing strategy. Compared with traditional static routing, the routing method is more flexible and access and switching are more convenient.
[0026] Furthermore, the routing strategy includes time period-based disabling, authentication fee-based, channel response time-based, authentication pass rate-based, and service completion rate-based.
[0027] Beneficial effects: By dynamically loading routing strategies, it can better adapt to the needs of different scenarios, different services and different merchants.
[0028] The routing strategy based on time period disablement means setting the enabled time period based on the available time period provided by the channel provider service, and skipping the routing selection during non-time periods; the routing strategy based on authentication fees means giving priority to routing channels with lower fees, which is suitable for scenarios where real-time requirements are not strong and services can be retried; the routing strategy based on channel response time means giving priority to channels with shorter recent response times, which is suitable for scenarios that require good customer experience and fast response speed. This strategy can evaluate the performance of each channel and select the most suitable service, making the adaptability and risk resistance stronger; the routing strategy based on authentication pass rate means calculating the pass rate of each channel, giving priority to channels with high service completion rates, which is suitable for scenarios that require low customer access barriers or have important traffic; the routing strategy based on service completion rate means calculating the service completion rate of each channel, giving priority to channels with high service completion rates, which is suitable for scenarios with low fault tolerance.
[0029] Further, the routing policy may use a global configuration or a customized configuration for a particular merchant.
[0030] Beneficial effects: Routing policy configuration is more flexible, quick selection of global configuration can improve system management efficiency, and customized configuration for special merchants can better focus on the actual needs of merchants.
[0031] Furthermore, the newly added service channels are launched in a grayscale manner.
[0032] Beneficial effect: It can effectively reduce the impact of newly added channels on routing strategies and ensure the overall stability of the system and user experience.
[0033] On the other hand, the present invention provides a financial authentication service management system, including a merchant access and service configuration module, a routing strategy module, a routing scheduling module, a service access and management module, a service pressure and performance monitoring module, and a data storage and cache module, wherein:
[0034] Merchant access and service configuration module, used to record merchants who can use this system, service types and codes provided by this system, define service usage scenarios, merchant available service types, service routing strategies, and service channel information configuration, the service channel information configuration includes channel emergency contact, channel activation time period, channel call fee, and channel activation status;
[0035] The routing strategy module is used to provide a routing strategy interface, automatically scan the routing strategy in the program when the system starts, and display it on the page for the system administrator to select; it is also used to implement dynamic routing strategies, which perform dynamic routing according to the response time of each channel and the health of the service channel;
[0036] The routing scheduling module is used to extract the configuration of the relevant merchant to which the request belongs after the external request reaches this system, and detect whether there is access right, service use right, and service routing strategy; after the basic information is verified, the corresponding routing strategy is loaded and the service channel selection is executed;
[0037] The service access and management module is used to implement the code logic of the access authentication service and encapsulate the returned results to reduce the coupling between services / between services and the system;
[0038] The service pressure and performance monitoring module is used to record service time information, authentication result information, service exception information, etc. after each service call is completed; and actively request services regularly to monitor the connection and availability of each service channel;
[0039] The data storage and cache module is used to store static data and dynamic data used in the routing management process, improve data access efficiency and consistency, and ensure the performance and reliability of the system. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Figure 1 A flow chart of a method for routing financial authentication services;
[0041] Figure 2 is an authentication relationship diagram in the embodiment;
[0042] Figure 3 A schematic diagram of the execution process of the routing strategy in Example 1;
[0043] Figure 4 This is a structural diagram of the financial authentication service routing management system. DETAILED DESCRIPTION
[0044] The following is further described in detail through specific implementation methods:
[0045] Embodiment 1
[0046] This embodiment is a financial authentication service routing method. Figure 1 As shown, the following steps are included:
[0047] S1. Establish the mapping relationship between service type, service provider and service channel, and decouple service implementation from system scheduling process, including:
[0048] S11. Classify financial authentication services into different service types;
[0049] Service type is the classification of financial authentication services, including identity factor authentication, liveness authentication, personal document authentication, OCR services, etc., and is managed according to the classified service types.
[0050] S12. define service channels, each service channel corresponds to a specific service type and a specific service provider;
[0051] Figure 2 The authentication relationship diagram in the present invention is shown. The description of the relevant definitions of service types includes: service type, service channel, and service provider. A variety of service types can be divided into authentication service businesses. Each service type has multiple providers or implementation channels, which are called service channels in the present invention. Each service channel has a corresponding provider, and one provider can provide multiple types. In order to maintain the availability of authentication services, a service type provides at least 2 service channels to ensure that the service type has the ability to fail over. Coding is configured for each service type and service channel.
[0052] The basic information that needs to be recorded for each service channel includes: whether the channel is available, channel provider, channel fee, and channel expiration date. The basic information that needs to be recorded for each service provider includes: name, contact information, instance deployment address, and other information can be supplemented according to actual needs. After the above relationship division, the source of faulty services can be quickly distinguished, and the channel availability of various types of services can be monitored. In addition, it is also convenient to provide various reports and other statistical needs for authentication services from the above three dimensions.
[0053] S13. Define an abstract class of service type to decouple service implementation from system scheduling process.
[0054] According to the granularity of the service type, the common input parameters and common return parameters of each service type are abstracted and used as the basis for each channel implementation. The abstract class of the service type is operated and run in the scheduling process. By decoupling the service implementation from the system scheduling process, the development complexity is reduced, the risk points are reduced, and the cost of function access development is reduced.
[0055] S2. Identify the service channel status and establish a service channel identifier;
[0056] Record the information of each call of each service channel, such as communication status, communication time, response result, current number of concurrent calls, etc., to provide data support for routing decisions. At the same time, actively and passively monitor the status of the channel, promptly cut off the connection with the unavailable channel, and issue a warning through the communication software, and promptly coordinate the development and manufacturer to repair the channel. For each request, the parameters of the request will be recorded in the log, and a channel will be selected from the channel library according to the strategy, and converted into the parameter format supported by the channel, and then the request will be sent to the channel. Finally, the result of the channel return will also be recorded in the log. At the same time, actively detect the channel status, set the channel unavailable after an abnormality is found, avoid traffic entering the abnormal channel, increase the interface time consumption, and continue to detect the channel status, automatically open after the channel returns to normal, and reduce the cost of manual troubleshooting.
[0057] S3, identify the financial authentication service request, load the routing policy, and call the service channel;
[0058] After the connected merchant initiates a financial authentication service request, the routing strategy pre-configured by the administrator is loaded according to the corresponding code of the authentication service type, and the available channel is selected from the service channel library for calling, and the authentication result is returned to the customer, such as Figure 3 shown.
[0059] Administrators can use global configuration to complete unified configuration of routing policies for the same service type, or customize configuration for special merchants, making routing policy configuration more flexible. Unified global configuration can improve system management efficiency, and customized configuration can better focus on the actual needs of merchants.
[0060] Configurable routing policies include time-based disabling, authentication fee-based, channel response time-based, authentication pass rate-based, and service completion rate-based.
[0061] The routing strategy based on time period disablement means setting the enabled time period based on the available time period provided by the channel provider service, and skipping the routing selection during non-time periods; the routing strategy based on authentication fees means giving priority to routing channels with lower fees, which is suitable for scenarios where real-time requirements are not strong and services can be retried; the routing strategy based on channel response time means giving priority to channels with shorter recent response times, which is suitable for scenarios that require good customer experience and fast response speed. This strategy can evaluate the performance of each channel and select the most suitable service, making the adaptability and risk resistance stronger; the routing strategy based on authentication pass rate means calculating the pass rate of each channel, giving priority to channels with high service completion rates, which is suitable for scenarios that require low customer access barriers or have important traffic; the routing strategy based on service completion rate means calculating the service completion rate of each channel, giving priority to channels with high service completion rates, which is suitable for scenarios with low fault tolerance.
[0062] By dynamically loading different routing strategies, different services and different merchants can use different routing strategies. The available channels are selected from the candidate service channels according to the routing strategy. Compared with the traditional static routing, the routing method is more flexible and the access and switching are more convenient.
[0063] S4. Establish dynamic monitoring of the service channel and manage the service channel according to the dynamic monitoring data and routing strategy.
[0064] Dynamic monitoring of each service channel includes health, response time, and channel computing capacity, and recording of relevant data is used as a basis for dynamic routing management.
[0065] Monitor the health of the service channel: For each call to the service, the health of the service will be updated according to the call result. If the service fails or is abnormal due to network or internal errors, the channel will be recorded as abnormal. If a certain number of abnormalities occur during monitoring or execution, the service will be set to an unavailable state and will not enter the routing selection. It will be set to an available state again after automatic monitoring is normal.
[0066] Monitor service channel response time: Provide a queue for each service channel, record the duration of each request within the window time (such as the last hour) or the number of window requests (such as the last 100 times), and calculate the average duration and peak duration.
[0067] Monitoring service channel computing power: Service channel computing power refers to the completion rate of authentication services under the same data conditions. Taking image data as an example, different channels support different image sizes, and it may happen that channel A fails authentication, while channel B passes authentication. In this way, the computing power of B is better than that of A. Therefore, the service completion rate of each channel within a month (number of completed authentications / number of authentications) is defined as a monitoring indicator. In addition, the channel authentication pass rate (authentication pass / number of authentications) can also be counted as a reference for the business to give priority to certain channels in order to achieve a higher pass rate.
[0068] When an abnormal channel is found during channel monitoring, an alarm message will be sent to the management personnel through SMS or DingTalk to remind them to adjust the channel in time. At the same time, the management system will select available channels from the service channel library in a loop and switch the abnormal channel to the newly selected available channel. The switching result will be judged. If the switching fails, an alarm will be generated. If the switching succeeds, it will be written into the log record of the authentication service.
[0069] Since there may be multiple service channels under the same service type, some channels may be called only once in a long time under the scheduling of routing policies. During this period, abnormalities cannot be detected and repaired in time. Therefore, it is necessary to periodically call all channels and send test messages to actively update the health of the channels.
[0070] Embodiment 2
[0071] In actual applications, the financial authentication service system may introduce new service providers, and correspondingly, new service channels need to be connected to the system. The service quality of the new channel has not been verified in practice, and there is a certain risk in the service quality. In order to reduce system risks, for newly added channel functions, when they are newly launched, they will go through a grayscale application period. The channel will only process a part of the normal traffic (such as: 1 / 10, which is configurable), and the rest will be routed to the next channel. After accumulating a certain amount of traffic (such as: 100 times, which is configurable) and there are no abnormalities, it will leave the grayscale application period, and the traffic will be routed to the channel as normal, so as to automatically control the grayscale release and reduce the service quality risk that may be caused by the instability of the new channel.
[0072] Embodiment 3
[0073] In this embodiment, the routing strategy is further optimized, the optimal service channel is selected based on the real-time pass rate, the number of channel attempts is reduced, the request link is reduced, and the request response time is accelerated; and when the abnormal conditions are met, the abnormal service channel is automatically closed or the service channel is limited. The following steps are included:
[0074] 1. Based on the sentinel sliding window, the authentication pass rate and response time of each channel are calculated in real time;
[0075] 2. Choose a strategy that prioritizes response time or pass rate based on business needs to optimize user experience and business success rate;
[0076] 3. If there are alternative channels, channels with low authentication pass rates or long response times will be temporarily limited and alarmed to reduce the impact of abnormal channels on the business.
[0077] Embodiment 4
[0078] This embodiment is a financial authentication service routing management system. Figure 4 As shown, it includes merchant access and service configuration module, routing strategy module, routing scheduling module, service access and management module, service pressure and performance monitoring module, data storage and cache module, among which:
[0079] Merchant access and service configuration module, used to record merchants who can use this system, service types and codes provided by this system, define service usage scenarios, merchant available service types, service routing strategies, and service channel information configuration, the service channel information configuration includes channel emergency contact, channel activation time period, channel call fee, and channel activation status;
[0080] The routing strategy module is used to provide a routing strategy interface, automatically scan the routing strategy in the program when the system starts, and display it on the page for the system administrator to select; it is also used to implement dynamic routing strategies, which perform dynamic routing according to the response time of each channel and the health of the service channel;
[0081] The routing scheduling module is used to extract the configuration of the relevant merchant to which the request belongs after the external request reaches this system, and detect whether there is access right, service use right, and service routing strategy; after the basic information is verified, the corresponding routing strategy is loaded and the service channel selection is executed;
[0082] The service access and management module is used to implement the code logic of the access authentication service and encapsulate the returned results to reduce the coupling between services / between services and the system;
[0083] The service pressure and performance monitoring module is used to record service time information, authentication result information, service exception information, etc. after each service call is completed; and actively request services regularly to monitor the connection and availability of each service channel;
[0084] The data storage and cache module is used to store static data and dynamic data used in the routing management process, improve data access efficiency and consistency, and ensure the performance and reliability of the system.
[0085] The specific working process of each module is as described in Example 1.
[0086] The above are only embodiments of the present invention. The invention is not limited to the field involved in this implementation case. The common knowledge such as the known specific structure and characteristics in the scheme is not described in detail here. It should be pointed out that for those skilled in the art, several deformations and improvements can be made without departing from the structure of the present invention, which should also be regarded as the protection scope of the present invention, and these will not affect the effect of the implementation of the present invention and the practicality of the patent. The scope of protection required by this application shall be based on the content of its claims, and the specific implementation methods and other records in the specification can be used to interpret the content of the claims.
Claims
1. Financial authentication service routing method, It is characterized in that The following steps are involved: S1. Establish the mapping relationship between service type, service provider and service channel, and decouple service implementation from system scheduling process; S2. Identify the service channel status and establish a service channel identifier; S3, identify the financial authentication service request, load the routing policy, and call the service channel; S4. Establish dynamic monitoring for the service channel and manage the service channel according to the dynamic monitoring data and routing strategy. The dynamic monitoring includes health, response time, and channel computing capacity.
2. The financial authentication service routing method according to claim 1, It is characterized in that The S1 includes: S11. Classify financial authentication services into different service types; S12. define service channels, each service channel corresponds to a specific service type and a specific service provider; S13. Define an abstract class of service type to decouple service implementation from system scheduling process.
3. The financial authentication service routing method according to claim 2, Features: The service types include identity factor authentication, liveness authentication, person-document authentication, and OCR services.
4. The financial authentication service routing method according to claim 1, Features: The service channel identifier includes an available identifier and an abnormal identifier.
5. The financial authentication service routing method according to claim 1, Features: Updates the health of the service channel after each call.
6. The financial authentication service routing method according to claim 5, Features: All available service channels are called periodically in a loop.
7. The financial authentication service routing method according to claim 1, Features: The routing strategies include time period-based disabling, authentication fee-based, channel response time-based, authentication pass rate-based, and service completion rate-based.
8. The financial authentication service routing method according to claim 1, Features: The routing policy may use a global configuration or a custom configuration for a particular merchant.
9. The financial authentication service routing method according to any one of claims 1 to 8, Features: New service channels will be launched in a grayscale manner.
10. Financial authentication service routing management system, Features: It includes merchant access and service configuration module, routing strategy module, routing scheduling module, service access and management module, service pressure and performance monitoring module, data storage and cache module, among which: Merchant access and service configuration module, used to record merchants who can use this system, service types and codes provided by this system, define service usage scenarios, merchant available service types, service routing strategies, and service channel information configuration, the service channel information configuration includes channel emergency contact, channel activation time period, channel call fee, and channel activation status; The routing strategy module is used to provide a routing strategy interface, automatically scan the routing strategy in the program when the system starts, and display it on the page for the system administrator to select; it is also used to implement dynamic routing strategies, which perform dynamic routing according to the response time of each channel and the health of the service channel; The routing scheduling module is used to extract the configuration of the relevant merchant to which the request belongs after the external request reaches this system, and detect whether there is access right, service use right, and service routing strategy; after the basic information is verified, the corresponding routing strategy is loaded and the service channel selection is executed; The service access and management module is used to implement the code logic of the access authentication service and encapsulate the returned results to reduce the coupling between services / between services and the system; The service pressure and performance monitoring module is used to record service time information, authentication result information, service exception information, etc. after each service call is completed; and actively request services regularly to monitor the connection and availability of each service channel; The data storage and cache module is used to store static data and dynamic data used in the routing management process, improve data access efficiency and consistency, and ensure the performance and reliability of the system.
