Multi-application request parameter verification optimization method

By providing SDK in the back-end support service, we solve the problem of asynchronous modification of parameter verification rules in multi-module applications, achieve the consistency and efficiency improvement of parameter verification logic, reduce resource waste and remote verification pressure, and ensure Real-time update of verification logic.

CN118535455APending Publication Date: 2024-08-23CHINA TELECOM CLOUD TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410482921.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-22
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

In multi-module combined applications, existing technical solutions have the risk of out-of-sync modification of parameter verification rules, resulting in inconsistent verification logic between sub-business applications and back-end support systems, increasing connection overhead and pressure, and separate verification services It may become a bottleneck for business requests.

Method used

By providing an SDK in the back-end support service, each dependent component is allowed to quickly integrate parameter verification logic and determine whether to turn on the parameter verification filter switch. If it is turned on, the verification will not be repeated; if it is turned off, the verification logic of the associated component will be judged. Consistency, select local verification or remote verification to ensure the consistency of the parameter verification strategy.

Benefits of technology

It achieves the consistency of parameter verification logic, avoids repeated development and waste of resources, reduces the pressure on remote verification services, shortens the effective time of verification logic adjustment, and ensures real-time update and effectiveness of parameter verification.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118535455A
    Figure CN118535455A
Patent Text Reader

Abstract

The invention relates to a multi-application request parameter verification optimization method, which belongs to the technical field of computers, and comprises the following steps: developing a component integrated SDK (Software Development Kit); when the component integration SDK receives the request, whether parameter verification needs to be executed again or not is judged firstly; if yes, whether the verification logic of the SDK on which the associated component depends for the current interface is consistent or not is judged, then a parameter verification strategy of the current interface is recognized according to configuration, and the same parameter verification strategy is configured for the whole application, or different parameter verification strategies are configured according to the service module and the interface; and different interfaces execute parameter verification according to the actually effective parameter verification strategy to obtain a parameter verification result. According to the invention, repeated development of each component during verification logic adjustment and real-time updating of the SDK by the application during parameter rule modification can be avoided, and the request pressure of remote verification service can be effectively shared.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of computer technology, and in particular relates to a multi-application request parameter verification optimization method. Background Art

[0002] With the development of network information technology, the use of Internet applications is becoming more and more extensive. At the same time, the business data received by Internet applications is also increasing. In order to ensure the normal operation of the application, the interface parameters need to be verified. However, the functions provided by an Internet application often integrate multiple sub-business applications to provide external services. Different sub-business applications may rely on the same back-end support system at the same time.

[0003] If the requests received by different sub-business systems all go through the same backend support system and perform the same input parameter verification, if the sub-business system does not perform the corresponding parameter verification and the backend service performs the verification directly, when the parameters are illegal, it will waste the connection overhead between the sub-business application and the backend support system and increase the backend service pressure invisibly. If the sub-business application performs the corresponding input parameter verification, when the same business input parameter verification rules are adjusted, different sub-business applications need to adjust the verification rules, resulting in a waste of resources; if the parameter verification of the sub-business application is not synchronized in time, the parameters supported by different business applications may be inconsistent, affecting the customer experience.

[0004] In the application of multi-module combination, the existing technical solution is mainly to verify the sub-application and the back-end support system at the same time, but there is a risk of verification rule modification being out of sync. It is possible that the back-end support system has relaxed a certain restriction, but the sub-business application has not relaxed the restriction in time, resulting in parameter verification failure. Figure 1 As shown in the figure, if the verification logic of parameter check A, parameter check B, and parameter check C is adjusted, all three components need to be adjusted, otherwise the verification logic may be inconsistent. If parameter check C releases the mandatory restriction of parameter P, and parameter check A does not modify the verification logic synchronously, the request without parameter P will be rejected by the second business component, resulting in the business adjustment of parameter check not taking effect in time.

[0005] The existing technical solution 2 in multi-module applications is to add a separate verification service to implement configuration verification. The disadvantage is that multiple application systems call the verification service at the same time, and the verification service needs to provide high availability and be robust enough to bear the parameter verification pressure of all business systems. At the same time, because the verification is a cross-system call, there is a network time-consuming overhead. Figure 2As shown in the figure, parameter check A, parameter check B, and parameter check C are actually parameter checks performed by calling the parameter check component. Although the parameter check logic adjustment only needs to adjust the check logic of the parameter check component, there is more network overhead when parameter check A, parameter check B, parameter check C interact with the parameter check component, and the parameter check component needs to undertake parameter checks for all application requests. The parameter check component may become a bottleneck for business request calls. Summary of the invention

[0006] In order to solve the optimization problem of parameter verification in the scenario where multiple business applications rely on backend support services, multiple sub-business applications can better complete parameter verification in advance, and the verification rules can be better kept consistent when the parameter verification rules change. The present invention provides SDK through backend support services to allow each dependent component to quickly integrate and complete the logic implementation of parameter verification.

[0007] To achieve the above object, the present invention provides a multi-application request parameter verification optimization method, comprising:

[0008] Develop component integration SDK for business systems with multiple business components and dependencies between components and the same parameter verification requirements;

[0009] When the component integration SDK receives the request, the component integration SDK determines whether to perform parameter verification again based on the configuration identification whether to turn on the parameter verification filter switch; if the parameter verification filter switch is turned on and the parameter verification identifier is verified, the parameter verification is not repeated and the corresponding application business processing is directly executed;

[0010] If the parameter verification filter switch is turned off and a parameter verification request needs to be executed, determine whether the verification logic of the SDK that the associated component depends on for the current interface is consistent, and obtain a determination result;

[0011] Based on the judgment result, the component integration SDK identifies the parameter verification strategy of the current interface according to the configuration, and configures the same parameter verification strategy for the entire application, or configures different parameter verification strategies according to the business module and interface; different interfaces perform parameter verification according to the actual effective parameter verification strategy to obtain parameter verification results.

[0012] Furthermore, the process of determining whether the verification logic of the SDK that the associated component depends on for the current interface is consistent includes:

[0013] If the SDK that the associated component depends on has the same verification logic for the current interface, the parameter verification strategy selects local verification, and directly executes the local verification of the SDK without calling the remote verification service for parameter verification; if the verification passes, the business processing is directly executed, and if the verification fails, the request is directly rejected.

[0014] Furthermore, the process of determining whether the verification logic of the SDK that the associated component depends on for the current interface is consistent includes:

[0015] If the SDK that the associated component depends on has inconsistent verification logic for the current interface, and the application receiving the request integrates an old SDK with fewer parameter restrictions than the actual latest SDK, a parameter verification strategy that prohibits priority is configured for the current interface. After the request is passed, the remote verification service is called again to perform parameter verification to ensure that the final parameter verification logic is consistent.

[0016] Furthermore, the process of determining whether the verification logic of the SDK that the associated component depends on for the current interface is consistent includes:

[0017] If the SDK that the associated component depends on has inconsistent verification logic for the current interface, and the application receiving the request integrates an old SDK that has more parameter restrictions than the actual latest SDK, a parameter verification strategy with permission priority is configured for the current interface, and the remote verification service is called again to perform parameter verification for scenarios where the request fails, to ensure that the final parameter verification logic is consistent.

[0018] Furthermore, the process of determining whether the verification logic of the SDK that the associated component depends on for the current interface is consistent also includes:

[0019] If the SDK that the associated component depends on has inconsistent verification logic for the current interface, and the application receiving the request is integrated with an old SDK that has both additional and missing parameter restrictions compared to the actual latest SDK, then a parameter verification strategy for remote verification is configured for the current interface, and the request is to directly call the remote verification service without performing local SDK parameter verification.

[0020] Furthermore, the process of configuring the same parameter verification strategy for the entire application, or configuring different parameter verification strategies according to business modules and interfaces includes:

[0021] When the application SDK is the latest version, the parameter verification strategy selects SDK local verification, and the local verification result is directly used;

[0022] When the application SDK is not the latest version and some parameters are free of constraints, the permission-first parameter verification strategy is selected to perform SDK local verification combined with remote verification services. If the SDK local verification passes, the business process will continue directly. If the SDK local verification fails, the remote verification service will be called to perform parameter verification and the result of the remote verification service will be used as the basis.

[0023] When the application SDK is not the latest version and parameter verification adds some constraints, the parameter verification strategy with priority of prohibition is selected to perform SDK local verification combined with remote verification service. If the SDK local verification fails, the request is terminated directly. If the SDK local verification passes, the remote verification service is called to continue parameter verification, and the result of the remote verification service shall prevail.

[0024] When the application SDK is not the latest version and the interface parameters have both added constraints and removed constraints, the remote verification strategy is selected, and the SDK local verification is not performed. The result of the remote verification service is directly used.

[0025] Furthermore, the process of performing parameter verification on different interfaces according to the parameter verification policy actually in effect includes:

[0026] The client requests the interface of the first business component, the first business component calls the supporting component to perform supporting business processing, and the first business component and the supporting component perform the same parameter verification, and the verification function is consistent through the component integration SDK.

[0027] Furthermore, the process of performing parameter verification on different interfaces according to the parameter verification policy actually in effect includes:

[0028] When the component integration SDK version of the first business component is the same as that of the supporting component, the request received by the first business component performs parameter verification in the business component;

[0029] After the first business component calls the support component to perform business processing and performs request parameter verification, the support component passes the filtering through the parameter verification filter switch and the request parameter verification identifier verification, and does not repeat the parameter verification.

[0030] Furthermore, the process of performing parameter verification on different interfaces according to the parameter verification strategy actually in effect also includes:

[0031] When the client calls the second business component interface whose business component and supporting component integration SDK versions are different, the parameter verification logic to be executed is selected through the parameter verification strategy;

[0032] If the parameter verification logic of the second business component interface currently called has not been adjusted, the SDK local verification is used directly; if the parameter verification logic of the second business component interface currently called is inconsistent with the supporting component verification logic, verification is performed through the parameter verification strategies of permission priority, rejection priority, and remote verification, and the actual parameter verification is implemented through the verification service.

[0033] Furthermore, the parameter verification strategy includes local verification, permission priority, prohibition priority, and remote verification;

[0034] The parameter verification strategy supports policy configuration at the interface granularity. If the interface verification strategy does not need to be customized, the entire sub-application will configure a unified strategy; if the interface needs to configure the verification strategy independently, a customized configuration will be performed;

[0035] The parameter verification strategy supports dynamic loading of configuration to take effect. When the backend verification logic is adjusted, the verification logic is consistent by modifying the configuration of the sub-application.

[0036] The beneficial effects of the present invention are as follows:

[0037] The present invention realizes the consistency of the verification logic of the same parameters of business components by developing SDK for integration of various application components. SDK supports local verification and calling remote verification services for parameter verification. The local verification method of integrating SDK can avoid repeated development of various components when the verification logic is adjusted; it supports calling remote verification services to perform parameter verification to avoid the application to update SDK in real time when the parameter rules are modified; the local verification plus remote verification method can effectively share the request pressure of the remote verification service.

[0038] The present invention realizes the consistency guarantee of parameter verification logic involving multiple components in requests, realizes that parameter verification logic adjustment can be updated and take effect in real time, avoids verification logic inconsistency caused by inconsistent component update and upgrade frequencies, realizes SDK local verification to avoid all requests penetrating to the verification service to uniformly complete parameter verification, and shortens the effectiveness time of the whole process verification logic adjustment. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] The accompanying drawings are only used to illustrate specific embodiments and are not considered to limit the present invention. In the entire drawings, the same reference symbols represent the same components. Obviously, the drawings described below are only some embodiments recorded in the embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained based on these drawings.

[0040] Figure 1 This is a diagram of authentication interaction of multiple components in an embodiment of the present invention;

[0041] Figure 2 This is an interactive diagram of a multi-component auction house parameter verification service according to an embodiment of the present invention;

[0042] Figure 3 It is a component integration SDK interaction diagram of an embodiment of the present invention;

[0043] Figure 4 The figure is a schematic diagram of the SDK parameter verification process according to an embodiment of the present invention. DETAILED DESCRIPTION

[0044] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present invention, the technical solutions of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all of the embodiments. It should be understood that these descriptions are only exemplary and are not intended to limit the scope of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in the field without making creative work should fall within the scope of protection of the present invention.

[0045] Furthermore, in the following description, descriptions of well-known structures and technologies are omitted to avoid unnecessarily obscuring the concepts disclosed in the present invention.

[0046] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the orientation or position relationship indicated by the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inside", "outside", etc. is based on the orientation or position relationship shown in the drawings, which is only for the convenience of describing the present invention and simplifying the description, and does not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation of the present invention. In addition, the terms "first", "second", and "third" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. The terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be a connection between the two elements. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0047] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of methods and systems consistent with some aspects of the present invention as detailed in the appended claims.

[0048] This embodiment involves a multi-application scenario in which parameter verification pre-processing can effectively filter out illegal requests, and provides a multi-application request parameter verification optimization method, which is mainly implemented through SDK to optimize the parameter verification of applications with multiple modules, thereby making the parameter verification logic between applications more consistent.

[0049] Method Embodiment

[0050] The present invention provides a method for optimizing multi-application request parameter verification, which specifically includes the following steps:

[0051] Develop component integration SDK for business systems with multiple business components and dependencies between components and the same parameter verification requirements;

[0052] When the component integration SDK receives the request, the component integration SDK determines whether to perform parameter verification again based on the configuration to identify whether the parameter verification filter switch is turned on; if the parameter verification filter switch is turned on and the parameter verification identifier verification passes, the parameter verification is not repeated and the corresponding application business processing is directly executed; among which, whether the parameter verification identifier verification passes or not is determined based on the key string calculated by the encryption algorithm of the parameters provided by the SDK;

[0053] If the parameter verification filter switch is turned off and a parameter verification request needs to be executed, determine whether the verification logic of the SDK that the associated component depends on for the current interface is consistent and obtain the judgment result;

[0054] Based on the judgment results, the component integration SDK identifies the parameter verification strategy of the current interface according to the configuration, and configures the same parameter verification strategy for the entire application, or configures different parameter verification strategies according to business modules and interfaces; different interfaces perform parameter verification according to the actual effective parameter verification strategy to obtain parameter verification results.

[0055] Specifically, Figure 4 As shown, the process of determining whether the verification logic of the SDK that the associated component depends on for the current interface is consistent includes:

[0056] If the SDKs that the associated components depend on have the same verification logic for the current interface, the parameter verification strategy selects local verification and directly executes the local verification of the SDK without calling the remote verification service for parameter verification; if the verification passes, the business processing is directly executed; if the verification fails, the request is directly rejected.

[0057] Specifically, Figure 4 As shown, the process of determining whether the verification logic of the SDK that the associated component depends on for the current interface is consistent includes:

[0058] If the SDK that the associated component depends on has inconsistent verification logic for the current interface, and the application receiving the request integrates an old SDK with fewer parameter restrictions than the actual latest SDK, such as the new SDK restricting P1, P2, and P3 to be filled in, and the old SDK only restricting P1 and P2 to be filled in. Request R1 without P1 cannot pass the verification of the new and old SDKs, which is consistent with the actual parameter verification logic; request R2 without P3 can pass the verification of the old SDK, but cannot pass the verification of the new SDK, which is inconsistent with the actual parameter verification logic; then configure the parameter verification policy that prohibits priority for the current interface, and call the remote verification service again to perform parameter verification after the request is passed to ensure that the final parameter verification logic is consistent.

[0059] Specifically, Figure 4 As shown, the process of determining whether the verification logic of the SDK that the associated component depends on for the current interface is consistent includes:

[0060] If the SDK that the associated component depends on has inconsistent verification logic for the current interface, and the application receiving the request integrates an old SDK with more parameter restrictions than the actual latest SDK, such as the old SDK restricts P1, P2, and P3 to be filled in, while the new SDK only restricts P1 and P2 to be filled in. Request R1 without P3 cannot pass the verification of the old and new SDKs, which is consistent with the actual parameter verification logic; request R2 without P3 can pass the verification of the new SDK, but cannot pass the verification of the old SDK, which is inconsistent with the actual parameter verification logic; then configure the parameter verification strategy with permission priority for the current interface, and call the remote verification service again to perform parameter verification for the scenario where the request fails, to ensure the final parameter verification logic is consistent.

[0061] Specifically, Figure 4 As shown, the process of determining whether the verification logic of the SDK that the associated component depends on for the current interface is consistent also includes:

[0062] If the SDK that the associated component depends on has inconsistent verification logic for the current interface, and the application receiving the request integrates an old SDK that has both additional and fewer parameter restrictions than the actual latest SDK, such as the old SDK restricting P1, P2, and P3 to be filled in, while the new SDK only restricts P1, P2, and P4 to be filled in. Request R1 without P3 cannot pass the verification of the old SDK, but can pass the verification of the new SDK, which is inconsistent with the actual parameter verification logic; request R2 without P4 can pass the verification of the old SDK, but cannot pass the verification of the new SDK, which is inconsistent with the actual parameter verification logic; then configure the parameter verification strategy of remote verification for the current interface, request to directly call the remote verification service, and do not perform local SDK parameter verification.

[0063] Specifically, the process of configuring the same parameter verification strategy for the entire application, or configuring different parameter verification strategies according to business modules and interfaces includes:

[0064] When the application SDK is the latest version, the parameter verification strategy selects SDK local verification, and the local verification result is directly used;

[0065] When the application SDK is not the latest version and some parameters are free of constraints, the permission-first parameter verification strategy is selected to perform SDK local verification combined with remote verification services. If the SDK local verification passes, the business process will continue directly. If the SDK local verification fails, the remote verification service will be called to perform parameter verification and the result of the remote verification service will be used as the basis.

[0066] When the application SDK is not the latest version and parameter verification adds some constraints, the parameter verification strategy with priority of prohibition is selected to perform SDK local verification combined with remote verification service. If the SDK local verification fails, the request is terminated directly. If the SDK local verification passes, the remote verification service is called to continue parameter verification, and the result of the remote verification service shall prevail.

[0067] When the application SDK is not the latest version and the interface parameters have both added constraints and removed constraints, the remote verification strategy is selected, and the SDK local verification is not performed. The result of the remote verification service is directly used.

[0068] Specifically, the process of performing parameter verification on different interfaces according to the parameter verification policy that is actually in effect includes:

[0069] The customer requests the interface of the first business component, the first business component calls the supporting component to perform supporting business processing, and the first business component and the supporting component perform the same parameter verification, and the verification function is consistent through the component integration SDK.

[0070] Specifically, the process of performing parameter verification on different interfaces according to the parameter verification policy that is actually in effect includes:

[0071] When the component integration SDK version of the first business component is the same as that of the supporting component, the request received by the first business component performs parameter verification in the business component;

[0072] After the first business component calls the support component to perform business processing and performs request parameter verification, the support component passes the filtering through the parameter verification filter switch and the request parameter verification identifier verification, and does not repeat the parameter verification.

[0073] Specifically, the process of performing parameter verification on different interfaces according to the parameter verification policy that is actually in effect also includes:

[0074] When the client calls the second business component interface whose business component and supporting component integration SDK versions are different, the parameter verification logic to be executed is selected through the parameter verification strategy;

[0075] If the parameter verification logic of the second business component interface currently called has not been adjusted, the SDK local verification is used directly; if the parameter verification logic of the second business component interface currently called is inconsistent with the supporting component verification logic, verification is performed through the parameter verification strategies of permission priority, rejection priority, and remote verification, and the actual parameter verification is implemented through the verification service.

[0076] Specific optimization solutions, such as Figure 3As shown in the figure, the business A component, business B component, support component, and verification component actually involved in the customer request all use the integrated verification SDK to achieve consistent parameter verification logic.

[0077] When the SDK versions of the components associated with the request are consistent, the SDK is directly verified locally. For example, if the request involves business B component and supporting component, because both are integrated with SDK1.3, the verification logic on both sides is the same, then business B component performs SDK local verification, and the local verification result shall prevail.

[0078] When the SDK versions of the components associated with the request are inconsistent, it is necessary to identify whether the verification logic of the current interface in the two SDKs is consistent. If they are consistent, local verification can be performed; if they are inconsistent, the verification component is called to perform the final parameter verification. For example, if the request involves business A component and support component, because business A component is integrated with SDK1.2 and support component is integrated with SDK1.3, the parameter verification logic may be inconsistent. Therefore, according to the actual request, it is necessary to identify whether the parameter verification needs to rely on the public verification component for combination implementation. At this time, business A component configures different verification strategies to achieve the consistency of the final verification.

[0079] When business component A receives a request, it performs parameter verification and obtains the corresponding verification strategy class according to the interface to execute the verification process. If the remote verification component still needs to be called for parameter verification after local verification, the verification component is called to perform parameter verification. The verification result is based on the result of the verification component's response.

[0080] The supporting component is a backend component. If the frontend component has performed parameter verification and the parameters forwarded by the frontend component to the backend component will not be modified, the backend component will ignore this parameter verification by configuring whether the filter has been verified and the request has a verified flag.

[0081] Specifically, Figure 3 As shown, when the customer requests the interface of business B component, business B component calls the supporting component to perform related supporting business processing. At this time, business B component and the supporting component perform the same parameter verification, and the consistency of the verification function is achieved through the component integration SDK.

[0082] like Figure 3 As shown in the figure, when the business B component and the support component are integrated with the latest SDK1.3.0, the request received by the business B component only needs to perform parameter verification in the business component; when the business B component calls the support component to perform related business processing, because the business B component has performed request parameter verification, the support component does not need to perform parameter verification again. At this time, the parameter verification filter switch is passed and the request parameter verification flag verification passes the filtering, and the parameter verification is not repeated.

[0083] like Figure 3 As shown, when the customer calls the interface of business A component, because the SDK version integrated with business A component is inconsistent with the SDK version integrated with the supporting component, there may be a scenario where the parameter verification logic is inconsistent. At this time, the parameter verification strategy is used to select which verification logic to execute. If the parameter verification logic of the currently called business A component interface has not been adjusted, the SDK local verification is used directly; if the parameter verification logic of the currently called business A component interface is inconsistent with the supporting component verification logic, the verification is performed through the permission priority, rejection priority, and remote verification strategies. At this time, the actual parameter verification is implemented through the verification service.

[0084] like Figure 3 As shown, if the request received by the support component is initiated by the business A component or business B component integrated with the SDK, the support component does not repeat the parameter verification through the parameter verification mark. If the support component receives a request from other components that are not integrated with the SDK, it is necessary to perform parameter verification at this time because there is no parameter verification mark for verification.

[0085] like Figure 3 As shown, if the request received by the support component needs to perform parameter verification, and the SDK that the support component depends on is inconsistent with the SDK that the verification component depends on, the parameter verification strategy of the current interface is identified according to the configuration to determine whether to use the local SDK verification or call the parameter verification service to perform parameter verification.

[0086] Specifically, parameter verification strategies include local verification, permission priority, prohibition priority, and remote verification;

[0087] Local verification: The result of local parameter verification performed by SDK shall prevail;

[0088] License priority: If the SDK fails to perform local parameter verification, the remote verification service will be called to perform parameter verification;

[0089] Prohibit priority: The scenario where the SDK performs local parameter verification and passes it needs to call the remote verification service to perform parameter verification;

[0090] Remote verification: Do not perform SDK local parameter verification, but directly call the remote verification service to perform parameter verification.

[0091] The parameter verification strategy supports policy configuration based on the interface granularity. If the interface verification strategy does not need to be customized, the entire sub-application will be configured with one strategy. If the interface needs to be independently configured with a verification strategy, customized configuration will be performed.

[0092] The parameter verification strategy supports dynamic loading of configuration to take effect, avoiding service restart. When the backend verification logic is adjusted, the verification logic is consistent by modifying the configuration of the sub-application. If the SDK performs parameter verification, a verification flag will be added when calling the backend support system to inform the backend service that this parameter has been verified and does not need to be repeated.

[0093] The present invention relates to multiple applications, and each application does not need to develop and synchronize parameter verification logic. The verification logic consistency of the same request parameters among the applications is achieved by integrating and updating the SDK.

[0094] The inconsistent update and release frequencies of various applications may lead to inconsistency in the verification SDK versions integrated into the applications that actually provide services. The logic of SDK local parameter verification may be inconsistent. The present invention achieves consistency in verification logic by configuring parameter verification strategies and adding remote verification services.

[0095] For some scenarios where the application requests for internal interactions will not be tampered with, the first-layer application can implement parameter verification. Subsequent applications only need to determine whether the previous application has performed parameter verification. If it has, this verification can be ignored.

[0096] The present invention implements parameter verification by integrating SDK, which can avoid repeated writing of verification logic related codes for different applications, and avoid the risk of inconsistent actual verification logic of codes written by different applications. In scenarios where the verification logic needs to be adjusted, only the verification logic of SDK needs to be adjusted, and other components can achieve consistency of verification logic by updating SDK, including unified remote verification services can also be verified by integrating SDK, so as to achieve consistency of parameter verification logic of all applications.

[0097] The SDK of the present invention supports multiple verification strategy options including local verification, permission priority, prohibition priority, and remote verification. In the context that the application SDK is not updated in time, the verification strategy can be adjusted to adapt to the verification logic adjustment of different scenarios. When using a strategy based on non-local verification, the verification logic of different applications can be consistent through configuration adjustment.

[0098] The SDK verification strategy of the present invention can support multi-dimensional configuration, such as the entire SDK taking effect, or a specified method taking effect, or a specified business module taking effect. When the rule adjustment SDK is not updated in time, the strategy change can be achieved in the smallest scope.

[0099] The SDK of the present invention supports parameter verification filtering. When a request needs to be processed interactively between multiple applications, multiple parameter verifications may be performed, resulting in resource overhead for repeated verifications. With the parameter verification filtering function, after the first application performs parameter verification, the signature of the verified parameters can be transparently transmitted to other applications. Other applications can determine whether to repeat the parameter verification based on parameter identification, whether to enable parameter verification filtering, and whether the request carries the correct signature of the corresponding parameters, thereby avoiding the need for repeated parameter verification of components called later.

[0100] The SDK of the present invention supports dynamic loading and validation of configuration parameters. Policy modification generally belongs to the modification of configuration items, and general applications may use restart to make the configuration effective. The present invention can avoid service restart and service interruption by dynamically loading and validating.

[0101] In a second aspect, the present invention provides an electronic device, comprising: a memory and one or more processors.

[0102] One or more applications are stored in the memory, and the one or more applications are suitable for being executed by the one or more processors to implement the method for constructing scientific and technological big data elements described in the first aspect.

[0103] The electronic device includes: a processor and a memory, wherein the processor and the memory are connected, for example, via a bus.

[0104] The structure of the electronic device does not constitute a limitation on the embodiments of the present invention.

[0105] The processor may be a CPU, a general-purpose processor, a DSP, an ASIC, an FPGA or other programmable logic device, a transistor logic device, a hardware component or any combination thereof. It may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of the present invention. The processor may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.

[0106] The bus may include a path to transmit information between the above components. The bus may be a PCI bus or an EISA bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used, but it does not mean that there is only one bus or one type of bus.

[0107] The memory can be a ROM or other type of static storage device that can store static information and instructions, a RAM or other type of dynamic storage device that can store information and instructions, or an EEPROM, CD-ROM or other optical disk storage, optical disk storage (including compressed optical disk, laser disk, optical disk, digital versatile disk, Blu-ray disk, etc.), magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited to this.

[0108] In a third aspect, the present invention proposes a computer-readable storage medium having a computer program stored thereon, wherein the computer program can be loaded and executed by a processor according to the multi-application request parameter verification optimization method described in the first aspect.

[0109] The applicant of the present invention has made a detailed explanation and description of the implementation examples of the present invention in conjunction with the drawings in the specification. However, those skilled in the art should understand that the above implementation examples are only preferred implementation schemes of the present invention, and the detailed description is only to help readers better understand the spirit of the present invention, but not to limit the scope of protection of the present invention. On the contrary, any improvements or modifications based on the inventive spirit of the present invention should fall within the scope of protection of the present invention.

[0110] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the embodiments of the present invention, rather than to limit them. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art should understand that they can still modify the technical solutions recorded in the above embodiments, or replace some of the technical features therein by equivalents; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention. Any changes or replacements that can be easily thought of by those skilled in the art within the technical scope disclosed in the present invention should be covered within the protection scope of the present invention.

Claims

1. A method for optimizing multi-application request parameter verification, characterized in that: include: Develop component integration SDK for business systems with multiple business components and dependencies between components and the same parameter verification requirements; When the component integration SDK receives the request, the component integration SDK determines whether to perform parameter verification again based on the configuration identification whether to turn on the parameter verification filter switch; if the parameter verification filter switch is turned on and the parameter verification identifier is verified, the parameter verification is not repeated and the corresponding application business processing is directly executed; If the parameter verification filter switch is turned off and a parameter verification request needs to be executed, determine whether the verification logic of the SDK that the associated component depends on for the current interface is consistent, and obtain a determination result; Based on the judgment result, the component integration SDK identifies the parameter verification strategy of the current interface according to the configuration, and configures the same parameter verification strategy for the entire application, or configures different parameter verification strategies according to the business module and the interface; Different interfaces perform parameter verification according to the parameter verification strategy that is actually in effect to obtain parameter verification results.

2. A method for optimizing multi-application request parameter verification according to claim 1, characterized in that: The process of determining whether the verification logic of the SDK that the associated component depends on for the current interface is consistent includes: If the SDK that the associated component depends on has the same verification logic for the current interface, the parameter verification strategy selects local verification, and directly executes the local verification of the SDK without calling the remote verification service for parameter verification; if the verification passes, the business processing is directly executed, and if the verification fails, the request is directly rejected.

3. A method for optimizing multi-application request parameter verification according to claim 1, characterized in that: The process of determining whether the verification logic of the SDK that the associated component depends on for the current interface is consistent includes: If the SDK that the associated component depends on has inconsistent verification logic for the current interface, and the application receiving the request integrates an old SDK with fewer parameter restrictions than the actual latest SDK, a parameter verification strategy that prohibits priority is configured for the current interface. After the request is passed, the remote verification service is called again to perform parameter verification to ensure that the final parameter verification logic is consistent.

4. A method for optimizing multi-application request parameter verification according to claim 1, characterized in that: The process of determining whether the verification logic of the SDK that the associated component depends on for the current interface is consistent includes: If the SDK that the associated component depends on has inconsistent verification logic for the current interface, and the application receiving the request integrates an old SDK that has more parameter restrictions than the actual latest SDK, a parameter verification strategy with permission priority is configured for the current interface, and the remote verification service is called again to perform parameter verification for scenarios where the request fails, to ensure that the final parameter verification logic is consistent.

5. A method for optimizing multi-application request parameter verification according to claim 1, characterized in that: The process of determining whether the verification logic of the SDK that the associated component depends on for the current interface is consistent also includes: If the SDK that the associated component depends on has inconsistent verification logic for the current interface, and the application receiving the request is integrated with an old SDK that has both additional and missing parameter restrictions compared to the actual latest SDK, then a parameter verification strategy for remote verification is configured for the current interface, and the request is to directly call the remote verification service without performing local SDK parameter verification.

6. A method for optimizing multi-application request parameter verification according to claim 1, characterized in that: The process of configuring the same parameter verification strategy for the entire application, or configuring different parameter verification strategies according to business modules and interfaces includes: When the application SDK is the latest version, the parameter verification strategy selects SDK local verification, and the local verification result is directly used; When the application SDK is not the latest version and some parameters are free of constraints, the permission-first parameter verification strategy is selected to perform SDK local verification combined with remote verification services. If the SDK local verification passes, the business process will continue directly. If the SDK local verification fails, the remote verification service will be called to perform parameter verification and the result of the remote verification service will be used as the basis. When the application SDK is not the latest version and parameter verification adds some constraints, the parameter verification strategy with priority of prohibition is selected to perform SDK local verification combined with remote verification service. If the SDK local verification fails, the request is terminated directly. If the SDK local verification passes, the remote verification service is called to continue parameter verification, and the result of the remote verification service shall prevail. When the application SDK is not the latest version and the interface parameters have both added constraints and removed constraints, the remote verification strategy is selected, and the SDK local verification is not performed. The result of the remote verification service is directly used.

7. A method for optimizing multi-application request parameter verification according to claim 1, characterized in that: The process of performing parameter verification on different interfaces according to the parameter verification policy that is actually in effect includes: The client requests the interface of the first business component, the first business component calls the supporting component to perform supporting business processing, and the first business component and the supporting component perform the same parameter verification, and the verification function is consistent through the component integration SDK.

8. A method for optimizing multi-application request parameter verification according to claim 1, characterized in that: The process of performing parameter verification on different interfaces according to the parameter verification policy that is actually in effect includes: When the component integration SDK version of the first business component is the same as that of the supporting component, the request received by the first business component performs parameter verification in the business component; After the first business component calls the support component to perform business processing and performs request parameter verification, the support component passes the filtering through the parameter verification filter switch and the request parameter verification identifier verification, and does not repeat the parameter verification.

9. A method for optimizing multi-application request parameter verification according to claim 1, characterized in that: The process of performing parameter verification on different interfaces according to the parameter verification policy that is actually in effect also includes: When the client calls the second business component interface whose business component and supporting component integration SDK versions are different, the parameter verification logic to be executed is selected through the parameter verification strategy; If the parameter verification logic of the second business component interface currently called has not been adjusted, the SDK local verification is used directly; if the parameter verification logic of the second business component interface currently called is inconsistent with the supporting component verification logic, verification is performed through the parameter verification strategies of permission priority, rejection priority, and remote verification, and the actual parameter verification is implemented through the verification service.

10. A method for optimizing multi-application request parameter verification according to claim 1, characterized in that: The parameter verification strategy includes local verification, permission priority, prohibition priority, and remote verification; The parameter verification strategy supports policy configuration based on interface granularity. If there is no customization requirement for the interface verification strategy, the entire sub-application will be configured with one strategy. If the interface needs to configure the verification strategy independently, perform customized configuration; The parameter verification strategy supports dynamic loading of configuration to take effect. When the backend verification logic is adjusted, the verification logic is consistent by modifying the configuration of the sub-application.