CN-121984883-A - Service combination method, system, computer program product and storage medium
Abstract
The embodiment of the application provides a service combination method, a system, a computer program product and a storage medium. A technical concept for implementing service composition based on a service grid system is presented. The method comprises the steps of deploying member services contained in a target compound service in a service grid system, controlling the related member services to cooperate according to an execution rule required by the target compound service when the service grid system receives a use request for the target compound service so as to complete response to the use request, and managing service flow corresponding to the target compound service in the cooperation process of the member services. On the one hand, the service grid system can effectively ensure the function realization of the target composite service, and on the other hand, the service management capability in the service grid system can be introduced into the process of service combination, thereby realizing the fine management of each member service, and further effectively improving the service quality of the target composite service.
Inventors
- WANG XINING
- YIN HANG
- MA YUANYUAN
- Shi Zehuan
- PAN MENGYUAN
Assignees
- 阿里云计算有限公司
Dates
- Publication Date
- 20260505
- Application Date
- 20241030
Claims (16)
- 1. A service combining method, adapted to a service grid system in which member services included in a target composite service have been deployed, the method comprising: receiving a use request for a target composite service; controlling the member services to cooperate according to the execution rules required by the target compound service so as to generate and output a processing result; And managing service traffic generated among the member services and/or inside the member services in the process of collaboration among the member services.
- 2. The method of claim 1, wherein a single member service corresponds to one or more service instances in the service grid system, and wherein controlling collaboration among the member services according to the execution rules required by the target composite service comprises: And carrying out route control on the service instance corresponding to the member service according to the execution rule so as to control the cooperation among the member services.
- 3. The method according to claim 2, wherein the service grid system includes a management and control component enabled for the target composite service, and performing route control on the service instance corresponding to the member service according to the execution rule includes: Under the condition that the control component receives a processing result output by any service instance corresponding to any member service, the control component determines a first service instance matched with the processing result according to the execution rule; And sending a calling request to the first service instance through the management and control component so as to call the first service instance to continue processing the processing result.
- 4. A method according to claim 3, further comprising: determining an output destination for the processing result of the first service instance according to the execution rule by the control component as a next-hop routing position of the first service instance; And configuring the next-hop routing position in the call request to control the first service instance to output a processing result generated by the first service instance to the next-hop routing position.
- 5. The method of claim 4, wherein determining, by the administration component, an output destination for the processing result of the first service instance according to the execution rule, comprises: If the control component determines that the processing result of the first service instance has an influence on a subsequent call path according to the execution rule, determining the output destination as the control component, so that the first service instance outputs the processing result generated by the first service instance to the control component; And if the control component determines that the processing result of the first service instance has no influence on a subsequent call path according to the execution rule, determining a second service instance required to be called by the first service instance according to the execution rule, and determining the output destination as the second service instance so that the first service instance directly calls the second service instance after the processing is completed.
- 6. The method of any one of claims 3-5, further comprising: And under the condition that the processing result of the first service instance has no influence on a subsequent call path, if the control component determines that the execution mode corresponding to the member service to which the first service instance belongs is sequential execution according to the execution rule and a fixed cooperative relationship exists among a plurality of continuous service instances starting from the first service instance, configuring the call sequence among the plurality of continuous service instances in the call request so as to enable the plurality of continuous service instances to automatically perform sequential call.
- 7. The method of claim 1, wherein enabling the process of controlling components for the target composite service in the service grid system comprises: In response to a deployment request initiated by a user for the target composite service, allocating a target container group for deploying the management and control component for the target composite request in the service grid system; In the target container group, starting a service instance corresponding to the control component to deploy the control component as one service in the service grid system; The management and control component is used for controlling the member services to cooperate according to the execution rules required by the target compound service.
- 8. The method as recited in claim 7, further comprising: and in the running process of the control component, monitoring the resource use state of the control component through a dynamic expansion device created for the control component in the service grid system, and dynamically adjusting the number of target container groups distributed for the control component according to the monitored resource use state.
- 9. The method according to any one of claims 1-5 or 6-8, wherein the service grid system further includes execution policy resources constructed for the target compound service, and wherein controlling the member services to cooperate according to the execution rules required by the target compound service includes: Accessing the execution policy resource; analyzing the execution rules required by the target compound service from the execution policy resources; And controlling the member services to cooperate according to the analyzed execution rule.
- 10. The method of claim 9, wherein the process of building the execution policy resource comprises: Receiving a service combination requirement submitted by a user through a self-defined resource mode aiming at the target compound service, wherein the service combination requirement describes member services required to be contained by the target compound service and required execution rules; Collecting description information of service examples corresponding to member services indicated in the service combination requirements in the service grid system; and constructing the execution strategy resource for the target compound service based on the service combination requirement and the collected description information according to a data structure required by the strategy resource in the service grid system.
- 11. The method of claim 10, wherein the execution rules described in the service composition requirements include one or more of a collaboration relationship between an execution mode corresponding to the target composite service and the included member service, a collaboration relationship between an execution mode corresponding to a member service and the included atomic service, and an influence relationship between a processing result and a call path, and the execution mode includes one or more types of sequential execution, conditional execution, concurrent execution, and converged execution.
- 12. The method according to any of claims 1-5 or 6-8, wherein managing traffic generated between the member services and/or within the member services during collaboration of the member services comprises: According to the execution rule required by the target compound service, determining a target service instance needing to enable the grid agent in each service instance corresponding to the member service; And through the started grid agent, in the process of the cooperation of the member service, carrying out security access control, observability management, automatic retry and/or automatic fusing on the flow generated on the target service instance.
- 13. The method of any one of claims 1-5 or 6-8, further comprising: setting a service access entry for the target composite service in an entry gateway contained in the service grid system; After receiving a use request for the target composite service, routing the use request through the ingress gateway to a management and control component enabled for the target composite service; the management and control component is used for controlling the member services to cooperate according to the execution rule.
- 14. A service grid system comprising a first class of nodes and a second class of nodes, member services included in a target composite service having been deployed on the second class of nodes, the first class of nodes being configured to perform the service combining method of any of claims 1-13.
- 15. A computer readable storage medium storing a computer program, characterized in that the computer program, when executed by one or more processors, causes the one or more processors to perform the service combining method of any of claims 1-13.
- 16. A computer program product comprising a computer program which, when executed by one or more processors, causes the one or more processors to perform the service combining method of any of claims 1-13.
Description
Service combination method, system, computer program product and storage medium Technical Field The present application relates to the field of cloud computing technology, and in particular, to a service combining method, a system, a computer program product, and a storage medium. Background Service combining refers to combining multiple independent services together to form a more complex service. Through the service combination technology, the functions of a plurality of services can be integrated to meet specific functional requirements. Currently, service composition is typically implemented by means of process management (Business Process Management) technology, where developers need to write out processes based on the process execution language (Business Process Execution Language, BPEL). The process management platform can control the service to cooperate with each other according to the process. But the quality of service that can be achieved by such existing implementations has not been able to meet the ever-increasing use demands of users. Disclosure of Invention Aspects of the present application provide a service combining method, system, computer program product, and storage medium for improving service quality after service combination. The embodiment of the application provides a service combination method, which is suitable for a service grid system, wherein member services contained in target compound services are deployed in the service grid system, and the method comprises the following steps: receiving a use request for a target composite service; controlling the member services to cooperate according to the execution rules required by the target compound service so as to generate and output a processing result; And managing service traffic generated among the member services and/or inside the member services in the process of collaboration among the member services. The embodiment of the application also provides a service grid system which comprises a first class node and a second class node, wherein the member service contained in the target compound service is deployed on the second class node, and the first class node is used for executing the service combination method. Embodiments of the present application also provide a computer-readable storage medium storing a computer program, which when executed by one or more processors causes the one or more processors to perform the aforementioned service combining method. Embodiments of the present application also provide a computer program product comprising a computer program which, when executed by one or more processors, causes the one or more processors to perform the aforementioned service combining method. In the embodiment of the application, a technical concept of realizing service combination based on a service grid system is provided. For any composite service that the user needs to implement, each member service included in the composite service may be deployed in the service grid system, which makes the member service a manageable object for the service grid system. On the basis, the service grid system can control the related member services to cooperate according to the execution rules required by the target compound service when receiving the use request for the target compound service so as to finish the response to the use request, and can manage service flow generated among the member services and/or inside the member services in the cooperation process of the member services. On one hand, the service grid system manages and controls related member services according to the execution rules required by the target compound service, so that the function realization of the target compound service can be effectively guaranteed, and on the other hand, the service management capability in the service grid system can be introduced into the service combination process, so that the fine management of each member service is realized, and the service quality of the target compound service can be effectively improved. Drawings The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute a limitation on the application. In the drawings: FIG. 1 provides a schematic diagram of an exemplary service grid system; Fig. 2 is a flowchart of a service combining method according to an exemplary embodiment of the present application; FIG. 3 is a schematic diagram of a service combining method according to an exemplary embodiment of the present application; FIG. 4 is an alternative logic diagram of a service composition method according to an exemplary embodiment of the present application; Fig. 5 is a schematic diagram of an application scenario according to an exemplary embodiment of the present application