Method and system for software application to adapt to multiple cloud platform PaaS services
By abstracting and adapting the PaaS service APIs of multiple cloud platforms, the inefficiency and data security problems caused by separate configuration and adjustment of business systems in multi-cloud environments are solved, and the rapid deployment of software applications on multiple cloud platforms is realized. Efficient management.
Patent Information
- Application Number
- CN202311041445.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-17
- Publication Date
- 2025-02-21
Smart Images

Figure CN119493578A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a technology for software applications to self-adapt to multiple cloud platform PaaS services. Background Art
[0002] With the rapid development of cloud computing technology, more and more customers choose to deploy applications on cloud platforms. Currently, there are multiple cloud service providers on the market that provide PaaS (Platform as a Service) services so that users can build, deploy and run applications on the cloud.
[0003] Deploying and running applications in a multi-cloud environment has many benefits, such as flexibility, scalability, reliability, and cost optimization. However, different cloud service providers may have different APIs (Application Programming Interface), SDKs (Software Development Kits), and services, which may cause challenges for developers when migrating applications.
[0004] In the existing PaaS technology, the adaptation and deployment of each business system within the enterprise to different cloud platforms depends on the separate configuration and adjustment of each business system, which leads to a series of problems and challenges: 1) A lot of repetitive work. Since each business system needs to be configured and adjusted for different cloud platforms, a lot of repetitive work is caused, which reduces the efficiency of development and deployment. 2) Difficult to maintain and expand. Separate configuration and adjustment for each cloud platform makes system maintenance and expansion more difficult, and support for new cloud platforms requires more time and effort. 3) Complex code management. Since the adaptation and deployment of each business system to different cloud platforms require code and configuration changes, code management becomes complicated, increasing code conflicts and maintenance costs. 4) Data security and consistency: When migrating and synchronizing data between different cloud platforms, data inconsistency and security issues may occur, affecting the data security and management efficiency of the entire group. Therefore, a method is needed to overcome these challenges and realize application deployment across multiple cloud platforms. Summary of the invention
[0005] The purpose of this application is to provide a method and system for software applications to self-adapt to multiple cloud platform PaaS services.
[0006] According to one aspect of the present application, a method for software application self-adaptation to multiple cloud platform PaaS services is provided, wherein the method comprises:
[0007] Abstract the PaaS service APIs of multiple cloud platforms and determine the cloud common API interface;
[0008] An adapter module is integrated into the software application to call the cloud universal API interface through the adapter module to interact with the cloud platform PaaS service.
[0009] Optionally, the method further comprises:
[0010] Based on one or more preset performance indicators, monitor the operating status of the software application interacting with the multiple cloud platform PaaS services.
[0011] Optionally, when the cloud platform includes an MQ governance platform, the adapter module includes an MQ multi-cloud adapter component, and calling the cloud universal API interface through the adapter module to interact with the cloud platform PaaS service includes:
[0012] The MQ governance platform issues producer and consumer configurations to software applications;
[0013] The MQ multi-cloud adapter component initializes the cloud platform PAAS component according to the configuration issued;
[0014] When a software application sends a message, it calls the cloud general API interface to send the message;
[0015] When a software application consumes messages, the MQ multi-cloud adapter component processes them based on the queue name and TAG.
[0016] Optionally, when the cloud platform includes a multi-cloud file storage platform, the adapter module includes a multi-cloud file storage adapter component, and the calling of the cloud universal API interface by the adapter module to interact with the cloud platform PaaS service includes:
[0017] Software application access to multi-cloud file storage adapter components;
[0018] The multi-cloud file storage platform sends file storage configurations to software applications;
[0019] The multi-cloud file storage adapter component initializes the multi-cloud file storage platform PAAS component according to the configuration issued;
[0020] When a software application operates file storage, it calls the cloud general API interface to operate file storage.
[0021] According to another aspect of the present application, a system for software application self-adaptation to multiple cloud platform PaaS services is also provided, wherein the system includes:
[0022] Abstraction module, used to abstract PaaS service APIs of multiple cloud platforms and determine the cloud common API interface;
[0023] The adapter module is integrated in the software application and is used to call the cloud universal API interface to interact with the cloud platform PaaS service.
[0024] Optionally, the system further comprises:
[0025] The monitoring module is used to monitor the operating status of the software application interacting with the multiple cloud platform PaaS services based on one or more preset performance indicators.
[0026] Optionally, the system further comprises:
[0027] The configuration management module is used to manage the relevant configuration information of each cloud platform.
[0028] According to another aspect of the present application, a computer-readable medium is provided, on which computer-readable instructions are stored. The computer-readable instructions can be executed by a processor to implement the operations of the aforementioned method.
[0029] Compared with the prior art, the present application abstracts the PaaS service APIs of multiple cloud platforms, determines the cloud-wide API interface, and then integrates an adapter module in the software application to call the cloud-wide API interface through the adapter module to interact with the PaaS service of the cloud platform, thereby realizing the rapid deployment of software applications on multiple cloud platforms, avoiding a large amount of repetitive work caused by separate deployment on each platform, improving deployment efficiency, and being easy to manage with high data security. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Other features, objects and advantages of the present invention will become more apparent from the detailed description of non-limiting embodiments made with reference to the following drawings:
[0031] Figure 1 A flowchart of a method for software application self-adaptation to multiple cloud platform PaaS services according to one aspect of the present application is shown;
[0032] Figure 2 A schematic diagram of a system for software application self-adaptation to multiple cloud platform PaaS services according to another aspect of the present application is shown.
[0033] The same or similar reference numerals in the drawings represent the same or similar components. DETAILED DESCRIPTION
[0034] The present invention is further described in detail below in conjunction with the accompanying drawings.
[0035] In a typical configuration of the present application, the terminal, the device of the service network and the trusted party all include one or more processors (CPU), input / output interfaces, network interfaces and memories.
[0036] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0037] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include non-transitory media such as modulated data signals and carrier waves.
[0038] In order to further illustrate the technical means adopted by the present application and the effects achieved, the technical solution of the present application is clearly and completely described below in combination with the accompanying drawings and preferred embodiments.
[0039] Figure 1 A flow chart of a method for software application self-adaptation to multiple cloud platform PaaS services according to one aspect of the present application is shown, wherein the method comprises:
[0040] S11 abstracts the PaaS service APIs of multiple cloud platforms and determines the cloud common API interface;
[0041] S12 integrates an adapter module in the software application to call the cloud universal API interface through the adapter module to interact with the cloud platform PaaS service.
[0042] In this embodiment, in the step S11, a set of API interfaces that are independent of cloud platforms are abstracted based on the PaaS service APIs of multiple cloud platforms, and are determined as cloud-universal API interfaces. This set of interfaces allows developers to write application code without paying attention to the differences between the underlying cloud platforms, thereby enabling a set of codes to be deployed and run on multiple cloud platforms. Specifically, first, based on the PaaS service API documents and functions provided by each cloud platform, their commonalities and differences are determined, and then the commonalities between the common PaaS service functions on different cloud platforms are determined. These common functions can be used as candidates for the cloud-universal API interface. Further, based on the common functions and requirements, a general API interface specification is designed, including defining request and response formats, parameters and valid values, authentication and authorization mechanisms, etc. Finally, according to the general API interface specification, adapters or encapsulation layers are developed for each cloud platform. These adapters or encapsulation layers are responsible for converting the cloud-universal API interface into API calls for specific cloud platforms and handling platform-specific differences.
[0043] Continuing with this embodiment, in step S12, the software application is an application that can be deployed to multiple cloud platforms. An adapter module is integrated in the software application. The module is responsible for mapping the cloud-general API interface to the specific PaaS service API of each cloud platform, thereby achieving adaptation between cloud platforms. Specifically, the software application can interact with the PaaS services of each cloud platform by calling the cloud-general API interface, thereby achieving automatic adaptation.
[0044] Preferably, the method further comprises:
[0045] Based on one or more preset performance indicators, monitor the running status of the software application interacting with the multiple cloud platform PaaS services. Here, the preset performance indicators include but are not limited to message sending status (success / failure) indicators, message consumption status (success / failure) indicators, message body large message quantity indicators, and message accumulation quantity indicators. Specifically, a monitoring module can be designed to monitor the running status of software applications on each cloud platform in real time, collect performance indicators, and implement troubleshooting.
[0046] Preferably, when the cloud platform includes an MQ (Message Queue) governance platform, the adapter module includes an MQ multi-cloud adapter component, and the calling of the cloud universal API interface by the adapter module to interact with the cloud platform PaaS service includes:
[0047] The MQ governance platform issues producer and consumer configurations to software applications;
[0048] The MQ multi-cloud adapter component initializes the cloud platform PAAS component according to the configuration issued;
[0049] When a software application sends a message, it calls the cloud general API interface to send the message;
[0050] When a software application consumes messages, the MQ multi-cloud adapter component processes them based on the queue name and TAG.
[0051] Preferably, when the cloud platform includes a multi-cloud file storage platform, the adapter module includes a multi-cloud file storage adapter component, and the calling of the cloud universal API interface by the adapter module to interact with the cloud platform PaaS service includes:
[0052] Software application access to multi-cloud file storage adapter components;
[0053] The multi-cloud file storage platform sends file storage configurations to software applications;
[0054] The multi-cloud file storage adapter component initializes the multi-cloud file storage platform PAAS component according to the configuration issued;
[0055] When a software application operates file storage, it calls the cloud general API interface to operate file storage.
[0056] Compared with the prior art, the present application abstracts the PaaS service APIs of multiple cloud platforms, determines the cloud-wide API interface, and then integrates an adapter module in the software application to call the cloud-wide API interface through the adapter module to interact with the PaaS service of the cloud platform, thereby realizing the rapid deployment of software applications on multiple cloud platforms, avoiding a large amount of repetitive work caused by separate deployment on each platform, improving deployment efficiency, and being easy to manage with high data security.
[0057] The present invention is applicable to the following application scenarios including but not limited to the following (the business systems mentioned below include software applications):
[0058] 1) Multi-cloud environment deployment: For business systems that need to be deployed and run on multiple cloud platforms, the present invention provides a method for automatically adapting to PaaS services of different cloud platforms, reducing the complexity of deployment and operation and maintenance.
[0059] 2) Hybrid cloud deployment: For business systems that need to be deployed in a hybrid environment of private cloud and public cloud, the present invention provides a unified API interface to simplify the migration and management of business systems in different cloud environments.
[0060] 3) Business system migration: For business systems that need to be migrated from one cloud platform to another, the present invention provides automatic adaptation capabilities, making the migration of business systems between different cloud platforms simpler and more efficient.
[0061] 4) Cross-cloud backup and disaster recovery: The present invention is applicable to scenarios where data backup, disaster recovery and recovery need to be implemented between multiple cloud platforms. Through a unified API interface, the efficiency of data synchronization and recovery is improved.
[0062] 5) Cloud platform resource optimization: For business systems that need to dynamically adjust resource allocation between multiple cloud platforms, the present invention provides unified resource management and monitoring capabilities, which helps to achieve more efficient resource utilization and cost control.
[0063] The method of the present invention realizes automatic adaptation of software applications to multiple cloud platform PaaS services, greatly reduces the complexity of deploying and running business systems on different cloud platforms, improves development and operation efficiency, simplifies code management, and enhances resource optimization and management capabilities within the entire enterprise.
[0064] Figure 2 A schematic diagram of a system for software application self-adaptation to multiple cloud platform PaaS services according to another aspect of the present application is shown, wherein the system 1 includes:
[0065] Abstraction module 11, used to abstract PaaS service APIs of multiple cloud platforms and determine the cloud common API interface;
[0066] The adaptation module 12 is integrated in the software application and is used to call the cloud universal API interface to interact with the cloud platform PaaS service.
[0067] Preferably, the system 1 further comprises:
[0068] The monitoring module is used to monitor the operating status of the software application interacting with the multiple cloud platform PaaS services based on one or more preset performance indicators.
[0069] Preferably, the system 1 further comprises:
[0070] The configuration management module is used to manage the relevant configuration information of each cloud platform. By providing a unified configuration management module, the deployment and management of various business systems on different cloud platforms are simplified.
[0071] In addition, an embodiment of the present application also provides a computer-readable medium on which computer-readable instructions are stored, and the computer-readable instructions can be executed by a processor to implement the aforementioned method.
[0072] The embodiment of the present application also provides a device for software application self-adaptation to multiple cloud platform PaaS services, wherein the device includes:
[0073] one or more processors; and
[0074] A memory storing computer readable instructions which, when executed, cause the processor to perform the operations of the aforementioned method.
[0075] For example, when the computer-readable instructions are executed, the one or more processors: abstract the PaaS service APIs of multiple cloud platforms and determine a cloud-wide API interface; integrate an adapter module in a software application to call the cloud-wide API interface through the adapter module to interact with the cloud platform PaaS service.
[0076] It is obvious to those skilled in the art that the present invention is not limited to the details of the exemplary embodiments described above, and that the present invention can be implemented in other specific forms without departing from the spirit or essential features of the present invention. Therefore, from any point of view, the embodiments should be regarded as exemplary and non-restrictive, and the scope of the present invention is defined by the appended claims rather than the above description, and it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims are included in the present invention. Any figure mark in the claims should not be regarded as limiting the claims involved. In addition, it is obvious that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices stated in the device claim can also be implemented by one unit or device through software or hardware. The words first, second, etc. are used to indicate names, and do not indicate any particular order.
Claims
1. A method for software application self-adaptation to multiple cloud platform PaaS services, wherein: The method includes: Abstract the PaaS service APIs of multiple cloud platforms and determine the cloud common API interface; An adapter module is integrated into the software application to call the cloud universal API interface through the adapter module to interact with the cloud platform PaaS service.
2. The method according to claim 1, wherein: The method further comprises: Based on one or more preset performance indicators, monitor the operating status of the software application interacting with the multiple cloud platform PaaS services.
3. The method according to claim 1 or 2, wherein: When the cloud platform includes an MQ governance platform, the adapter module includes an MQ multi-cloud adapter component, and the calling of the cloud universal API interface by the adapter module to interact with the cloud platform PaaS service includes: The MQ governance platform issues producer and consumer configurations to software applications; The MQ multi-cloud adapter component initializes the cloud platform PAAS component according to the configuration issued; When a software application sends a message, it calls the cloud general API interface to send the message; When a software application consumes messages, the MQ multi-cloud adapter component processes them based on the queue name and TAG.
4. The method according to claim 1 or 2, wherein: When the cloud platform includes a multi-cloud file storage platform, the adapter module includes a multi-cloud file storage adapter component, and the calling of the cloud universal API interface by the adapter module to interact with the cloud platform PaaS service includes: Software application access to multi-cloud file storage adapter components; The multi-cloud file storage platform sends file storage configurations to software applications; The multi-cloud file storage adapter component initializes the multi-cloud file storage platform PAAS component according to the configuration issued; When the software application operates the file storage, it calls the cloud general API interface to operate the file storage.
5. A system for software application self-adaptation to multiple cloud platform PaaS services, wherein: The system includes: Abstraction module, used to abstract PaaS service APIs of multiple cloud platforms and determine the cloud common API interface; The adapter module is integrated in the software application and is used to call the cloud universal API interface to interact with the cloud platform PaaS service.
6. The system according to claim 5, wherein: The system further comprises: The monitoring module is used to monitor the operating status of the software application interacting with the multiple cloud platform PaaS services based on one or more preset performance indicators.
7. The system according to claim 5, wherein: The system further comprises: The configuration management module is used to manage the relevant configuration information of each cloud platform.
8. A computer-readable medium having computer-readable instructions stored thereon, wherein the computer-readable instructions can be executed by a processor to implement the method according to any one of claims 1 to 4.
9. A device for software application self-adaptation to multiple cloud platform PaaS services, wherein: The equipment includes: one or more processors; and A memory storing computer readable instructions which, when executed, cause the processor to perform the operations of the method as claimed in any one of claims 1 to 4.