Service calling method and device, equipment, medium and program product

By implementing bilateral service provider service call methods on the service control platform between the service caller and the service provider, the performance bottleneck caused by abnormal call traffic in complex network environments is solved, and higher application system availability and performance are achieved.

CN119676285AActive Publication Date: 2025-03-21INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202411890293.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-20
Publication Date
2025-03-21
Estimated Expiration
2044-12-20

AI Technical Summary

Technical Problem

In a complex network environment, distributed application systems have performance bottlenecks due to abnormal call traffic, affecting normal call to services.

Method used

Through the service control platform between the service caller and the service provider, the service call method of the bilateral service provider is implemented. This method includes the service caller and the service provider to determine whether the current call control policy is met, and only perform service calls when the policy is met, so as to realize the current limiting circuit breaker mechanism.

Benefits of technology

It effectively avoids abnormal call traffic entering the service provider, improves the availability and performance of the application system, and prevents the occurrence of performance bottlenecks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119676285A_ABST
    Figure CN119676285A_ABST
Patent Text Reader

Abstract

The invention provides a service calling method for bilateral service parties, which can be applied to the field of distributed technologies. The method comprises the steps that when a service calling party judges that a first calling request of a first service meets a current caller calling control strategy, a second calling request corresponding to the first service is sent to a service provider through the service calling party based on registration information; when the service provider judges that the second calling request meets the current provider calling control strategy, the first service is called through the service provider based on the second calling request, so that a calling return request of the first service is returned to the service calling party; and utilizing the service calling party to receive a calling return request of the first service so as to complete calling of the first service. Therefore, the availability of the application system is improved, and the abnormal call flow is prevented from entering the service provider. The invention further provides a service calling device and equipment of the bilateral service party, a medium and a program product.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of distributed services, and more specifically to a service invocation method, apparatus, device, medium and program product for a bilateral service party. Background Art

[0002] In a distributed service system, we often need to face various complex network environments. In a complex and changeable network environment, various unpredictable emergencies may occur. In order to cope with various emergencies, current distributed application systems often configure current limiting and fuse strategies on the interface services provided to the outside world to ensure that the application system will not cause the entire system to fail due to abnormal calls from certain callers. The interaction process of its common service call methods is as follows: Figure 1 As shown in the figure, the service caller initiates a service call, and the service request reaches the service provider. The service provider first performs a current limiting and fusing operation to prevent excessive requests from causing system overload or failure. The current limiting mechanism limits the number of requests entering the system. The fusing mechanism automatically cuts off the service to protect the system when the system fails or is overloaded. After the current limiting and fusing operation is completed, the subsequent processing logic of the provider is entered to implement actual business processing of the requests that have been filtered by the current limiting and fusing.

[0003] However, with this processing method, abnormal traffic will still enter the service provider first, which may cause the node that executes the flow control and circuit breaker logic to become a performance bottleneck, thereby affecting the normal call of the service. Summary of the invention

[0004] In view of at least one aspect of the above problems, embodiments of the present disclosure provide a service invocation method, apparatus, device, medium and program product for effectively preventing abnormal invocation traffic from entering a bilateral service party of a service provider.

[0005] According to a first aspect of the present disclosure, a service calling method of a bilateral service party is provided, which is applied to a service calling control system, wherein the service calling control system includes a service caller, a service provider and a service management and control platform, and the method includes: initiating a first calling request corresponding to a first service through the service caller, and obtaining registration information corresponding to the first service in the service management and control platform and a current caller calling control policy; when the service caller determines that the first calling request satisfies the current caller calling control policy, sending a second calling request corresponding to the first service to the service provider based on the registration information through the service caller; receiving the second calling request through the service provider, and obtaining the current provider calling control policy corresponding to the first service in the service management and control platform; when the service provider determines that the second calling request satisfies the current provider calling control policy, calling the first service based on the second calling request through the service provider to return a calling return request of the first service to the service caller; and receiving the calling return request of the first service by using the service caller to complete the calling of the first service.

[0006] According to an embodiment of the present disclosure, before initiating a first call request corresponding to the first service through the service caller, the method also includes: registering the call information corresponding to the first service to the service management and control platform through the service provider to form registration information corresponding to the first service; and configuring the caller call control policy and provider call control policy corresponding to the first service based on the registration information through the service management and control platform.

[0007] According to an embodiment of the present disclosure, the service management and control platform includes a caller access management module and a provider access management module, and the service management and control platform is used to configure the caller call control policy and the provider call control policy corresponding to the first service based on the registration information, including: configuring the service caller in the service caller's call control policy for the service based on the registration information through the caller access management module to obtain the caller call control policy corresponding to the first service; and configuring the protection policy for the service provider in the service provider based on the registration information through the provider access management module to obtain the provider call control policy corresponding to the first service.

[0008] According to an embodiment of the present disclosure, the caller call control policy includes a caller current limiting policy, a caller circuit breaking policy and a caller security control policy; and the provider call control policy includes a provider current limiting policy, a provider circuit breaking policy and a provider security control policy.

[0009] According to an embodiment of the present disclosure, the service caller includes a service caller component, and the service caller, based on the registration information, sends the second call request corresponding to the first service to the service provider, including: obtaining the service provider environment information in the service management and control platform through the service caller component based on the registration information; selecting the corresponding service provider in the service provider according to the service provider environment information and the routing selection strategy through the service caller component; and generating the second call request corresponding to the first service based on the selected service provider by using the service caller component, and sending the second call request to the service provider.

[0010] According to an embodiment of the present disclosure, the service provider includes a service provider component, and calling the first service based on the second call request through the service provider to return the call return request of the first service to the service caller includes: using the selected service provider to call the first service according to the functional logic of the first service based on the second call request; updating the provider service statistics through the service provider component and obtaining the call processing result of the first service; and using the service provider component to return the call return request of the first service to the service caller component based on the call processing result.

[0011] According to an embodiment of the present disclosure, the method of utilizing the service caller to receive a call return request for the first service to complete the call of the first service includes: receiving a call return request for the first service through the service caller component; and utilizing the service caller component to update the caller service statistics based on the returned call processing result to complete the call of the first service.

[0012] According to an embodiment of the present disclosure, the service management and control platform also includes a service monitoring module, and the method also includes: obtaining updated caller service statistical information and updated provider service statistical information through the service monitoring module to count the service statistical information; and using the service monitoring module to monitor the service call status of the service caller and the service provider based on the counted service statistical information.

[0013] According to an embodiment of the present disclosure, the method further includes: when the service monitoring module detects that the call request initiated by the service caller satisfies the policy adjustment condition, the caller corresponding to the initiated call request is retrieved through the caller access management module to obtain the caller to be adjusted; the call control policy of the caller to be adjusted is adjusted based on the service adjustment policy through the caller access management module; the caller access management module is used to push the adjusted call control policy to the service caller component in real time; and the caller call control policy is updated through the service caller component based on the adjusted call control policy.

[0014] The second aspect of the present disclosure provides a service calling device for bilateral service parties, including: a calling initiating unit, used to initiate a first calling request corresponding to a first service through a service calling party, and obtain registration information corresponding to the first service in a service management and control platform and a current caller calling control policy; a calling party determining unit, used to send a second calling request corresponding to the first service to a service provider through the service calling party based on the registration information when the service calling party determines that the first calling request satisfies the current caller calling control policy; a calling request receiving unit, used to receive the second calling request through the service provider, and obtain the current provider calling control policy corresponding to the first service in the service management and control platform; a provider determining unit, used to call the first service through the service provider based on the second calling request when the service provider determines that the second calling request satisfies the current provider calling control policy, so as to return a calling return request of the first service to the service calling party; and a returning request receiving unit, used to receive the calling return request of the first service using the service calling party, so as to complete the calling of the first service.

[0015] According to an embodiment of the present disclosure, the device also includes: a registration unit, which is used to register the call information corresponding to the first service to the service management and control platform through the service provider to form registration information corresponding to the first service; and through the service management and control platform, based on the registration information, configure the caller call control policy and provider call control policy corresponding to the first service.

[0016] According to an embodiment of the present disclosure, the service management and control platform includes a caller access management module and a provider access management module, and the registration unit includes: the first registration sub-unit, which is used to configure the call control policy of the service caller in the service caller for the service based on the registration information through the caller access management module, so as to obtain the caller call control policy corresponding to the first service; and the second registration sub-unit, which is used to configure the protection policy for the service provider in the service provider based on the registration information through the provider access management module, so as to obtain the provider call control policy corresponding to the first service.

[0017] According to an embodiment of the present disclosure, the caller call control policy includes a caller current limiting policy, a caller circuit breaking policy and a caller security control policy; and the provider call control policy includes a provider current limiting policy, a provider circuit breaking policy and a provider security control policy.

[0018] According to an embodiment of the present disclosure, the service caller includes a service caller component, and the caller determination unit includes: a first caller determination subunit, used to obtain the service provider environment information in the service management and control platform through the service caller component based on the registration information; a second caller determination subunit, used to select the corresponding service provider in the service provider through the service caller component according to the service provider environment information and a routing selection strategy; and a third caller determination subunit, used to generate a second call request corresponding to the first service based on the selected service provider using the service caller component, and send the second call request to the service provider.

[0019] According to an embodiment of the present disclosure, the service provider includes a service provider component, and the provider determination unit includes: a first provider determination subunit, used to use the selected service provider to call the first service according to the functional logic of the first service based on the second call request; a second provider determination subunit, used to update the provider service statistics through the service provider component and obtain the call processing result of the first service; and a third provider determination subunit, used to use the service provider component to return the call return request of the first service to the service caller component based on the call processing result.

[0020] According to an embodiment of the present disclosure, the return request receiving unit includes: a first return request receiving sub-unit, used to receive a call return request of the first service through the service caller component; and a second return request receiving sub-unit, using the service caller component to update the caller service statistical information based on the returned call processing result to complete the call of the first service.

[0021] According to an embodiment of the present disclosure, the service management and control platform also includes a service monitoring module, and the device also includes: a service monitoring unit, which is used to obtain updated caller service statistical information and updated provider service statistical information through the service monitoring module to count the service statistical information; and use the service monitoring module to monitor the service call status of the service caller and the service provider based on the counted service statistical information.

[0022] According to an embodiment of the present disclosure, the device also includes: a policy adjustment unit, which is used to retrieve the caller corresponding to the initiated call request through the caller access management module to obtain the caller to be adjusted when the service monitoring module detects that the call request initiated by the service caller meets the policy adjustment condition; adjust the call control policy of the caller to be adjusted based on the service adjustment policy through the caller access management module; use the caller access management module to push the adjusted call control policy to the service caller component in real time; and update the caller call control policy based on the adjusted call control policy through the service caller component.

[0023] A third aspect of the present disclosure provides an electronic device, comprising: one or more processors; and a memory for storing one or more computer programs, wherein the one or more processors execute the one or more computer programs to implement the steps of the above method.

[0024] The fourth aspect of the present disclosure further provides a computer-readable storage medium having a computer program or instructions stored thereon, which implements the steps of the above method when the above computer program or instructions are executed by a processor.

[0025] The fifth aspect of the present disclosure further provides a computer program product, including a computer program or instructions, which implement the steps of the above method when the above computer program or instructions are executed by a processor.

[0026] By implementing the embodiments of the present disclosure, only when the service caller determines that the current caller call control policy is satisfied, the relevant call request will be sent from the service caller to the service provider. Only when the service provider satisfies the call request of the current provider call control policy, will it actually enter the function logic call of the service provider and call the relevant services, so as to realize the current limiting and fuse mechanism that is effective for both the service provider and the caller at the same time. When an abnormal call occurs, different caller call control policies and provider call control policies are provided, which can effectively control the abnormal call when the caller initiates the call, further improve the availability of the application system, and prevent abnormal call traffic from entering the service provider. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] The above contents and other objects, features and advantages of the present disclosure will become more apparent through the following description of the embodiments of the present disclosure with reference to the accompanying drawings, in which:

[0028] Figure 1 The interactive process diagram of common service calling methods is schematically shown;

[0029] Figure 2 A diagram schematically shows an application scenario of a service invocation method of a bilateral service provider according to an embodiment of the present disclosure;

[0030] Figure 3 The structure diagram of the service call control system according to the embodiment of the present disclosure is schematically shown;

[0031] Figure 4 A flowchart schematically shows a service invocation method of a bilateral service party according to an embodiment of the present disclosure;

[0032] Figure 5 A bilateral interaction diagram schematically illustrates a service invocation method of a bilateral service party according to an embodiment of the present disclosure;

[0033] Figure 6 A registration flow chart of a service invocation method of a bilateral service party according to an embodiment of the present disclosure is schematically shown;

[0034] Figure 7 A call update flow chart of a service call method of a bilateral service party according to an embodiment of the present disclosure is schematically shown;

[0035] Figure 8 A service monitoring flow chart of a service calling method of a bilateral service party according to an embodiment of the present disclosure is schematically shown;

[0036] Fig. 9 A schematic diagram shows a policy adjustment flow chart of a service invocation method of a bilateral service party according to an embodiment of the present disclosure;

[0037] Fig.10 A schematic diagram showing a structural block diagram of a service invocation device of a bilateral service party according to an embodiment of the present disclosure; and

[0038] Fig.11 A block diagram of an electronic device suitable for implementing a service invocation method of a bilateral service party according to an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION

[0039] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present disclosure. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.

[0040] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "comprise", "include", etc. used herein indicate the existence of features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.

[0041] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification and should not be interpreted in an idealized or overly rigid manner.

[0042] When using expressions such as "at least one of A, B, and C, etc.", they should generally be interpreted according to the meaning of the expression commonly understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).

[0043] An embodiment of the present disclosure provides a service calling method for bilateral service parties, which is applied to a service calling control system, wherein the service calling control system includes a service caller, a service provider and a service management and control platform, and the method includes: initiating a first calling request corresponding to a first service through the service caller, and obtaining registration information corresponding to the first service in the service management and control platform and a current caller calling control policy; when the service caller determines that the first calling request satisfies the current caller calling control policy, sending a second calling request corresponding to the first service to the service provider based on the registration information through the service caller; receiving a second calling request through the service provider, and obtaining a current provider calling control policy corresponding to the first service in the service management and control platform; when the service provider determines that the second calling request satisfies the current provider calling control policy, calling the first service based on the second calling request through the service provider to return a calling return request of the first service to the service caller; and receiving a calling return request of the first service using the service caller to complete the calling of the first service.

[0044] In the embodiments of the present disclosure, in response to various emergencies in a complex network environment, the existing technology often configures current limiting and fuse strategies on the interface services provided to the outside. In this way, abnormal traffic will still enter the service provider first, affecting the normal call of the service. By implementing the embodiments of the present disclosure, the service caller will only send the relevant call request from the service caller to the service provider when it is determined that the current caller call control strategy is met. Only when the service provider meets the call request of the current provider call control strategy will it actually enter the functional logic call of the service provider and call the relevant service, so as to implement the current limiting and fuse mechanism that is effective for both the service provider and the caller. When an abnormal call occurs, different caller call control strategies and provider call control strategies are provided, which can effectively control the abnormal call when the caller initiates the call, further improve the availability of the application system, and prevent abnormal call traffic from entering the service provider.

[0045] Figure 2 The application scenario diagram of the service invocation method of the bilateral service party according to the embodiment of the present disclosure is schematically shown.

[0046] like Figure 2 As shown, the application scenario 200 according to this embodiment may include a service call scenario. The network 204 is used to provide a medium for a communication link between the first terminal device 201, the second terminal device 202, the third terminal device 203 and the server 205. The network 204 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0047] The user may use the first terminal device 201, the second terminal device 202, and the third terminal device 203 to interact with the server 205 through the network 204 to receive or send messages, etc. Various communication client applications may be installed on the first terminal device 201, the second terminal device 202, and the third terminal device 203, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only for example).

[0048] The first terminal device 201, the second terminal device 202, and the third terminal device 203 may be various electronic devices having display screens and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like.

[0049] The server 205 may be a server that provides various services, such as a background management server (only as an example) that provides support for websites browsed by users using the first terminal device 201, the second terminal device 202, and the third terminal device 203. The background management server may analyze and process the received data such as user requests, and feed back the processing results (such as web pages, information, or data obtained or generated according to user requests) to the terminal device.

[0050] It should be noted that the service calling method of the bilateral service party provided in the embodiment of the present disclosure can generally be executed by the server 205. Accordingly, the service calling device of the bilateral service party provided in the embodiment of the present disclosure can generally be set in the server 205. The service calling method of the bilateral service party provided in the embodiment of the present disclosure can also be executed by a server or server cluster that is different from the server 205 and can communicate with the first terminal device 201, the second terminal device 202, the third terminal device 203 and / or the server 205. Accordingly, the service calling device of the bilateral service party provided in the embodiment of the present disclosure can also be set in a server or server cluster that is different from the server 205 and can communicate with the first terminal device 201, the second terminal device 202, the third terminal device 203 and / or the server 205.

[0051] It should be understood that Figure 2 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.

[0052] The following will be based on Figure 2 The scene described by Figure 3~Figure 9 The service invocation method of the bilateral service party of the disclosed embodiment is described in detail.

[0053] The service calling method of the bilateral service party disclosed in the present invention is applied to a service calling control system. Figure 3 The structure diagram of the service calling control system according to the embodiment of the present disclosure is schematically shown.

[0054] like Figure 3 As shown, the service call control system includes three parts: service management and control platform, service caller and service provider. Among them, the service caller integrates the service caller component, the service provider integrates the service provider component, and the service management and control platform includes: service caller access management module, service provider access management module, service monitoring module and user management module. It is worth noting that the bilateral service is the service caller and service provider. The service call of the bilateral service is the service call process of interaction between the service caller and the service provider through the service management and control platform.

[0055] Service caller component: This component needs to be integrated with the service caller and communicate with the service control platform in full duplex. On the one hand, it receives various data sent by the service control platform, including: (1) registration information of the service provider; (2) service caller access configuration parameters, etc.; on the other hand, it sends the service caller registration information and monitoring information during the service call process to the control platform. In addition, the service caller's call to the service provider's related services also needs to be completed through the service caller component, and the caller call control strategy processing will be completed in the caller component.

[0056] Service provider component: This component needs to be integrated with the service provider and communicate with the service control platform in full duplex. On the one hand, it receives various data sent from the service control platform, including: service provider access configuration parameters, etc.; on the other hand, it sends the service provider registration information and monitoring information during the service provision process to the control platform. In addition, the call request received by the service provider also needs to be completed by the service provider component, and the provider call control strategy processing will be completed in the provider component.

[0057] Caller access management module: Callers who need to make service calls need to be included in this module for management. The functions include: service caller registration, service call access control, service caller flow control, circuit breaker policy configuration and push.

[0058] Provider access management module: Service providers that need to provide services need to be included in this module for management. Functions include: service provider registration, service provider access control, service provider current limiting, circuit breaker policy configuration and push, and service provider information query. The service provider component will query the service provider information from the provider access management function for subsequent service calls.

[0059] Service monitoring module: During the service call process, the monitoring information of the service caller and the service provider is collected, including: service call concurrency value, service call volume statistics, service call success rate / failure rate statistics, service call time, etc.

[0060] User management module: This module supports the management of users and related permissions of the service management and control platform, including adding new users, assigning permissions to existing users, and other permissions for each module.

[0061] Figure 4 The flowchart of the service invocation method of the bilateral service party according to the embodiment of the present disclosure is schematically shown.

[0062] Figure 5 A bilateral interaction diagram of a service invocation method of a bilateral server according to an embodiment of the present disclosure is schematically shown.

[0063] like Figure 4 , 5 As shown, the service calling method of the bilateral service party of this embodiment includes operations S410 to S450, and the service calling method can be automatically executed.

[0064] In operation S410, a first call request corresponding to a first service is initiated through a service caller, and registration information corresponding to the first service in a service management and control platform and a current caller call control policy are obtained.

[0065] The first service is a service that has been registered by a service provider in the service management and control platform, and the first call request is a call request initiated by a service caller to call the first service.

[0066] For example, Figure 4 As shown in the figure, take the service caller B (hereinafter referred to as caller B) calling service a as an example. Service provider A (there are two providers at the same time: service provider A1 and service provider A2, hereinafter referred to as provider A1 and provider A2) provides service a with a certain function at the same time. Service caller B needs to complete the relevant function by calling service a. At this time, service caller B does not know the information of providers A1 and A2, and only needs to configure the address and access information of service management and control platform C (hereinafter referred to as platform C). When caller B needs to call service a registered on platform C, the service caller component of caller B will initiate a call request for service a, and the service caller component will obtain the registration information of relevant providers A1 and A2 and the corresponding caller call control policy from platform C.

[0067] In operation S420, when the service caller determines that the first call request satisfies the current caller call control policy, the service caller sends a second call request corresponding to the first service to the service provider based on the registration information.

[0068] For example, if the call request of caller B is judged by the service caller component to not meet the current caller call control policy, the relevant call will not be actually sent to the service provider A1 or A2, and caller B returns an abnormal result when processing the service call. Only when it is judged to meet the current caller call control policy, caller B selects the corresponding service provider (such as provider A1) based on relevant information such as registration, and after selecting provider A1, generates a second call request (call request A) for provider A1 and service a. At this time, call request A will be sent from the service caller component to the service provider component.

[0069] In operation S430, a second call request is received through the service provider, and a current provider call control policy corresponding to the first service in the service management and control platform is obtained.

[0070] Exemplarily, the service provider component receives a call request for service a from caller B, queries the provider access management function of platform C for service provider information, and obtains the corresponding provider call control policy for service a.

[0071] In operation S440, when the service provider determines that the second call request satisfies the current provider call control policy, the service provider calls the first service based on the second call request to return a call return request of the first service to the service caller.

[0072] After the service provider receives the call request, the service provider component determines whether the relevant service call is allowed and whether the call request meets the current provider call control policy. If the conditions are met, the call request will be transmitted to the actual caller processing logic for subsequent processing; if the conditions are not met, an error message will be returned to the service caller.

[0073] For example, for service provider A, after receiving call request A, the service provider component will determine whether the request satisfies the provider call control policy configured for service provider a on platform C. Only if the call request satisfies the control policy will it actually enter the function logic call of service provider A and call service a. Otherwise, it will directly return the service a-related provider control error information to the service caller component of caller B.

[0074] In operation S450, a call return request of the first service is received by the service caller to complete the call of the first service.

[0075] Figure 6 The registration flow chart of the service invocation method of the bilateral service party according to the embodiment of the present disclosure is schematically shown.

[0076] like Figure 6 As shown, according to an embodiment of the present disclosure, before initiating a first call request corresponding to a first service through a service caller in operation S410, the method includes operations S610-S620.

[0077] In operation S610, the calling information corresponding to the first service is registered to the service management and control platform through the service provider to form registration information corresponding to the first service.

[0078] For example, taking the case where service caller B calls service a, before service caller B calls service a, service provider A1 and service provider A2 in service provider A both need to register the call information required for calling service a on service management and control platform C.

[0079] In operation S620, a caller call control policy and a provider call control policy corresponding to the first service are configured based on the registration information through the service management and control platform.

[0080] Exemplarily, on platform C, relevant call control policies can be configured for the provider and caller of service a respectively, including but not limited to current limiting and circuit breaker policies, call security control policies, etc.

[0081] It is worth noting that the service provider that has been started can register as a service provider with the provider access management module via the integrated service provider component. At this time, the user can log in to the service management and control platform to see the relevant registered services and the corresponding provider environment information. The service caller that has been started can register as a caller with the caller access management module via the integrated service caller component. At this time, the user can log in to the service management and control platform to see the relevant call application information.

[0082] According to the embodiments of the present disclosure, there may be multiple service providers for a certain service. The call information required for calling a certain service is registered to the service management and control platform to facilitate understanding of the service provider of a certain service. When the call request meets the call control policy of the caller, a suitable service provider can be selected from the registered information to improve the service call efficiency.

[0083] According to an embodiment of the present disclosure, in operation S620, through the service management and control platform, based on the registration information, the caller call control policy and the provider call control policy corresponding to the first service are configured, and the method includes operations S6201-S6202.

[0084] In operation S6201, a call control policy for a service caller in a service caller is configured through a caller access management module based on registration information to obtain a call control policy for a first service.

[0085] Configure caller call control policies for service callers, mainly for the control of a certain caller service call, to prevent traffic that does not meet the call conditions from entering the service provider. You can configure various call control policies for one or all service providers in the provider access management module, including whether to prohibit the provision of corresponding services and the flow limit and fuse parameters of the services provided.

[0086] In operation S6202, a protection policy for a service provider in a service provider is configured based on registration information through a provider access management module to obtain a provider call control policy corresponding to the first service.

[0087] Configuring provider call control policies for service providers is mainly to protect service providers and prevent requests that exceed performance capacity from entering the service provider, thereby causing the service provider to crash. In the caller access management module, call control policies can be configured for one or all service callers, including whether to allow the corresponding service to be called and the current limiting and fuse parameters for initiating related calls.

[0088] According to the embodiments of the present disclosure, a caller call control policy is configured for a service caller, mainly for controlling a service call of a certain caller, so as to prevent traffic that does not meet the call conditions from entering the service provider. A provider call control policy is configured for a service provider, mainly for protecting the service provider, so as to prevent requests that exceed the performance capacity from entering the service provider, thereby causing the service provider to crash. Different call control policies are adopted for different roles to improve the availability, reliability and security of the service call control system during the service call process.

[0089] According to an embodiment of the present disclosure, the caller call control policy includes a caller current limiting policy, a caller fuse policy and a caller security control policy. The provider call control policy includes a provider current limiting policy, a provider fuse policy and a provider security control policy.

[0090] The call control policy covers the caller call control policy of the caller and the provider security control policy of the provider, which includes but is not limited to current limiting policy, circuit breaker policy, security control policy and other policies.

[0091] The flow limiting strategy, the business scenarios and performance requirements of callers and providers are often different. For callers, they may need to limit the rate of sending requests based on their own business priorities and resource allocation. In order to avoid the system crashing due to frequent requests to the inventory service provider, it can set a suitable flow limiting strategy based on its own processing capabilities, such as but not limited to the service call volume cannot be higher than x calls within a specified time, and calls greater than this threshold will directly prompt a flow limiting error. For providers, they may need to face requests from multiple callers, and their flow limiting strategy focuses more on the protection of overall resources. For example, the inventory service provider may limit the total inflow of requests based on the CPU and memory usage of the server, which may include but is not limited to starting to limit requests when the usage reaches x% to ensure the stability and availability of the service.

[0092] Circuit breaker strategy: callers can set circuit breaker strategies based on the service quality and importance of the provider. For callers, this includes, but is not limited to, configuring a circuit breaker error message when the average response time of calling a service within a specified time is greater than xx seconds, or quickly circuit breaker the call to the service if the error rate of calling a service is slightly higher, and use the local default recommended strategy instead. For providers, when the provider detects that a sub-service of its own has failed or its performance has seriously degraded (such as an abnormal database connection or an algorithm execution time that is too long), it can circuit breaker the call path of the sub-service to prevent the fault from spreading, and try to self-repair or notify the operation and maintenance personnel.

[0093] Security control policies may include, but are not limited to, configuring service disabling policies for all service callers and providers on platform C. For callers, their security policies can focus on protecting their own business data and user privacy. For example, if a service caller B1 is found to have batch calls in a short period of time through the service monitoring function, the calling rights of service caller B1 can be directly disabled on platform C. At this time, when B1 calls service a again, it will directly prompt a security control error. For example, as a caller, financial payment applications will use security control policies such as encrypted transmission and digital signatures when sending payment requests to bank service providers to ensure that payment information is not stolen or tampered with. For providers, the provider's security policy needs to consider a wider range of factors, including preventing malicious attacks and protecting the data security of multiple callers. For example, bank service providers will use multiple security mechanisms such as firewalls and intrusion detection systems to strictly authenticate and authorize the access of different callers, ensure that only legitimate callers can access the corresponding services, and prevent data leakage and illegal access.

[0094] In the embodiments of the present disclosure, the caller and the provider adopt corresponding caller call control strategies and provider call control strategies, decouple the call control strategies, and configure their respective call control strategies in different complex situations to ensure the safety of the caller and the provider, better implement fault isolation, flexibly customize relevant strategies in terms of current limiting, circuit breaking, and security control, optimize resource allocation, and improve resource utilization efficiency.

[0095] According to an embodiment of the present disclosure, in operation S420, the service caller sends a second call request corresponding to the first service to the service provider based on the registration information, and the method includes operations S4201-S4203.

[0096] In operation S4201, the service provider environment information in the service management and control platform is obtained through the service caller component based on the registration information.

[0097] When the service caller program logic involves calling a service, the service caller component first determines whether the current caller calls the control policy, such as whether the call is allowed and whether it is within the current limiting or circuit breaker threshold. If the call condition is met, the service caller component applies to the provider access management module for service provider environment information and makes subsequent service calls. If the call condition is not met, the call process is directly exited and an error is returned.

[0098] In operation S4202, a corresponding service provider among service providers is selected through the service caller component according to the service provider environment information and the routing selection policy.

[0099] Based on the obtained service provider environment information, the service caller component selects a service caller according to the default routing selection strategy or the routing selection strategy implemented by the service caller itself to initiate the actual service call.

[0100] In operation S4203, a second call request corresponding to the first service is generated based on the selected service provider by using the service caller component, and the second call request is sent to the service provider.

[0101] After selecting the actual service provider, the service caller component generates a corresponding service call request based on the information of the service provider, and sends the call request to the service provider so that the service provider can actually call the service.

[0102] According to the embodiments of the present disclosure, by considering the service provider environment information (such as server configuration, available memory, CPU performance, etc.) and routing selection strategy, requests can be directed to service providers with sufficient resources, resources and demands can be adapted, dynamic resource allocation can be achieved, service quality and performance can be improved, and system reliability and fault tolerance can be enhanced.

[0103] Figure 7 The invocation update flow chart of the service invocation method of the bilateral service party according to the embodiment of the present disclosure is schematically shown.

[0104] like Figure 7 As shown, according to an embodiment of the present disclosure, in operation S440, the service provider calls the first service based on the second call request to return the call request of the first service to the service caller, and the method includes operations S710-S730.

[0105] In operation S710, the first service is called according to the functional logic of the first service based on the second call request by using the selected service provider.

[0106] For example, after service request A enters provider A1, it moves step by step to the specific business processing stage according to the established process and functional logic settings of service a, so as to realize the complete process of corresponding service functions and output expected results.

[0107] In operation S720, the provider service statistics are updated through the service provider component, and the call processing result of the first service is obtained.

[0108] In operation S730, the service provider component returns a call return request of the first service to the service caller component based on the call processing result.

[0109] According to the embodiments of the present disclosure, the service can be called according to the functional logic of the service, which can ensure that the service implementation process follows the established rules and procedures. This helps to maintain the consistency and stability of the service and avoid functional confusion or errors caused by the randomness of the calling method. By updating the provider service statistics, the use and performance of the provider service can be grasped in real time, which is convenient for adjusting the relevant provider call control strategy, optimizing services and allocating resources.

[0110] According to an embodiment of the present disclosure, in operation S450, the service provider calls the first service based on the second call request to return the call return request of the first service to the service caller, and the method includes operations S4501-S4502.

[0111] In operation S4501, a call return request of a first service is received through a service caller component.

[0112] In operation S4502, the service caller component is used to update the caller service statistics based on the returned call processing result to complete the call of the first service.

[0113] According to the embodiments of the present disclosure, by updating the caller service statistics, the usage and performance of the caller service can be understood in real time, which helps to accurately monitor the performance indicators of the service, facilitates the adjustment of related caller call control policies, avoids resource bottlenecks, and helps to improve user experience.

[0114] Figure 8 The service monitoring flow chart of the service invocation method of the bilateral service party according to the embodiment of the present disclosure is schematically shown.

[0115] like Figure 8 As shown, according to an embodiment of the present disclosure, the service calling method of the present disclosure further includes monitoring the service calling status of the service caller and the service provider during the process of calling the service, and the monitoring process includes operations S810-S820.

[0116] In operation S810, the updated caller service statistics information and the updated provider service statistics information are obtained through the service monitoring module to collect service statistics information.

[0117] In operation S820, the service calling status of the service caller and the service provider is monitored based on the collected service statistical information by using the service monitoring module.

[0118] The service caller and service provider send statistical information about the service call to the service monitoring module in the service management and control platform, and the service call situation is monitored and counted through the service monitoring module.

[0119] According to the embodiments of the present disclosure, by monitoring the service statistical information, the interaction between the service caller and the service provider can be observed in real time, faults can be discovered in time, and it can be accurately located whether the service caller or the service provider has a performance bottleneck, and corresponding call control strategies can be adopted to optimize service quality and ensure system security.

[0120] Fig. 9 The policy adjustment flow chart of the service invocation method of the bilateral service party according to the embodiment of the present disclosure is schematically shown.

[0121] like Fig. 9 As shown, according to an embodiment of the present disclosure, the service calling method of the present disclosure further includes adjusting the calling control strategy during the process of calling the service, and the process includes operations S910-S940.

[0122] In operation S910, when the service monitoring module detects that the call request initiated by the service caller meets the policy adjustment condition, the caller access management module retrieves the caller corresponding to the initiated call request to obtain the caller to be adjusted.

[0123] For example, when the monitoring module of platform C monitors and finds a request policy adjustment condition (such as abnormally large traffic) initiated by a certain caller B1, the caller access management module is entered to search for the corresponding caller to be adjusted, that is, the service caller B1.

[0124] In operation S920, the call control policy of the caller to be adjusted is adjusted based on the service adjustment policy through the caller access management module.

[0125] Exemplarily, with respect to the service adjustment policy (eg, the current limiting value related to the called service configuration), the current caller call control policy of the caller B1 may be adjusted in the caller access management module.

[0126] In operation S930, the caller access management module is used to push the adjusted call control policy to the service caller component in real time.

[0127] Exemplarily, the caller access management module of platform C pushes the information to the service caller component of the corresponding service caller B1 in real time.

[0128] In operation S940, the caller call control policy is updated based on the adjusted call control policy by the service caller component.

[0129] Exemplarily, the caller call control policy updated by caller B1 will be used as the current caller call control policy. After the service call traffic of caller B1 passes through the service caller component, the traffic will be judged according to the new current limiting value. Traffic greater than the threshold will be directly returned as an error.

[0130] According to the embodiments of the present disclosure, by adjusting the call control strategy in real time, when a call is abnormal, abnormal traffic will not enter the service provider, thereby avoiding related call requests being sent to the service provider to affect system performance and improve system availability and stability.

[0131] Based on the above-mentioned service calling method of the bilateral service provider, the present disclosure also provides a service calling device of the bilateral service provider. Fig.10 The device is described in detail.

[0132] Fig.10 The structural block diagram of the service invocation device of the bilateral service party according to the embodiment of the present disclosure is schematically shown.

[0133] like Fig.10 As shown, the service calling device 1000 of the bilateral service party of this embodiment includes a calling initiating unit 1010, a calling party determining unit 1020, a calling request receiving unit 1030, a provider determining unit 1040 and a return request receiving unit 1050.

[0134] The call initiating unit 1010 is used to initiate a first call request corresponding to the first service through the service caller, and obtain the registration information corresponding to the first service in the service management and control platform and the current caller call control policy. In one embodiment, the call initiating unit 1010 can be used to perform the operation S410 described above, which will not be repeated here.

[0135] The caller determination unit 1020 is used to send the second call request corresponding to the first service to the service provider through the service caller based on the registration information when the service caller determines that the first call request satisfies the current caller call control policy. In one embodiment, the caller determination unit 1020 can be used to perform the operation S420 described above, which will not be repeated here.

[0136] The call request receiving unit 1030 is used to receive the second call request through the service provider and obtain the current provider call control policy corresponding to the first service in the service management and control platform. In one embodiment, the call request receiving unit 1030 can be used to perform the operation S430 described above, which will not be repeated here.

[0137] The provider determination unit 1040 is used to call the first service based on the second call request through the service provider when the service provider determines that the second call request satisfies the current provider call control policy, so as to return the call return request of the first service to the service caller. In one embodiment, the provider determination unit 1040 can be used to perform the operation S440 described above, which will not be repeated here.

[0138] The return request receiving unit 1050 is used to receive the call return request of the first service by using the service caller to complete the call of the first service. In one embodiment, the return request receiving unit 1050 can be used to perform the operation S450 described above, which will not be repeated here.

[0139] According to an embodiment of the present disclosure, the service management and control platform includes a caller access management module and a provider access management module, and the registration unit 1060 includes: a first registration sub-unit, which is used to configure the call control policy of the service caller in the service caller for the service based on the registration information through the caller access management module, so as to obtain the caller call control policy corresponding to the first service; and a second registration sub-unit, which is used to configure the protection policy for the service provider in the service provider based on the registration information through the provider access management module, so as to obtain the provider call control policy corresponding to the first service.

[0140] According to an embodiment of the present disclosure, the caller call control policy includes a caller current limiting policy, a caller circuit breaking policy and a caller security control policy; and the provider call control policy includes a provider current limiting policy, a provider circuit breaking policy and a provider security control policy.

[0141] According to an embodiment of the present disclosure, the service caller includes a service caller component, and the caller determination unit 1020 includes: a first caller determination subunit, which is used to obtain service provider environment information in the service management and control platform through the service caller component based on registration information; a second caller determination subunit, which is used to select a corresponding service provider in the service provider through the service caller component according to the service provider environment information and a routing selection strategy; and a third caller determination subunit, which is used to generate a second call request corresponding to the first service based on the selected service provider using the service caller component, and send the second call request to the service provider.

[0142] According to an embodiment of the present disclosure, the service provider includes a service provider component, and the provider determination unit 1040 includes: a first provider determination subunit, which is used to use the selected service provider to call the first service according to the functional logic of the first service based on the second call request; a second provider determination subunit, which is used to update the provider service statistics through the service provider component and obtain the call processing result of the first service; and a third provider determination subunit, which is used to use the service provider component to return the call return request of the first service to the service caller component based on the call processing result.

[0143] According to an embodiment of the present disclosure, the return request receiving unit 1050 includes: a first return request receiving sub-unit, used to receive a call return request of the first service through a service caller component; and a second return request receiving sub-unit, using the service caller component to update the caller service statistical information based on the returned call processing result to complete the call of the first service.

[0144] According to an embodiment of the present disclosure, the service management and control platform also includes a service monitoring module, and the device also includes: a service monitoring unit 1070, which is used to obtain updated caller service statistical information and updated provider service statistical information through the service monitoring module to count the service statistical information; and use the service monitoring module to monitor the service call status of the service caller and the service provider based on the counted service statistical information.

[0145] According to an embodiment of the present disclosure, the device also includes: a policy adjustment unit 1080, which is used to retrieve the caller corresponding to the initiated call request through the caller access management module to obtain the caller to be adjusted when the service monitoring module detects that the call request initiated by the service caller meets the policy adjustment condition; adjust the call control policy of the caller to be adjusted based on the service adjustment policy through the caller access management module; use the caller access management module to push the adjusted call control policy to the service caller component in real time; and update the caller call control policy based on the adjusted call control policy through the service caller component.

[0146] According to an embodiment of the present disclosure, any multiple modules among the call initiating unit 1010, the caller determination unit 1020, the call request receiving unit 1030, the provider determination unit 1040, the return request receiving unit 1050, the registration unit 1060, the service monitoring unit 1070 and the policy adjustment unit 1080 can be combined into one module for implementation, or any one of the modules can be split into multiple modules. Alternatively, at least part of the functions of one or more of these modules can be combined with at least part of the functions of other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the call initiating unit 1010, the caller determination unit 1020, the call request receiving unit 1030, the provider determination unit 1040, the return request receiving unit 1050, the registration unit 1060, the service monitoring unit 1070 and the policy adjustment unit 1080 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application specific integrated circuit (ASIC), or can be implemented by hardware or firmware such as any other reasonable way of integrating or packaging the circuit, or can be implemented in any one of the three implementation methods of software, hardware and firmware or in an appropriate combination of any of them. Alternatively, at least one of the call initiating unit 1010, the caller determination unit 1020, the call request receiving unit 1030, the provider determination unit 1040, the return request receiving unit 1050, the registration unit 1060, the service monitoring unit 1070 and the policy adjustment unit 1080 can be at least partially implemented as a computer program module, which can perform corresponding functions when the computer program module is executed.

[0147] Fig.11 A block diagram of an electronic device suitable for implementing a service invocation method of a bilateral service party according to an embodiment of the present disclosure is schematically shown.

[0148] like Fig.11 As shown, the electronic device 1100 according to an embodiment of the present disclosure includes a processor 1101, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1102 or a program loaded from a storage part 1108 to a random access memory (RAM) 1103. The processor 1101 may include, for example, a general-purpose microprocessor (such as a CPU), an instruction set processor and / or a related chipset and / or a special-purpose microprocessor (for example, an application-specific integrated circuit (ASIC)), etc. The processor 1101 may also include an onboard memory for caching purposes. The processor 1101 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present disclosure.

[0149] In RAM 1103, various programs and data required for the operation of electronic device 1100 are stored. Processor 1101, ROM 1102 and RAM 1103 are connected to each other through bus 1104. Processor 1101 performs various operations of the method flow according to the embodiment of the present disclosure by executing the program in ROM 1102 and / or RAM 1103. It should be noted that the program can also be stored in one or more memories other than ROM 1102 and RAM 1103. Processor 1101 can also perform various operations of the method flow according to the embodiment of the present disclosure by executing the program stored in one or more memories.

[0150] According to an embodiment of the present disclosure, the electronic device 1100 may further include an input / output (I / O) interface 1105, which is also connected to the bus 1104. The electronic device 1100 may further include one or more of the following components connected to the input / output (I / O) interface 1105: an input portion 1106 including a keyboard, a mouse, etc.; an output portion 1107 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage portion 1108 including a hard disk, etc.; and a communication portion 1109 including a network interface card such as a LAN card, a modem, etc. The communication portion 1109 performs communication processing via a network such as the Internet. A drive 1110 is also connected to the input / output (I / O) interface 1105 as needed. A removable medium 1111, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1110 as needed, so that a computer program read therefrom is installed into the storage portion 1108 as needed.

[0151] The present disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or may exist independently without being assembled into the device / apparatus / system. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the method according to the embodiment of the present disclosure is implemented.

[0152] According to an embodiment of the present disclosure, a computer-readable storage medium may be a non-volatile computer-readable storage medium, for example, may include but is not limited to: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, an apparatus, or a device. For example, according to an embodiment of the present disclosure, a computer-readable storage medium may include the ROM 1102 and / or RAM 1103 described above and / or one or more memories other than ROM 1102 and RAM 1103.

[0153] The embodiment of the present disclosure also includes a computer program product, which includes a computer program, and the computer program contains program code for executing the method shown in the flowchart. When the computer program product is run in a computer system, the program code is used to enable the computer system to implement the service calling method of the bilateral service party provided by the embodiment of the present disclosure.

[0154] The above functions defined in the system / device of the embodiment of the present disclosure are performed when the computer program is executed by the processor 1101. According to the embodiment of the present disclosure, the system, device, module, unit, etc. described above can be implemented by a computer program module.

[0155] In one embodiment, the computer program may rely on tangible storage media such as optical storage devices, magnetic storage devices, etc. In another embodiment, the computer program may also be transmitted and distributed in the form of signals on a network medium, and downloaded and installed through the communication part 1109, and / or installed from a removable medium 1111. The program code contained in the computer program may be transmitted using any appropriate network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0156] In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 1109, and / or installed from the removable medium 1111. When the computer program is executed by the processor 1101, the above functions defined in the system of the embodiment of the present disclosure are performed. According to the embodiment of the present disclosure, the system, device, means, module, unit, etc. described above can be implemented by a computer program module.

[0157] According to an embodiment of the present disclosure, the program code for executing the computer program provided by the embodiment of the present disclosure can be written in any combination of one or more programming languages. Specifically, these computing programs can be implemented using high-level process and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages ​​include, but are not limited to, Java, C++, python, "C" language or similar programming languages. The program code can be executed entirely on the user computing device, partially on the user device, partially on the remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (for example, using an Internet service provider to connect through the Internet).

[0158] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0159] It will be appreciated by those skilled in the art that the features described in the various embodiments of the present disclosure may be combined and / or combined in a variety of ways, even if such combinations or combinations are not explicitly described in the present disclosure. In particular, without departing from the spirit and teachings of the present disclosure, the features described in the various embodiments of the present disclosure may be combined and / or combined in a variety of ways. All of these combinations and / or combinations fall within the scope of the present disclosure.

[0160] The embodiments of the present disclosure are described above. However, these embodiments are only for illustrative purposes and are not intended to limit the scope of the present disclosure. Although the embodiments are described above, this does not mean that the measures in the various embodiments cannot be used in combination to advantage. Without departing from the scope of the present disclosure, those skilled in the art may make a variety of substitutions and modifications, which should all fall within the scope of the present disclosure.

Claims

1. A service calling method for a bilateral service party, applied to a service calling control system, characterized in that: The service call control system includes a service caller, a service provider, and a service management and control platform, and the method includes: Initiate a first call request corresponding to the first service through the service caller, and obtain registration information corresponding to the first service in the service management and control platform and a current caller call control policy; When the service caller determines that the first call request satisfies the current call control policy of the caller, a second call request corresponding to the first service is sent to the service provider through the service caller based on the registration information; Receiving the second call request through the service provider, and obtaining a current provider call control policy corresponding to the first service in the service management and control platform; When the service provider determines that the second call request satisfies the current provider call control policy, calling the first service based on the second call request through the service provider to return a call return request of the first service to the service caller; and The service caller is utilized to receive a call return request of the first service to complete the call of the first service.

2. The method according to claim 1, characterized in that Before initiating, by the service caller, a first call request corresponding to the first service, the method further includes: registering the call information corresponding to the first service to the service management and control platform through the service provider to form registration information corresponding to the first service; and The service management and control platform configures a caller call control policy and a provider call control policy corresponding to the first service based on the registration information.

3. The method according to claim 2, characterized in that The service management and control platform includes a caller access management module and a provider access management module. The service management and control platform configures the caller call control policy and the provider call control policy corresponding to the first service based on the registration information, including: By means of the caller access management module, based on the registration information, a call control policy for a service by a service caller in the service caller is configured to obtain a call control policy for a caller corresponding to the first service; and The provider access management module configures a protection policy for the service provider in the service provider based on the registration information to obtain a provider call control policy corresponding to the first service.

4. The method according to claim 3, characterized in that The caller call control strategy includes a caller current limiting strategy, a caller fuse strategy and a caller security control strategy; and The provider call control strategy includes a provider current limiting strategy, a provider fuse strategy and a provider security control strategy.

5. The method according to claim 1, characterized in that The service caller includes a service caller component, and the sending, by the service caller, of a second call request corresponding to the first service to the service provider based on the registration information includes: Obtaining, through the service caller component, service provider environment information in the service management and control platform based on the registration information; Selecting, by the service caller component, a corresponding service provider from among the service providers according to the service provider environment information and the routing selection strategy; and The service caller component is used to generate a second call request corresponding to the first service based on the selected service provider, and the second call request is sent to the service provider.

6. The method according to claim 5, characterized in that The service provider includes a service provider component, and the calling of the first service based on the second calling request through the service provider to return a calling return request of the first service to the service caller includes: Using the selected service provider, based on the second call request, calling the first service according to the functional logic of the first service; updating provider service statistics through the service provider component and obtaining a call processing result of the first service; and The service provider component is used to return a call return request of the first service to the service caller component based on the call processing result.

7. The method according to any one of claims 1 to 6, characterized in that: The using the service caller to receive the call return request of the first service to complete the call of the first service includes: Receiving, by the service caller component, a call return request of the first service; and The service caller component is used to update the caller service statistics based on the returned call processing result to complete the call of the first service.

8. The method according to claim 7, characterized in that The service management and control platform further includes a service monitoring module, and the method further includes: Obtaining updated caller service statistics information and updated provider service statistics information through the service monitoring module to collect service statistics information; and The service monitoring module is used to monitor the service calling conditions of the service caller and the service provider based on the collected service statistical information.

9. The method according to claim 3 or 8, characterized in that: The method further comprises: When the service monitoring module detects that the call request initiated by the service caller meets the policy adjustment condition, the caller access management module is used to retrieve the caller corresponding to the initiated call request to obtain the caller to be adjusted; Adjusting the call control policy of the caller to be adjusted based on the service adjustment policy through the caller access management module; Using the caller access management module, pushing the adjusted call control policy to the service caller component in real time; and The caller call control policy is updated based on the adjusted call control policy through the service caller component.

10. A service invocation device for a bilateral service party, characterized in that: The device comprises: A call initiating unit, used to initiate a first call request corresponding to the first service through a service caller, and obtain registration information corresponding to the first service in the service management and control platform and a current call control policy of the caller; a caller determination unit, configured to send a second call request corresponding to the first service to a service provider through the service caller based on the registration information when the service caller determines that the first call request satisfies the current call control policy of the caller; A call request receiving unit, configured to receive the second call request through the service provider, and obtain a current provider call control policy corresponding to the first service in the service management and control platform; a provider determination unit, configured to, when the service provider determines that the second call request satisfies the current provider call control policy, call the first service based on the second call request through the service provider to return a call return request of the first service to the service caller; and The return request receiving unit is used to use the service caller to receive the call return request of the first service to complete the call of the first service.

11. An electronic device, comprising: one or more processors; a memory for storing one or more computer programs, It is characterized in that the one or more processors execute the one or more computer programs to implement the steps of the method according to any one of claims 1 to 9.

12. A computer-readable storage medium having a computer program or instruction stored thereon, characterized in that: When the computer program or instruction is executed by a processor, the steps of the method according to any one of claims 1 to 9 are implemented.

13. A computer program product comprising a computer program or instructions, characterized in that When the computer program or instruction is executed by a processor, the steps of the method according to any one of claims 1 to 9 are implemented.

Citation Information

Patent Citations

  • Service control method and system in open platform

    CN103188204A

  • Flow limiting method and device for service calling

    CN108683605A

  • Service calling method, device and system based on block chain and electronic equipment

    CN114866615A

  • Service calling method and system, computing equipment and storage medium

    CN116708525A

  • Cross-cloud service calling method and system, electronic equipment and storage medium

    CN118283106A