Interface calling method and apparatus
Through the cloud server's ecological service market, application program interface call authentication and resource management are performed, which solves the problems of high open cost and poor stability of application program interfaces, and achieves improvements in security and stability.
Patent Information
- Application Number
- PCT/CN2024/074907
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-13
- Filing Date
- 2024-01-31
- Publication Date
- 2024-09-19
AI Technical Summary
During the interface calling process between different applications, key encryption leads to high interface opening costs, and it is difficult to detect server failures, resulting in poor stability of interface calling.
The cloud server provides an ecological service market, receives the identity information of the application for authentication and ecosystem analysis, recommends callable application interfaces, and expands resources when necessary to ensure the security and stability of the interface calling process.
It reduces the cost of opening application program interfaces, improves the security and stability of interface calls, improves the efficiency of interface calls and transparent fee settlement.
Smart Images

Figure CN2024074907_19092024_PF_FP_ABST
Abstract
Description
Interface calling method and device
[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office on March 13, 2023, with application number 202310237793.8 and invention name “An interface calling method and device”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The embodiments of the present application relate to the field of computers, and in particular to an interface calling method and device. Background Art
[0003] With the development of cloud computing technology, more and more companies are using cloud services to quickly and easily launch applications or web applications. However, even if the applications or web applications are developed by the same cloud service provider, there is still no need to call them through the application program interface between different applications or web applications.
[0004] Currently, when different applications call each other through application interfaces, key encryption is generally used to ensure the security of the calls. For example, Party A's application needs to encrypt the interface call request and send it to Party B's application. After Party B's application decrypts it, it encrypts the returned result again and sends it to Party A's application. Party A's application then decrypts the returned result and uses it.
[0005] Because key encryption is used during interface calls between applications, the cost of opening interfaces between applications is high. At the same time, when a network failure or even a physical failure occurs on the server of one application, it is difficult for the other party to perceive it, resulting in poor stability of the interface calls.
[0006] Summary of the Invention
[0007] The embodiments of the present application provide an interface calling method and apparatus for reducing the cost of opening an application's calling interface.
[0008] The first aspect of the embodiment of the present application provides an interface calling method, which can be executed by a cloud server, or by a component of the cloud server, such as a processor, chip or chip system of the cloud server, or by a logic module or software that can realize all or part of the cloud server functions. Taking the cloud server execution as an example, the interface calling method provided in the first aspect includes: the cloud server provides an ecological service market, and the ecological service market is used to provide services for application interface calls between different applications. The cloud server receives an interface call request sent by the first application through the ecological service market, and the interface call request carries the identity of the first application. The interface call request is used to call the application interface of the second application, and the identity is provided by the ecological service market. The cloud server authenticates the identity of the first application carried by the interface call request through the ecological service market. If the authentication is passed, the application interface of the second application is called through the ecological service market.
[0009] In the embodiment of the present application, the cloud server provides application program interface call-related services for different applications by providing an ecological service market, so that different applications can make application program interface calls through the ecological service market, thereby reducing the interface opening cost of different applications and improving the security of interface calls between different applications.
[0010] In one possible implementation, the cloud server receives identity information sent by different applications through the ecological service market. The identity information includes one or more of the following information: business attribute information, industry information, and data scale information. Different applications include a first application and a second application.
[0011] In the embodiment of the present application, different applications can report their identity information to the ecological service market, and the ecological service market ensures that the interface call requests between different applications are legal, thereby improving the security of application interface calls between different applications.
[0012] In a possible implementation, the cloud server performs an ecosystem analysis on the identity information through the ecological service market to obtain an analysis result, and the analysis result is used to recommend an application program interface that can be called to the first application.
[0013] In the implementation of this application, the ecological service market can perform ecosystem analysis based on the identity information reported by different applications, thereby recommending callable application interfaces for the applications, thereby improving the richness of the callable application interfaces selected by the applications.
[0014] In one possible implementation, after performing an ecosystem analysis based on the identity information of the first application, the ecosystem service market can display the results of the ecosystem analysis through a management interface. The analysis results include the application program interfaces (APIs) associated with the first application and detailed interface information. The interface information includes API identifiers, functional keywords, interface documentation, price quotes, and call counts. The first application can then select an application from the associated APIs to call.
[0015] In the embodiment of the present application, the ecological service market can perform ecosystem analysis and display the analysis results through a display interface. The analysis results include detailed information such as recommended application interface identifiers, function keywords, interface documents, quotations, and number of calls, so that the application can select an application interface from the recommended related application interfaces based on the detailed information to call, thereby improving the interface calling efficiency of the application.
[0016] In one possible implementation, the cloud server obtains resource monitoring information corresponding to the second application from the ecosystem service market. The resource monitoring information includes CPU utilization, memory capacity, and bandwidth. Based on the resource monitoring information, the cloud server sends a capacity expansion request message to the second application. In response to the expansion request message, the second application expands the cloud resources corresponding to the second application. The expansion targets may include elastic cloud servers, cloud hard drives, object storage services, or bandwidth.
[0017] In the implementation of this application, the ecological service market can obtain resource monitoring information of different applications and send expansion request messages to the applications based on the resource monitoring information, thereby improving the stability of services provided by the application interface.
[0018] In one possible implementation, the cloud server displays interface call information through the ecological service market, where the interface call information includes one or more of the following: number of interface call requests, number of successful interface calls, interface call duration, and traffic consumption statistics.
[0019] In the embodiment of the present application, the cloud service can generate the interface call information of the application based on the application interface call process, and display the interface call information through the cloud service market, thereby facilitating the application to query the interface call records and improving the feasibility of the solution.
[0020] In one possible implementation, the cloud server generates billing information based on the interface call information. The billing information includes one or more of the following: the total cost and the average daily cost of the interface call. The cloud server settles the billing information through the ecological service market.
[0021] In the embodiment of the present application, the cloud server can generate billing information based on the interface call information of the application, and the application can settle the value-added services provided by the ecological service market based on the billing information, thereby improving the efficiency and transparency of fee settlement.
[0022] In one possible implementation, the ecological service market can provide security services for application program interface call security. In the process of providing security services, the ecological service market can authenticate based on the identity of the application and record the number of security calls and the number of attacks resisted, as well as prompt the number of security vulnerabilities.
[0023] In the embodiment of the present application, the cloud server can record the number of security calls and the number of attacks resisted during the application program interface call process and prompt the number of security vulnerabilities, thereby improving the security of the application program interface call process.
[0024] In one possible implementation, the application and the ecological service market are both in the same cloud environment, and the cloud server can also be separately isolated in a secure local area network to reduce the risk of external attacks.
[0025] In the embodiment of the present application, the cloud server provides a variety of value-added services such as security services and stability guarantees for interface calls between cloud applications based on cloud native capabilities, thereby improving the security of application program interface calls.
[0026] The second aspect of the embodiment of the present application provides a cloud service device, which includes a transceiver module, an ecological service module, an authentication module and a calling module. Among them, the ecological service module is used to provide an ecological service market, and the ecological service market is used to provide services for application program interface calls between different applications. The transceiver module is used to receive an interface call request sent by a first application through the ecological service market. The interface call request carries the identity identifier of the first application. The interface call request is used to call the application program interface of the second application. The identity identifier is an identifier assigned by the ecological service market. The authentication module is used to authenticate the identity identifier of the first application through the ecological service market. If the authentication is passed, the calling module calls the application program interface of the second application through the ecological service market.
[0027] In one possible implementation, the transceiver module is also used to receive identity information sent by different applications through the ecological service market. The identity information includes one or more of the following information: business attribute information, industry information, and data scale information. Different applications include a first application and a second application.
[0028] In one possible implementation, the ecological service module includes an analysis submodule, which is used to perform an ecosystem analysis on the identity information through the ecological service market to obtain an analysis result, and the analysis result is used to recommend an application program interface that can be called to the first application.
[0029] In a possible implementation, the ecological service module further includes a monitoring submodule, which is used to obtain resource monitoring information corresponding to the second application through the ecological service market, where the resource monitoring information includes central processing unit (CPU) utilization, memory capacity, and bandwidth.
[0030] In one possible implementation, the ecological service module also includes a user interface UI sub-module, which is used to display interface call information through the ecological service market. The interface call information includes one or more of the following: the number of interface call requests, the number of successful interface calls, the interface call duration, and traffic consumption statistics.
[0031] In one possible embodiment, the apparatus further includes a billing module configured to generate billing information based on the interface call information. The billing information includes one or more of the following: a total fee and an average daily fee incurred by the interface call. The processing unit is further configured to settle the billing information through the ecosystem service market.
[0032] A third aspect of an embodiment of the present application provides a computing device cluster, which includes one or more computing devices. The computing device includes a processor, which is coupled to a memory. The processor is used to store instructions. When the instructions are executed by the processor, the computing device cluster executes the method described in the first aspect or any possible implementation method of the first aspect.
[0033] A fourth aspect of an embodiment of the present application provides a computer-readable storage medium having instructions stored thereon. When the instructions are executed, the computer executes the method described in the first aspect or any possible implementation of the first aspect.
[0034] A fifth aspect of the embodiments of the present application provides a computer program product, which includes instructions. When the instructions are executed, the computer implements the method described in the first aspect or any possible implementation method of the first aspect.
[0035] It can be understood that the beneficial effects that can be achieved by any of the interface calling devices, computing device clusters, computer-readable media or computer program products provided above can refer to the beneficial effects in the corresponding methods and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] FIG1 is a schematic diagram of a cloud service system architecture provided by an embodiment of the present application;
[0037] FIG2 is a flow chart of an interface calling method provided in an embodiment of the present application;
[0038] FIG3 is a flow chart of another interface calling method provided in an embodiment of the present application;
[0039] FIG4 is a schematic diagram of a display interface of an ecological service market provided in an embodiment of the present application;
[0040] FIG5 is a schematic diagram of a display interface of an ecological service market provided in an embodiment of the present application;
[0041] FIG6 is a schematic diagram of a cloud service device provided in an embodiment of the present application;
[0042] FIG7 is a schematic diagram of the structure of a computing device provided in an embodiment of the present application;
[0043] FIG8 is a schematic diagram of the structure of a computing device cluster provided in an embodiment of the present application;
[0044] FIG9 is a schematic diagram of the structure of another computing device cluster provided in an embodiment of the present application. DETAILED DESCRIPTION
[0045] The embodiments of the present application provide an interface calling method and apparatus for reducing the interface opening cost of an application program.
[0046] The terms "first," "second," "third," "fourth," and the like (if any) in the specification and claims of this application and in the accompanying drawings are used to distinguish similar objects and are not necessarily used to describe a particular order or sequential sequence. It should be understood that the terms used in this manner are interchangeable where appropriate so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including" and "having," and any variations thereof, are intended to cover non-exclusive inclusions, e.g., a process, method, system, product, or apparatus comprising a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0047] In the embodiments of this application, words such as "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of this application should not be interpreted as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete manner.
[0048] The following describes the interface calling method and device provided by the embodiments of the present application in conjunction with the accompanying drawings.
[0049] Please refer to Figure 1, which is a schematic diagram of the system architecture used in an interface calling method provided in an embodiment of the present application. In the example shown in Figure 1, cloud service system 100 includes application module 101 and ecological service market 102. Application module 101 can be one or more application modules. For example, application module 101 includes a first application module 1011 and a second application module 1012. The following describes the specific functions of each module in cloud service system 100.
[0050] The application module 101 is used to provide application services to users through the ecological service market 102. Specifically, the application module 101 calls the application programming interface (API) of other applications through the ecological service market 102, or receives interface call requests from other applications through the ecological service market 102. For example, the first application module 1011 is used to call the application programming interface (API) of the second application module 1012 through the ecological service market 102 to obtain application services provided by the second application module 1012, such as map application services, accommodation application services, and catering application services.
[0051] The ecological service market 102 is used to provide value-added services such as security services and stability assurance for interface call requests between different application modules 101. Specifically, the ecological service market 102 is used to authenticate and confirm the identities of different application modules 101, thereby ensuring that the interface call requests of different application modules 101 are legitimate requests.
[0052] Ecosystem service market 102 is used to provide application program interface (API) recommendation services for different application modules 101. Specifically, ecosystem service market 102 is also used to receive identity information reported by different application modules 101 and perform ecosystem analysis based on this identity information to recommend relevant APIs for different application modules 101. Different application modules 101 call these APIs based on the recommended application structure to implement various application services. Identity information includes one or more of the following: business attribute information, industry information, and data scale information.
[0053] In the embodiment of the present application, the first application module 1011, the second application module 1012 and the ecological service market 102 can be deployed on a cloud server provided by the same cloud vendor, or can be deployed on cloud servers provided by different cloud vendors respectively, without specific limitation.
[0054] The following describes the interface calling method provided in the embodiment of the present application in conjunction with Figure 2.
[0055] Please refer to Figure 2, which is a flow chart of an interface calling method provided in an embodiment of the present application. In the example shown in Figure 2, the interface calling method provided in an embodiment of the present application includes the following steps:
[0056] 201. The cloud server provides an ecological service market, which is used to provide services for application program interface calls between different applications.
[0057] In the embodiments of this application, the cloud server provides an ecosystem service market that provides services for API calls between different applications. The ecosystem service market can provide services such as API recommendation, security, stability assurance, and API call information query. Different applications can use this ecosystem service market to select the API to call.
[0058] In one possible implementation, the cloud server receives identity information of different applications through the ecological service market. The identity information includes one or more of the following information: business attribute information, industry information, and data scale information. Different applications include multiple different application programs. Different applications are introduced using the first application and the second application as examples.
[0059] Business attribute information is a label describing the market segment in which the application operates. An application can have multiple dimensions of business information. For example, the business attribute information for a map application includes navigation and services directly targeting end customers (To C). Industry information describes the industry to which the application belongs. For example, the industry information for a map application is the travel industry. Data scale information is the amount of data that the application needs to process, such as 10TB.
[0060] In the embodiment of the present application, different applications report their identity information to the ecological service market, and the ecological service market ensures that the interface call requests between different applications are legal, thereby improving the security of application interface calls between different applications.
[0061] In one possible implementation, after receiving the identity information reported by the application, the cloud server performs an ecosystem analysis on the identity information through the ecosystem service market, obtains analysis results, and uses the analysis results to recommend application programming interfaces (APIs) that can be called to the first application. The first application can then select the API to call based on the analysis results.
[0062] For example, for a map application, the cloud server performs an ecosystem analysis on the map application's identity information through the ecosystem service market, obtaining analysis results of the travel ecosystem associated with the map application. The analysis results include APIs for accommodation applications, weather applications, and parking applications. The map application can then select the API to call based on the analysis results.
[0063] It should be noted that in the embodiment of the present application, the application can set identity information as private information. If the application sets identity information as private information, the cloud server will not perform ecosystem analysis based on the identity information of the application.
[0064] Please refer to Figure 3, which is a flowchart illustrating an interface invocation method provided in an embodiment of the present application. In steps 1 and 2 of the example shown in Figure 3, the first and second applications report application program interface information and identity information to the ecosystem service market. The application program interface information includes the interface document, and the identity information includes business attribute information, industry information, and data scale information. The ecosystem service market opens the program interface to the first and second applications.
[0065] In step 3 of the example shown in Figure 3, after receiving the identity information reported by the first and second applications, the ecosystem service market performs an ecosystem analysis on the identity information reported by the first application and, based on the results of the ecosystem analysis, recommends APIs that can be called to the first application. For example, if the first application is a map application, the analysis results include APIs in the travel ecosystem associated with the map application, such as the hotel application, the food application, the attraction application, and the parking application. The map application selects the API to call from the recommended APIs.
[0066] In the implementation of this application, the ecological service market can perform ecosystem analysis based on the identity information reported by different applications, and recommend callable application interfaces for different applications, thereby improving the richness of the callable application interfaces selected by applications.
[0067] In the embodiment of the present application, after the ecosystem service market performs an ecosystem analysis based on the identity information of the first application, the analysis results can be displayed on the management interface. The analysis results include application program interfaces (APIs) related to the first application and interface details corresponding to the APIs. The interface details include API identifiers, function keywords, interface documentation, price quotes, and call counts. The first application can select an application from the related APIs to call.
[0068] Please refer to Figure 4, which shows a schematic diagram of the display interface of an ecosystem service market provided in an embodiment of the present application. In the example shown in Figure 4, the ecosystem service market performs an ecosystem analysis based on the identity information of a map application and displays the analysis results in the ecosystem service market's management display interface. As can be seen from the display interface, the ecosystem service market analyzes the relevant ecosystem of the map application and obtains the associated application program interface.
[0069] For example, in the example shown in Figure 4, after the ecological service market analyzes the map application ecosystem, the relevant ecosystems of the map application include parking, epidemic prevention policies, food, ticket sales, shared bicycles, and hotels. Among them, different ecosystems correspond to one or more applications. For example, the application corresponding to the parking ecosystem includes App A, App B, and App E. When the map application needs to call the parking-related application program interface, the map application can select the medical application program interface of App A, App B, and App E to call.
[0070] In the example shown in Figure 4, in addition to analyzing the relevant ecosystem of the map application and displaying recommended application programming interfaces, the ecological service market can also display detailed information of the recommended application programming interfaces through the display interface, including application programming interface identifiers, function keywords, interface documents, quotations, and number of calls.
[0071] The analysis results provided by the ecological service market in the embodiment of the present application include detailed information such as the recommended application interface identifier, function keywords, interface documentation, quotations, and number of calls, so that the application can select the application interface to be called from the recommended related application interfaces based on the detailed information, thereby improving the interface calling efficiency of the application.
[0072] 202. The cloud server receives an interface call request sent by the first application through the ecological service market. The interface call request carries the identity identifier of the first application, and the interface call request is used to call the application program interface of the second application.
[0073] In an embodiment of the present application, after the first application determines from the recommended application program interface that it wants to call the application program interface of the second application, the first application sends an interface call request to the ecological service market, and the ecological service market receives the interface call request sent by the first application. The interface call request carries the identity identifier of the first application. The interface call request is used to call the application program interface of the second application, and the identity identifier is the identity identifier provided by the ecological service market to the first application.
[0074] Please continue to refer to Figure 3. In step 4 of the example shown in Figure 3, the ecological service market receives an interface call request sent by the first application. The interface call request is used to request to call the application program interface of the second application. The interface call request carries the identity of the first application.
[0075] 203. The cloud server authenticates the interface call request through the ecological service market.
[0076] After receiving the interface call request, the cloud server authenticates the interface call request through the ecosystem service market. Specifically, the ecosystem service market authenticates the interface call request sent by the first application based on the identity identifier carried in the interface call request. If the identity identifier carried in the interface call request matches the identity identifier assigned to the first application by the ecosystem service market, the interface call request is deemed legitimate and authentication is successful.
[0077] Continuing with Figure 3, in steps 4 and 5 of the example shown in Figure 3, the ecosystem service market receives an interface call request from a first application, requesting to call an application programming interface (API) of a second application. The interface call request carries the identity of the first application. The ecosystem service market authenticates the interface call request from the first application based on the identity carried in the interface call request.
[0078] For example, the first application is a map application. The ecological service market receives the interface call request sent by the first application. The ecological service market authenticates the interface call request sent by the map application based on the identity carried in the interface call request. If the identity carried in the interface call request is consistent with the identity pre-assigned by the ecological service market to the map application, it is determined that the interface call request sent by the map application is legal and the authentication is passed.
[0079] In the implementation of the embodiment of the present application, the cloud server does not need to perform authentication through an additional agreed key. The first application and the second application are both cloud applications in the ecological service market. The cloud server provides identity identification for different applications through the ecological service market, thereby making the identities of the first application and the second application credible.
[0080] 204. If the authentication is successful, the cloud server calls the application programming interface of the second application through the ecological service market.
[0081] If the ecosystem service market authenticates the interface call request of the first application, the first application can call the application program interface of the second application through the ecosystem service market. Specifically, the ecosystem service market sends an interface call request to the second application.
[0082] In one possible implementation, the cloud server obtains resource monitoring information for the second application through the ecosystem service market. This resource monitoring information includes the CPU utilization, memory capacity, and bandwidth of the second application's backend resources. The second application's backend resources include the cloud resources used by the second application, including processor resources, storage resources, and bandwidth resources. Based on the resource monitoring information, the ecosystem service market sends an expansion request message to the second application. Based on the expansion request message, the second application expands the cloud resources corresponding to the second application. The expansion target can be an elastic cloud server, cloud hard disk, object storage service, or bandwidth.
[0083] Continuing with Figure 3, in steps 6 through 8 of the embodiment shown in Figure 3, after the ecosystem service marketplace authenticates the interface call request sent by the first application, the first application then accesses the services provided by the second application by calling the API of the second application. For example, a map application calls the API of a hotel application through the ecosystem service marketplace to implement the hotel reservation service provided by the hotel application.
[0084] In the example shown in Figure 3, the ecosystem service market obtains resource monitoring information for a second application and sends a capacity expansion request message to the second application based on the resource monitoring information. For example, the ecosystem service market obtains bandwidth monitoring information for a hotel application. When the hotel application's bandwidth monitoring information indicates that the current bandwidth is less than a bandwidth threshold, the ecosystem service market sends a capacity expansion request message to the hotel application, and the hotel application expands the bandwidth based on the capacity expansion request message.
[0085] In the implementation of this application, the ecological service market can obtain the resource monitoring information of the application and send expansion request messages to the application based on the resource monitoring information, thereby improving the stability of the application service provided by the application interface.
[0086] In the embodiments of the present application, the ecosystem service market can provide security services for application program interface (API) calls. Specifically, during the security service provision process, the ecosystem service market can authenticate based on the application's identity and record the number of security calls. The ecosystem service market can also record the number of attacks resisted and indicate security vulnerabilities. The ecosystem service market can also assess the risk level and provide a security score based on the API call process.
[0087] In one possible implementation, when the application and the ecological service market are in the same cloud environment, the cloud server can also be isolated in a separate secure local area network to reduce the risk of external attacks.
[0088] Please refer to Figure 5, which is a schematic diagram of the display interface of another ecological service market provided in an embodiment of the present application. In the example shown in Figure 5, the ecological service market can provide security services for application calls and display the number of security calls, the number of successful attacks resisted, and the number of vulnerability risks through the display interface, and provide a security level and security score. For example, in the "Security Overview" display interface shown in Figure 5, the ecological service market identifies the number of security calls as 51, the number of successful attacks resisted as 0, the number of vulnerability risks as 0, the risk level as low, and the security score as 70 points.
[0089] In one possible implementation, after the ecological service market completes the call to the application interface, the ecological service market generates interface call information and displays the interface call information through the ecological service market. The interface call information includes one or more of the following: the number of interface call requests, the number of successful interface calls, the interface call duration, and traffic consumption statistics.
[0090] In one possible implementation, after the ecosystem service market generates interface call information, it generates billing information based on the interface call information and displays the billing information through the ecosystem service market. The billing information includes one or more of the following: the total cost and the average daily cost incurred by the interface call. The first application settles the billing information through the ecosystem service market.
[0091] Please refer to Figure 5. In the example shown in Figure 5, after the service ecosystem market completes the application program interface call, the ecosystem service market generates interface call information and billing information, and displays the interface call information and billing information through the ecosystem service market. For example, in the "Associated App / Web Call Details" display interface of the ecosystem service market shown in Figure 5, the ecosystem service market can display the interface call information and billing information of App A. The interface call information includes the number of request calls, the number of successful calls, the request call duration, and the data usage. The billing information includes the total fee and the average daily fee.
[0092] It can be seen from the above embodiments that the cloud server in the embodiments of the present application provides application program interface call-related services for different applications by providing an ecological service market, so that different applications can make application program interface calls through the ecological service market, reducing the interface opening costs of different applications and improving the security of interface calls between different applications.
[0093] The above introduces the interface calling method provided by the embodiment of the present application. The following introduces the cloud service device provided by the embodiment of the present application.
[0094] Please refer to Figure 6, which is a schematic diagram of the structure of a cloud service device provided in an embodiment of the present application. In the example shown in Figure 6, the cloud service device is used to implement the various steps performed by the cloud server in the above embodiments. The cloud service device 600 includes a transceiver module 601, an ecosystem service module 602, an authentication module 603, and a call module 604.
[0095] Ecosystem service module 602 is used to provide an ecosystem service market, which facilitates API calls between different applications. Transceiver module 601 is used to receive an API call request from a first application through the ecosystem service market. This API call request carries the identity of the first application and is used to call the API of a second application. The identity is an identifier assigned by the ecosystem service market. Authentication module 603 is used to authenticate the identity of the first application through the ecosystem service market. If authentication is successful, calling module 604 calls the API of the second application through the ecosystem service market.
[0096] In one possible implementation, the transceiver module 601 is also used to receive identity information sent by different applications through the ecological service market. The identity information includes one or more of the following information: business attribute information, industry information, and data scale information. Different applications include a first application and a second application.
[0097] In one possible implementation, the ecological service module 602 includes an analysis submodule 6021, which is used to perform an ecosystem analysis on the identity information through the ecological service market to obtain an analysis result, which is used to recommend an application program interface that can be called to the first application.
[0098] In one possible implementation, the ecological service module 602 further includes a monitoring submodule 6022, which is further configured to obtain resource monitoring information corresponding to the second application through the ecological service market, where the resource monitoring information includes central processing unit (CPU) utilization, memory capacity, and bandwidth.
[0099] In one possible implementation, the ecological service module 602 also includes a UI sub-module 6023, which is used to display interface call information through the ecological service market. The interface call information includes one or more of the following: the number of interface call requests, the number of successful interface calls, the interface call duration, and traffic consumption statistics.
[0100] In one possible embodiment, cloud service device 600 further includes a billing module 605 configured to generate billing information based on the interface call information. The billing information may include one or more of the following: the total cost and the average daily cost incurred by the interface call. Processing unit 602 may also be configured to settle the billing information through the ecosystem service market.
[0101] It should be understood that the division of units in the above device is merely a division of logical functions. In actual implementation, they can be fully or partially integrated into one physical entity, or they can be physically separated. Moreover, the units in the device can all be implemented in the form of software called through processing elements; or they can all be implemented in the form of hardware; or some units can be implemented in the form of software called through processing elements, and some units can be implemented in the form of hardware. For example, each unit can be a separately established processing element, or it can be integrated into a certain chip of the device. In addition, it can also be stored in the memory in the form of a program, called by a certain processing element of the device and perform the function of the unit. In addition, all or part of these units can be integrated together, or they can be implemented independently. The processing element described here can also be a processor, which can be an integrated circuit with signal processing capabilities. In the implementation process, each step of the above method or each unit above can be implemented by the integrated logic circuit of the hardware in the processor element or in the form of software called through the processing element.
[0102] It is worth noting that, for the sake of simplicity, the above method embodiments are expressed as a series of action combinations. However, those skilled in the art should know that the present invention is not limited to the order of the actions described. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required for the present invention.
[0103] Other reasonable step combinations that can be thought of by those skilled in the art based on the above description also fall within the scope of protection of the present invention. Secondly, those skilled in the art should also be familiar with that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the present invention.
[0104] Please refer to Figure 7, which is a schematic diagram of the structure of a computing device provided in an embodiment of the present application. As shown in Figure 7, the computing device 700 includes: a processor 701, a memory 702, a communication interface 703, and a bus 704. The processor 701, the memory 702, and the communication interface 703 are coupled via a bus (not labeled in the figure). The memory 702 stores instructions. When the execution instructions in the memory 702 are executed, the computing device 700 executes the method executed by the cloud server in the above method embodiment.
[0105] The computing device 700 may be one or more integrated circuits configured to implement the above method, such as one or more application specific integrated circuits (ASICs), one or more digital signal processors (DSPs), one or more field programmable gate arrays (FPGAs), or a combination of at least two of these integrated circuit forms. For example, when a unit in the apparatus can be implemented in the form of a processing element scheduler, the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processor that can call a program. For example, these units may be integrated together and implemented in the form of a system-on-a-chip (SOC).
[0106] The processor 701 may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field programmable gate arrays (FPGA), other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. The general-purpose processor may be a microprocessor or any conventional processor.
[0107] Memory 702 may be volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. Nonvolatile memory may be read-only memory (ROM), programmable ROM (PROM), erasable programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may be random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static RAM (SRAM), dynamic random access memory (DRAM), synchronous DRAM (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct rambus RAM (DR RAM).
[0108] The memory 702 stores executable program code, and the processor 701 executes the executable program code to respectively implement the functions of the aforementioned transceiver module, ecological service module, authentication module, call module, and billing module, thereby implementing the aforementioned interface call method. In other words, the memory 702 stores instructions for executing the aforementioned interface call method.
[0109] The communication interface 703 uses a transceiver module such as, but not limited to, a network interface card or a transceiver to implement communication between the computing device 700 and other devices or a communication network.
[0110] In addition to the data bus, bus 704 may also include a power bus, a control bus, and a status signal bus. The bus may be a Peripheral Component Interconnect Express (PCIe) bus, an Extended Industry Standard Architecture (EISA) bus, a unified bus (Ubus or UB), a Compute Express Link (CXL), or a Cache Coherent Interconnect for Accelerators (CCIX). Buses can be categorized as address buses, data buses, and control buses.
[0111] Please refer to FIG8 , which is a schematic diagram of a computing device cluster provided in an embodiment of the present application. As shown in FIG8 , the computing device cluster 800 includes at least one computing device 700 .
[0112] As shown in Figure 8, the computing device cluster 800 includes at least one computing device 700. The memory 702 in one or more computing devices 700 in the computing device cluster 800 may store the same instructions for executing the above interface calling method.
[0113] In some possible implementations, the memory 702 of one or more computing devices 700 in the computing device cluster 800 may also store partial instructions for executing the above-mentioned interface calling method. In other words, the combination of one or more computing devices 700 can jointly execute the instructions for executing the above-mentioned interface calling method.
[0114] It should be noted that the memory 702 in different computing devices 700 in the computing device cluster 800 can store different instructions, each for executing a portion of the functions of the above-mentioned interface calling device. In other words, the instructions stored in the memory 702 in different computing devices 700 can implement the functions of one or more modules among the transceiver module, the ecological service module, the authentication module, the calling module, and the billing module.
[0115] In some possible implementations, one or more computing devices 700 in the computing device cluster 800 may be connected via a network, which may be a wide area network or a local area network.
[0116] Please refer to Figure 9, which is a schematic diagram of computer devices in a computer cluster provided by an embodiment of the present application connected via a network. As shown in Figure 9, two computing devices 700A and 700B are connected via a network. Specifically, the connection to the network is through a communication interface in each computing device.
[0117] In one possible implementation, the memory of computing device 700A stores instructions for executing the functions of the transceiver module and the authentication module. Meanwhile, the memory of computing device 700B stores instructions for executing the functions of the ecosystem service module, the call module, and the billing module.
[0118] It should be understood that the functions of the computing device 700A shown in Figure 9 may also be completed by multiple computing devices. Similarly, the functions of the computing device 700B may also be completed by multiple computing devices.
[0119] In another embodiment of the present application, a computer-readable storage medium is provided, in which computer-executable instructions are stored. When the processor of the device executes the computer-executable instructions, the device executes the method executed by the cloud server in the above method embodiment.
[0120] In another embodiment of the present application, a computer program product is provided, the computer program product including computer-executable instructions stored in a computer-readable storage medium. When a processor of a device executes the computer-executable instructions, the device executes the method executed by the cloud server in the above method embodiment.
[0121] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0122] In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0123] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.
[0124] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.
[0125] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
Claims
1. An interface calling method, characterized in that: Applied to cloud servers, including: Providing an ecological service market, wherein the ecological service market is used to provide services for application program interface calls between different applications; Receiving, through the ecological service market, an interface call request sent by a first application, the interface call request carrying an identity identifier of the first application, the interface call request being used to call an application program interface of a second application, and the identity identifier being an identifier allocated by the ecological service market; Authenticating the identity of the first application carried in the interface call request through the ecological service market; If the authentication is successful, the application program interface of the second application is called through the ecological service market.
2. The method according to claim 1, characterized in that The method further comprises: The ecological service market receives identity information sent by different applications, where the identity information includes one or more of the following information: business attribute information, industry information, and data scale information, and the different applications include the first application and the second application.
3. The method according to claim 2, characterized in that The method further comprises: The identity information is subjected to an ecosystem analysis through the ecosystem service market to obtain an analysis result, and the analysis result is used to recommend an application program interface that can be called to the first application.
4. The method according to any one of claims 1 to 3, characterized in that The method further comprises: The resource monitoring information corresponding to the second application is obtained through the ecological service market, and the resource monitoring information includes central processing unit CPU utilization, memory capacity and bandwidth.
5. The method according to any one of claims 1 to 4, characterized in that The method further comprises: The interface call information is displayed through the ecological service market, and the interface call information includes one or more of the following: the number of interface call requests, the number of successful interface calls, the interface call duration, and traffic consumption statistics.
6. The method according to claim 5, characterized in that The method further comprises: Generate billing information based on the interface call information, the billing information including one or more of the following: the total cost and average daily cost generated by the interface call; The billing information is settled through the ecological service market.
7. A cloud service device, characterized in that: Includes sending and receiving module, ecological service module, authentication module and calling module; The ecological service module is used to provide an ecological service market, and the ecological service market is used to provide services for application program interface calls between different applications; The transceiver module is used to receive an interface call request sent by a first application through the ecological service market, the interface call request carries an identity identifier of the first application, the interface call request is used to call an application program interface of a second application, and the identity identifier is an identifier allocated by the ecological service market; The authentication module is used to authenticate the identity of the first application through the ecological service market; If the authentication is successful, the calling module is used to call the application program interface of the second application through the ecological service market.
8. The device according to claim 7, characterized in that The transceiver module is also used for: The ecological service market receives identity information sent by different applications, where the identity information includes one or more of the following information: business attribute information, industry information, and data scale information, and the different applications include the first application and the second application.
9. The device according to claim 8, characterized in that The ecological service module also includes an analysis submodule, which is further used to: The identity information is subjected to an ecosystem analysis through the ecosystem service market to obtain an analysis result, and the analysis result is used to recommend an application program interface that can be called to the first application.
10. The device according to any one of claims 7 to 9, characterized in that The ecological service module also includes a monitoring submodule, which is used to: The resource monitoring information corresponding to the second application is obtained through the ecological service market, and the resource monitoring information includes central processing unit CPU utilization, memory capacity and bandwidth.
11. The device according to any one of claims 7 to 10, characterized in that The ecological service module also includes a user interface UI submodule, which is used to: The interface call information is displayed through the ecological service market, and the interface call information includes one or more of the following: the number of interface call requests, the number of successful interface calls, the interface call duration, and traffic consumption statistics.
12. The device according to claim 11, characterized in that: The device further comprises a charging module, wherein the charging module is used for: Generate billing information based on the interface call information, the billing information including one or more of the following: the total cost and average daily cost generated by the interface call; The billing information is settled through the ecological service market.
13. A computing device cluster, characterized in that: The system comprises one or more computing devices, wherein the computing devices include a processor, the processor is coupled to a memory, and the processor is used to store instructions. When the instructions are executed by the processor, the computing device cluster executes the method according to any one of claims 1 to 6.
14. A computer-readable storage medium having instructions stored thereon, characterized in that: When the instructions are executed, the computer is caused to perform the method according to any one of claims 1 to 6.
15. A computer program product, comprising instructions, characterized in that: When the instructions are executed, the computer implements the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Interface calling method and device
CN118677935A
Capacity open control service platform in government-enterprise cloud platform
CN105872051A
Method and system for accessing big data system
CN107026825A
Smart city service platform system based on PAAS cloud computing
CN110322382A
Edge application management method and related product
CN111163063A
