Automating the Adoption of Cloud Services
A machine learning-driven method automates the identification and replacement of application code modules with cloud services, addressing inefficiencies in cloud adoption by enhancing flexibility and reducing costs for organizations.
Patent Information
- Application Number
- JP2022570094
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2020-06-11
- Filing Date
- 2021-05-07
- Publication Date
- 2024-09-11
- Estimated Expiration
- 2041-05-07
AI Technical Summary
Organizations face challenges in migrating applications to cloud services without leveraging their underlying flexibility and benefits due to lack of knowledge, skills, and time constraints, leading to inefficient use of cloud investments.
A machine learning-based approach that applies natural language processing and decision tree models to identify and replace specific application code modules with cloud services, facilitating automated adoption and minimizing manual refactoring efforts.
Enables organizations to efficiently adopt cloud services that add business value, reduce costs, and realize return on investment by identifying 'quick wins' and incremental deployment strategies.
Smart Images

Figure 0007549431000001 
Figure 0007549431000003 
Figure 0007549431000002
Abstract
Description
[Technical field]
[0001] The present invention relates to cloud and system infrastructure management, and more particularly to identifying portions of code that can be replaced with cloud services and recommending minimal code refactoring to incorporate cloud services. [Background technology]
[0002] Organizations are increasingly adopting hybrid cloud services to modernize their applications and reduce the use of traditional data center operations. By adopting cloud-based services, organizations can (i) reduce their maintenance burden, (ii) access a large amount of resources that are virtually unlimited, (iii) use features that are continuously improved by the service provider, and (iv) adopt a pay-as-you-go model for service consumption. Application developers use a known manual technique called refactoring to adopt cloud services. Refactoring involves changing application code internally without changing the application's behavior externally. Summary of the Invention
[0003] In one embodiment, the present invention provides a computer-implemented method for automating cloud service adoption. The method includes developing, by one or more processors, a machine learning model for learning application source code accessed from a source code repository. The method further includes training, by the one or more processors, the machine learning model by constructing training data including the application source code and technology labels. The method further includes extracting, by the one or more processors, services from the application source code based on the training data, and deriving, by the one or more processors, a context for the application source code. The extracting and deriving are performed by applying the machine learning model to the application source code. The method further includes determining, by the one or more processors, features of the extracted services using a natural language processing module and based on the context of the application source code. The method further includes determining, by the one or more processors, a mapping of the extracted services to respective cloud services using a decision tree model and based on the features of the extracted services, such that features of the one or more cloud services mapped by the mapping to a given extracted service match features of the given extracted service. The method further includes identifying portions of the application source code that are recommended to be replaced by the one or more processors with the respective cloud services based on the mapping.
[0004] In another embodiment, the present invention provides a computer program product for automating cloud service adoption. The computer program product includes one or more computer readable storage media. Computer readable program code is collectively stored on the one or more computer readable storage media. The computer readable program code, when executed by a central processing unit (CPU) of a computer system, causes the computer system to perform a method similar to the method for automating cloud service adoption discussed above.
[0005] In another embodiment, the present invention provides a computer system including a central processing unit (CPU), a memory coupled to the CPU, and one or more computer readable storage media coupled to the CPU, the one or more computer readable storage media collectively including instructions executable by the CPU via the memory to implement a method for automating cloud service adoption similar to the method for automating cloud service adoption discussed above. [Brief description of the drawings]
[0006] [Figure 1] FIG. 1 is a block diagram of a system for automating the adoption of cloud services, according to an embodiment of the present invention. [Diagram 2] 2 is a flowchart of a process for automating adoption of cloud services according to an embodiment of the present invention, the process being implemented in the system of FIG. 1 . [Figure 3A] FIG. 3 illustrates an example of an application code scan used in the process of FIG. 2 in accordance with an embodiment of the present invention. [Figure 3B] FIG. 3 illustrates an example of an application code scan used in the process of FIG. 2 in accordance with an embodiment of the present invention. [Figure 4] 3 is a block diagram of a computer included in the system of FIG. 1 and implementing the process of FIG. 2 in accordance with an embodiment of the present invention. [Diagram 5] FIG. 1 illustrates a cloud computing environment according to an embodiment of the present invention. [Figure 6] FIG. 2 illustrates abstraction model layers according to an embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0007] overview Most applications that are migrated to cloud services are migrated as is, without taking advantage of the underlying flexibility and benefits that cloud services offer. To utilize cloud services in a model based on Software as a Service (SaaS) or Platform as a Service (PaaS), parts of the application must be re-architected so that they can be hosted on the cloud. It is difficult for application developers to prioritize the re-architecting efforts, as they are busy developing new requirements and maintaining and supporting their applications. Large organizations also migrate applications as is to the cloud due to (i) lack of application knowledge and lack of skills to re-architect applications, and (ii) the need to meet deadlines related to contracts or data center exits. Thus, organizations are unable to realize the return on investment (ROI) on their cloud investments.
[0008] Traditional refactoring to adopt cloud services is time-consuming, requires significant effort, and is done manually by a team of application developers to run a program at an enterprise level that may include hundreds of applications. Each application must be manually refactored, which incurs huge effort and cost. Refactoring an entire application to a cloud-native architecture has its own drawbacks, in that parts of the services are used to keep the application fully cloud-native while adding little or no business value.
[0009] Embodiments of the present invention address the inherent challenges of traditional cloud adoption approach by using only those cloud services that add significant business value while leaving other services configured in a hybrid setup.Embodiments of the present invention automate the adoption of cloud services by applying natural language processing to study source code, derive context for the source code, and apply decision tree machine learning models, thereby identifying portions of code and / or modules within an application that can be replaced with cloud services.
[0010] Embodiments of the present invention provide an automated approach to facilitate cloud service adoption by an organization by identifying cloud services that the organization can use. Embodiments of the present invention provide a scalable approach to application code learning for all applications in a portfolio in all source code repositories present in the organization, which enables modernization with less effort and cost compared to existing approaches that examine applications individually.
[0011] Embodiments of the present invention generate a service catalog of a list of pieces of code and / or modules within an application that can be replaced with cloud services, thereby enabling the reuse of services and enabling rationalization of applications by ensuring that there is no redundant code or services.
[0012] An embodiment of the present invention proposes code changes for each recommended cloud service. An embodiment of the present invention focuses on “quick wins” to identify the components of systems of engagement and systems of insight and identify minimal changes for rapid adoption of cloud services for customers. Systems of engagement include, for example, interaction logic, personalized customer context, advanced user experience, advanced collaboration, and business ecosystem support. Systems of insight include, for example, business intelligence, intelligent systems, advanced analytics, engagement data, operational data, enterprise content management data, information data, and big data.
[0013] Embodiments of the present invention help organizations adopt cloud services incrementally, as opposed to a big bang approach, thereby enabling the organization to reduce costs and helping the organization realize ROI on their cloud investments.
[0014] Embodiments of the present invention enable organizations to move to a composable architecture: for new application development, application developers can compose applications by leveraging services and / or modules already used across many applications and focus on new business logic.
[0015] An embodiment of the present invention integrates with a cloud brokerage tool to determine and display the financial benefits of adopting cloud services.
[0016] A system for automating the adoption of cloud services 1 is a block diagram of a system 100 for automating cloud service adoption in accordance with an embodiment of the present invention. The system 100 includes a code scanning and analysis module 106 and a machine learning system 108, which includes a natural language processing module 110 and a decision tree module 112. The cloud service adoption system 104 automates the adoption of cloud services.
[0017] The cloud services adoption system 104 receives source code 114 of a software application. The source code 114 is also referred to herein as application source code. The natural language processing module 110 studies the source code 114 and derives a context for the source code 114. The code scanning and analysis module 106 scans and analyzes the source code 114 to analyze the configuration of the application.
[0018] The cloud services adoption system 104 identifies and groups similar services used across multiple applications and generates an extracted services catalog 116 (i.e., a catalog of services extracted from the source code of multiple applications), thereby enabling code reuse across multiple applications, which promotes composable architectures. The extracted services catalog 116 allows application owners the flexibility to reuse code in multiple existing or newly developed applications. The extracted services catalog 116 promotes application rationalization at the code level, eliminating redundant code.
[0019] The machine learning system 108 identifies and recommends target cloud services 118 that can replace existing modules and services contained in the application's source code, including source code 114. The decision tree module 112 identifies portions of the source code 114 and other source code (not shown) that can be replaced with the target cloud services 118. The decision tree module 112 applies a decision model (i.e., a polynomial model) to map services extracted from the source code 114 to the target cloud services 118. The decision tree module 112 identifies services that can be replaced with the target cloud services 118. In one embodiment, the target cloud services 118 include services offered by a public cloud, services offered by an off-premises private cloud, services offered by a software cloud configuration (e.g., IBM® Private Cloud), or serverless computing services (e.g., IBM® Function as a Service (FaaS)), or a combination thereof. IBM is a registered trademark of International Business Machines Corporation, Armonk, N.Y. In one embodiment, application of the decision tree model is based on an organization's hybrid cloud configuration (i.e., the hybrid cloud configuration in which the organization subscribes).
[0020] The code scanning and analysis module 106 determines and recommends changes to portions of code identified by the decision tree module 112 as being replaceable with cloud services in the target cloud service 118. Implementing the recommended changes to the portions of code results in adoption of the recommended cloud service. The code scanning and analysis module 106 determines and recommends the minimal amount of code refactoring to incorporate the cloud service (i.e., recommending refactoring a portion of the source code 114 rather than the entirety of the source code 114).
[0021] The cloud service adoption system 104 integrates with a cloud brokerage tool (not shown) to determine and display the financial benefit of adopting cloud services.
[0022] The functions of the components illustrated in FIG. 1 are explained in more detail in the discussion of FIGS. 2, 3A-3B, and 4 presented below.
[0023] A process for automating cloud services adoption Figure 2 is a flow chart of a process for automating cloud service adoption according to an embodiment of the present invention, the process being implemented in the system of Figure 1. The process of Figure 2 begins at step 200. In step 202, the cloud service adoption system 104 (see Figure 1) develops a machine learning model in the machine learning system 108 (see Figure 1) to learn the source code 114 (see Figure 1) of the application and to learn the configuration of the application. The cloud service adoption system 104 (see Figure 1) accesses the source code 114 (see Figure 1) from a source code repository.
[0024] In one embodiment, developing the machine learning model in step 202 includes developing a natural language processing model by using a multi-label text classification technique. In one embodiment, the cloud service adoption system 104 (see FIG. 1 ) in step 202 treats the learning of the source code 114 (see FIG. 1 ) as a clustering problem in statistics (e.g., using K-means clustering on the source code repository, where the optimal value of K is finalized using the elbow method). In another embodiment, the cloud service adoption system 104 (see FIG. 1 ) uses an n-gram model and a perplexity approach to learn the source code 114 (see FIG. 1 ).
[0025] In another embodiment, the cloud service recruitment system 104 (see FIG. 1) in step 202 uses the term frequency (tf) and inverse document frequency (idf) of the text as input parameters of the deep learning model (i.e., multiple hidden unit neural network). The cloud service recruitment system 104 (see FIG. 1) uses a customized model of tf-idf, which uses word embeddings as input feature matrix of the sequence prediction model that captures the whole pattern of the source code 114 (see FIG. 1) instead of the frequency of some key words. The cloud service recruitment system 104 (see FIG. 1) adjusts the parameters of the model using cross-validation for better model accuracy.
[0026] In step 204, the cloud service adoption system 104 (see FIG. 1) trains a machine learning model by constructing training data including source code 114 (see FIG. 1) and technology labels. The cloud service adoption system 104 (see FIG. 1) creates a code pattern configuration file that includes specific key words based on the available cloud services in the target cloud services 118 (see FIG. 1). The machine learning system 108 (see FIG. 1) looks for the key words and understands the code snippets included in the source code 114 (see FIG. 1).
[0027] In one embodiment, step 204 includes the cloud service hiring system 104 (see FIG. 1) generating a code pattern configuration file that includes key words that identify available cloud services included in the target cloud services 118 (see FIG. 1). The cloud service hiring system 104 (see FIG. 1) identifies the key words included in the portion of the source code 114 (see FIG. 1).
[0028] In step 206, based on the training data and through application of the machine learning model to the source code 114 (see FIG. 1), the cloud service hiring system 104 (see FIG. 1) scans the source code 114 (see FIG. 1), extracts services from the source code 114 (see FIG. 1), and derives a context for the source code 114 (see FIG. 1) (i.e., contextualizes the source code). In one embodiment, the cloud service hiring system 104 (see FIG. 1) performs step 206 using natural language processing performed by the natural language processing module 110 (see FIG. 1).
[0029] In one embodiment, the machine learning system 108 (see FIG. 1 ) applies machine learning models developed in the source code repository and application configurations to extract services and derive source code context for source code files in the source code repository.
[0030] In step 208, using the natural language processing module 110 and based on the context derived in step 206, the cloud service adoption system 104 (see FIG. 1 ) determines the functionality of the service extracted in step 206 (also referred to herein as the “extracted service”). For example, the cloud service adoption system 104 (see FIG. 1 ) determines that the functionality of the extracted service is an email delivery functionality. The fact that the extracted service has functionality matching the functionality of the cloud service included in the target cloud service 118 means that the extracted service can be replaced with the cloud service.
[0031] In step 210, using a decision tree model (e.g., a polynomial model) included in the decision tree module 112 (see FIG. 1 ) and based on the features of the extracted services determined in step 208, the cloud service adoption system 104 (see FIG. 1 ) determines a mapping of the extracted services to respective cloud services included in the target cloud services 118 (see FIG. 1 ). The mapping is determined in step 210 such that the features of one or more cloud services mapped to a given extracted service match the features of the given extracted service. For example, if the given extracted service is an email delivery service, the mapping determined in step 210 maps the extracted email delivery service to a first email delivery cloud service provided by cloud service provider 1 and to a second email delivery cloud service provided by cloud service provider 2.
[0032] In one embodiment, step 210 includes the cloud service adoption system 104 (see FIG. 1 ) mapping a first one or more extracted services included in the services extracted in step 206 to a respective one or more public cloud services and mapping a second one or more extracted services included in the services extracted in step 206 to a respective one or more private cloud services.
[0033] In step 212, based on the mapping determined in step 210, the cloud service adoption system 104 (see FIG. 1 ) identifies portions of the source code 114 (see FIG. 1 ) that are recommended to be replaced with the respective cloud service. In one embodiment, step 212 includes the cloud service adoption system 104 (see FIG. 1 ) generating a recommendation for an optimal (i.e., minimal) amount of refactoring of portions of code included in the source code 114 (see FIG. 1 ) to incorporate the cloud service included in the target cloud service 118.
[0034] In one embodiment, step 212 includes the cloud service adoption system 104 (see FIG. 1 ) determining and displaying respective costs of adopting the recommended cloud services to replace the given extracted service, where the costs are used to differentiate the recommended cloud services.
[0035] In one embodiment, step 212 includes cloud service adoption system 104 (see FIG. 1) recommending, based on the identified portion of source code 114 (see FIG. 1), a number of target cloud services included in target cloud services 118 (see FIG. 1) to replace the module in source code 114 (see FIG. 1).
[0036] In step 214, the cloud service adoption system 104 (see FIG. 1) determines the modifications to the portions of code required to adopt the respective cloud service, where the portions of code were identified in step 212.
[0037] In step 216, the cloud services adoption system 104 (see FIG. 1 ) refactors the application by using and implementing the modifications determined in step 214. In one embodiment, step 216 is performed in response to the cloud services adoption system 104 (see FIG. 1 ) receiving a user selection of a cloud service from the plurality of cloud services recommended in step 212 to replace the extracted service.
[0038] After step 216, the process of FIG.
[0039] In one embodiment, the cloud service adoption system 104 (see FIG. 1) determines the financial benefits of adopting cloud services included in the target cloud service 118 (see FIG. 1) by integrating with a cloud brokerage tool. The cloud service adoption system 104 (see FIG. 1) displays cloud services that can replace portions of the source code 114 (see FIG. 1) and further displays the financial benefits of adopting the cloud services. The display of the cloud services and financial benefits is executed on a display device for viewing by the customer.
[0040] In one embodiment, the cloud services adoption system 104 (see FIG. 1) repeats steps 202 through 212 for each application in the organization's application portfolio. EXAMPLES
[0041] 3A and 3B are diagrams illustrating an example of application code scanning used in the process of FIG. 2, according to an embodiment of the present invention. In this example, the cloud service adoption system 104 (see FIG. 1) in step 202 (see FIG. 2) studies the source code 114 (see FIG. 1) and in step 210 (see FIG. 2) identifies a code excerpt 302 in FIG. 3A that uses a custom-built Simple Mail Transfer Protocol (SMTP) server (i.e., an email server) hosted in the application's environment owned by the application owner. The cloud service adoption system 104 (see FIG. 1) (see FIG. 2) generates and displays recommendations to the application owner regarding third-party cloud services. The cloud service adoption system 104 (see FIG. 1) in step 214 (see FIG. 2) generates and displays a recommended code fix 304 in FIG. 3B, where the recommended code fix is a fix for the code excerpt 302 in FIG. 3A. In code modification 304, "defg" is an example of an identifier for an email delivery service provided by a cloud service. The application owner refactors the application's code, which includes changing code excerpt 302 (see FIG. 3A) to code modification 304 (see FIG. 3B). By using the refactored code, the application owner replaces an expensive dedicated smtp server with a cloud service, which results in an estimated 60% cost savings.
[0042] Computer Systems 4 is a block diagram of a computer included in the system of FIG. 1 and implementing the process of FIG. 2, according to an embodiment of the present invention. The computer 102 is a computer system that typically includes a central processing unit (CPU) 402, a memory 404, an input / output (I / O) interface 406, and a bus 408. Additionally, the computer 102 is coupled to an I / O device 410 and a computer data storage unit 412. The CPU 402 performs computation and control functions of the computer 102, including executing instructions included in program code 414 for performing a method for the cloud service adoption system 104 (see FIG. 1) to automate the adoption of cloud services, the instructions being executed by the CPU 402 via the memory 404. The CPU 402 may include a single processing unit or may be distributed across one or more processing units at one or more locations (e.g., on a client and a server).
[0043] Memory 404 includes known computer-readable storage media, as described below. In one embodiment, cache memory elements of memory 404 provide temporary storage of at least some program code (e.g., program code 414) to reduce the number of times the code must be retrieved from mass storage while instructions of the program code are being executed. Moreover, like CPU 402, memory 404 may reside in a single physical location that includes one or more types of data storage, or may be distributed across multiple physical systems in various forms. Additionally, memory 404 may include data distributed across, for example, a local area network (LAN) or a wide area network (WAN).
[0044] I / O interface 406 includes any system for exchanging information with external sources. I / O devices 410 include any known type of external device including a display, keyboard, etc. Bus 408 provides a communication link between each of the components of computer 102 and may include any type of transmission link including electrical, optical, wireless, etc.
[0045] The I / O interface 406 also enables the computer 102 to store and retrieve information (e.g., data or program instructions such as program code 414) on and from the computer data storage unit 412 or another computer data storage unit (not shown). The computer data storage unit 412 includes known computer readable storage media, as described below. In one embodiment, the computer data storage unit 412 is a non-volatile data storage device, such as a magnetic disk drive (i.e., a hard disk drive) or an optical disk drive (e.g., a CD-ROM drive that receives CD-ROM disks). Alternatively, multiple computer data storage units may replace a single computer data storage unit 412, with multiple computer readable storage media included in each computer data storage unit.
[0046] The memory 404 and / or storage unit 412 may store computer program code 414 including instructions executed by CPU 402 via memory 404 to automate the adoption of cloud services. Alternatively, multiple computer data storage units including multiple computer readable storage media collectively store computer program code 414. Although FIG. 4 illustrates memory 404 as including program code, the present invention also contemplates embodiments in which memory 404 does not include all of code 414 simultaneously, but instead includes only a portion of code 414 at a time.
[0047] Additionally, memory 404 may include an operating system (not shown), and may also include other systems not shown in FIG.
[0048] As will be appreciated by one of ordinary skill in the art, in a first embodiment, the present invention may be a method, in a second embodiment, the present invention may be a system, and in a third embodiment, the present invention may be a computer program product.
[0049] Any of the components of an embodiment of the invention may be deployed, managed, serviced, etc., by a service provider offering to deploy or integrate a computing infrastructure with respect to automating the adoption of cloud services. Accordingly, one embodiment of the invention discloses a process for supporting a computer infrastructure, the process including providing at least one support service to at least one of integrate, host, maintain, and deploy computer readable code (e.g., program code 414) in a computer system (e.g., computer 102) including one or more processors (e.g., CPU 402), where the processor executes instructions included in the code, whereby the computer system automates the adoption of cloud services. Another embodiment discloses a process for supporting a computer infrastructure, the process including integrating computer readable program code in a computer system including a processor. The integrating step includes storing the program code in a computer readable storage device of the computer system by use of the processor. The program code, when executed by the processor, implements a method for automating the adoption of cloud services.
[0050] It is understood that the program code 414 for automating the adoption of cloud services can be deployed by manually loading directly into the client, server, and proxy computers (not shown) via loading one or more computer readable storage media (e.g., computer readable storage media included in computer data storage unit 412), but the program code 414 can also be automatically or semi-automatically deployed into computer 102 by sending the program code 414 to a central server or a group of central servers. The program code 414 is then downloaded to the client computer (e.g., computer 102) that will execute the program code 414. As an alternative, the program code 414 is sent directly to the client computer via email. The program code 414 is then detached to or loaded into the client computer's directory by a button on the email that executes a program that detaches the program code 414 into the directory. Another alternative is to send the program code 414 directly to a directory on the client computer's hard drive. If a proxy server is present, the process selects the proxy server code, determines on which computer the proxy server code should be located, sends the proxy server code, and then installs the proxy server code on the proxy computer. The program code 414 is sent to the proxy server and then stored on the proxy server.
[0051] Another embodiment of the present invention provides a method for performing process steps on a subscription, advertising, or fee basis, or a combination thereof. That is, a service provider may provide for creating, maintaining, supporting, etc., a process that automates the adoption of cloud services. In this case, the service provider may create, maintain, support, etc., a computer infrastructure that performs the process steps for one or more customers. In return, the service provider may receive payments from the customer under a subscription or fee agreement, or both, and / or the service provider may receive payments from the sale of advertising content to one or more third parties.
[0052] The present invention may be a system, method, or computer program product, or combination thereof, at any possible level of technical detail integration. The computer program product may include a computer readable storage medium (or media) (i.e., memory 404 and computer data storage unit 412) having computer readable program instructions 414 for causing a processor (e.g., CPU 402) to perform aspects of the present invention.
[0053] A computer readable storage medium may be a tangible device that can hold and store instructions (e.g., program code 414) for use by an instruction execution device (e.g., computer 102). A computer readable storage medium may be, for example, but not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. A non-exhaustive list of more specific examples of computer readable storage media includes the following: portable computer diskettes, hard disks, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), static random access memory (SRAM), portable compact disk read only memory (CD-ROM), digital versatile disk (DVD), memory sticks, floppy disks, mechanically encoded devices such as punch cards or ridge structures in grooves with instructions recorded thereon, and any suitable combination of the foregoing. As used herein, the one or more computer-readable storage media should not be construed as being ephemeral signals per se, such as electric waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission medium (e.g., light pulses passing through a fiber optic cable), or electrical signals transmitted through wires.
[0054] The computer readable program instructions (e.g., program code 414) described herein may be downloaded from a computer readable storage medium to a respective computing / processing device (e.g., computer 102) or to an external computer or storage device (e.g., computer data storage unit 412) via a network (not shown), such as the Internet, a local area network, a wide area network, or a wireless network, or a combination thereof. The network may include copper transmission cables, optical transmission fiber, wireless transmission, routers, firewalls, switches, gateway computers, and / or edge servers. A network adapter card (not shown) or network interface (not shown) of each computing / processing device receives the computer readable program instructions from the network and transfers the computer readable program instructions for storage in a computer readable storage medium within the respective computing / processing device.
[0055] The computer readable program instructions for carrying out the operations of the present invention (e.g., program code 414) can be either source code or object code written in any combination of one or more programming languages, including assembler instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state setting data, configuration data for an integrated circuit, or object-oriented programming languages such as Smalltalk®, C++, and the like, and procedural programming languages such as the “C” programming language or similar programming languages. The computer readable program instructions can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or wide area network (WAN), or the connection may be made to an external computer (e.g., through the Internet using an Internet Service Provider). In some embodiments, electronic circuitry including, for example, a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA) may execute computer readable program instructions by utilizing state information of the computer readable program instructions to personalize the electronic circuitry to perform aspects of the invention.
[0056] Aspects of the present invention are described herein with reference to flowchart illustrations (e.g., FIG. 2) and / or block diagrams (e.g., FIGS. 1 and 4) of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer readable program instructions (e.g., program code 414).
[0057] These computer readable program instructions may be provided to a processor (e.g., CPU 402) of a general purpose computer, special purpose computer, or other programmable data processing device (e.g., computer 102) to make a machine, such that the instructions, executed by the processor of the computer or other programmable data processing device, create means for performing the functions / operations specified in one or more blocks of the flowcharts and / or block diagrams. These computer readable program instructions may also be stored on a computer readable storage medium (e.g., a computer readable storage medium included in computer data storage unit 412) that can instruct a computer, programmable data processing device, or other device, or combination thereof, to function in a particular manner, such that the computer readable storage medium on which the instructions are stored constitutes an article of manufacture containing instructions implementing aspects of the functions / operations specified in one or more blocks of the flowcharts and / or block diagrams.
[0058] The computer readable program instructions (e.g., program code 414) may further be loaded into a computer, other programmable data processing apparatus, or other device such that the instructions, which execute on a computer (e.g., computer 102), other programmable apparatus, or other device, perform the functions / operations specified in one or more blocks of the flowcharts and / or block diagrams to cause the computer, other programmable apparatus, or other device to perform a series of operational steps to create a computer-implemented process.
[0059] The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in the flowcharts or block diagrams may represent a module, segment, or portion of instructions that includes one or more executable instructions for implementing a specified logical function. In some alternative implementations, the functions noted in the blocks may occur out of the order noted in the figures. For example, two blocks shown in succession may in fact be performed as one step that is executed simultaneously, substantially simultaneously, in a partially or completely overlapping manner, or may sometimes be executed in the reverse order depending on the functionality involved. It should also be noted that each block in the block diagrams and / or flowchart illustrations, and combinations of blocks in the block diagrams and / or flowchart illustrations, may be implemented by a dedicated hardware-based system that performs the specified functions or operations or executes a combination of dedicated hardware instructions and computer instructions.
[0060] While embodiments of the present invention have been described herein for purposes of illustration, many modifications and variations will be apparent to those skilled in the art. Consequently, it is intended that the appended claims cover all such modifications and variations that are within the scope of the invention.
[0061] Cloud Computing Environment Although this disclosure includes a detailed description of cloud computing, it should be understood that implementations of the teachings detailed herein are not limited to cloud computing environments. Rather, embodiments of the invention may be implemented in conjunction with any other type of computing environment now known or later developed.
[0062] Cloud computing is a model of service delivery for enabling convenient, on-demand network access to a shared pool of configurable computing resources (e.g., networks, network bandwidth, servers, processing, memory, storage, applications, virtual machines, and services) that can be rapidly provisioned and released with minimal administrative effort or interaction with a service provider. This cloud model may include at least five characteristics, at least three service models, and at least four deployment models.
[0063] Its features are as follows.
[0064] On-Demand Self-Service: Cloud consumers can unilaterally provision computing capacity, such as server time and network storage, automatically as needed and without the need for human interaction with the provider of the service.
[0065] Pervasive Network Access: Functionality is available across the network and accessed via standard mechanisms that facilitate use by heterogeneous thin- or thick-client platforms (e.g., cell phones, laptops, and PDAs).
[0066] Resource Pooling: A provider's computing resources are pooled to serve multiple consumers using a multi-tenant model, with different physical and virtual resources dynamically allocated and reallocated on demand. Consumers typically have no control or knowledge over the exact location of the resources provided, although there is a sense of location independence in that it may be possible to specify location at a higher level of abstraction (e.g., country, state, or data center).
[0067] Rapid Elasticity: Capabilities can be rapidly provisioned and rapidly scaled out, and rapidly released and rapidly scaled in, quickly, elastically, and in some cases automatically. To the consumer, the capabilities available for provisioning often appear unlimited and can be purchased in any quantity at any time.
[0068] Metered Services: Cloud systems automatically control and optimize resource usage by leveraging metering at an abstraction level appropriate to the type of service (e.g., storage, processing, bandwidth, and active user accounts). Resource usage can be monitored, controlled, and reported to provide transparency to both providers and consumers of the services utilized.
[0069] The service model is as follows:
[0070] Software as a Service (SaaS): The functionality offered to the consumer is the use of the provider's applications running on a cloud infrastructure. The applications are accessible from a variety of client devices through thin-client interfaces such as web browsers (e.g., web-based email). The consumer does not manage or control the underlying cloud infrastructure, including the network, servers, operating systems, storage, or even the individual application features, except for the possibility of limited user-specific application configuration settings.
[0071] Platform as a Service (PaaS): The functionality offered to the consumer is the deployment of consumer-created or acquired applications, created using programming languages and tools supported by the provider, onto a cloud infrastructure. The consumer does not manage or control the underlying cloud infrastructure, including networks, servers, operating systems, or storage, but does control the deployed applications and possibly the application hosting environment configuration.
[0072] Infrastructure as a Service (IaaS): The functionality provided to the consumer is to provision processing, storage, network, and other basic computing resources onto which the consumer can deploy and run any software, which may include operating systems and applications. The consumer does not manage or control the underlying cloud infrastructure, but does control the operating systems, storage, deployed applications, and possibly limited control over selected networking components (e.g., host firewalls).
[0073] The deployment model is as follows:
[0074] Private Cloud: The cloud infrastructure is operated solely for the organization. The cloud infrastructure may be managed by the organization or a third party and may reside on-premise or off-premise.
[0075] Community Cloud: The cloud infrastructure is shared by several organizations to support a specific community with shared concerns (e.g., mission, security requirements, policy, and compliance considerations). The cloud infrastructure may be managed by the organization or a third party and may reside on-premise or off-premise.
[0076] Public Cloud: The cloud infrastructure is made available to the general public or large industry organizations and is owned by an organization that sells cloud services.
[0077] Hybrid Cloud: A cloud infrastructure is a composite of two or more clouds (private, community, or public) that remain unique entities but are joined by standard or proprietary technologies that enable data and application portability (e.g., cloud bursting for load balancing between clouds).
[0078] Cloud computing environments are service-oriented with an emphasis on statelessness, low coupling, modularity, and semantic interoperability. At the heart of cloud computing is an infrastructure that includes a network of interconnected nodes.
[0079] Referring now to FIG. 5, an exemplary cloud computing environment 50 is shown. As shown, the cloud computing environment 50 includes one or more cloud computing nodes 10 with which local computing devices used by cloud consumers, such as a personal digital assistant (PDA) or cell phone 54A, a desktop computer 54B, a laptop computer 54C, or an automobile computer system 54N, or combinations thereof, can communicate. The nodes 10 can communicate with each other. The nodes 10 may be physically or virtually grouped in one or more networks, such as a private, community, public, or hybrid cloud, or combinations thereof, as previously described (not shown). This enables the cloud computing environment 50 to provide infrastructure, platform, and / or software as a service without the cloud consumer having to maintain resources on the local computing device. It should be understood that the types of computing devices 54A, 54B, 54C, and 54N illustrated in FIG. 5 are intended to be merely exemplary, and that the computing node 10 and cloud computing environment 50 can communicate with any type of computerized device via any type of network and / or network-addressable connections (e.g., using a web browser).
[0080] Referring now to Figure 6, a set of functional abstraction layers provided by cloud computing environment 50 (see Figure 5) is shown. It should be understood in advance that the components, layers, and functions shown in Figure 6 are intended to be merely illustrative, and that embodiments of the present invention are not limited thereto. As shown, the following layers and corresponding functions are provided:
[0081] Hardware and software layer 60 includes hardware and software components. Examples of hardware components include mainframes 61, RISC (reduced instruction set computer) architecture based servers 62, servers 63, blade servers 64, storage devices 65, and networks and networking components 66. In some embodiments, software components include network application server software 67 and database software 68.
[0082] The virtualization layer 70 provides an abstraction layer that can comprise the following examples of virtual entities: virtual servers 71, virtual storage 72, virtual networks including virtual private networks 73, virtual applications and operating systems 74, and virtual clients 75.
[0083] In one example, the management layer 80 may provide the functions described below. Resource provisioning 81 provides dynamic procurement of computing and other resources utilized to execute tasks within the cloud computing environment. Metering and pricing 82 provides cost tracking as resources are utilized within the cloud computing environment and bills or invoices for the consumption of these resources. In one example, these resources may include application software licenses. Security provides identity verification of cloud consumers and tasks, as well as protection of data and other resources. User portal 83 provides consumers and system administrators with access to the cloud computing environment. Service level management 84 provides cloud computing resource allocation and management so that required service levels are met. Service level agreement (SLA) planning and fulfillment 85 provides advance provisioning and procurement of cloud computing resources in anticipation of future demands by SLAs.
[0084] The workload tier 90 provides examples of functionality that can utilize a cloud computing environment. Examples of workloads and functionality that can be provided from this tier include mapping and navigation 91, software development and lifecycle management 92, virtual classroom instructional delivery 93, data analytics processing 94, transaction processing 95, and automated adoption of cloud services 96.
Claims
1. A method for automating cloud service adoption by a computer, comprising: developing a machine learning model to learn application source code accessed from a source code repository; training the machine learning model by constructing training data including the application source code and technology labels; extracting services from the application source code and deriving a context for the application source code based on the training data, wherein the extracting and deriving are performed by applying the machine learning model to the application source code; determining functionality of the extracted services using a natural language processing module and based on the context of the application source code; determining a mapping of the extracted services to respective cloud services using a decision tree model and based on the functionality of the extracted services, such that functionality of one or more cloud services mapped by said mapping to a given extracted service matches functionality of the given extracted service; identifying portions of the application source code that identify the extracted services based on the mapping, the portions of the application source code being recommended to be replaced with the respective cloud services; A method comprising:
2. 2. The method of claim 1 , wherein identifying the portions of the application source code that are recommended to be replaced by the respective cloud services comprises generating recommendations for optimal amounts of refactoring of portions of code included in the application source code to incorporate the respective cloud services.
3. 2. The method of claim 1, further comprising: recommending, by the one or more processors, a target cloud service for replacing an existing module in the application source code based on the identified portion of the application source code.
4. determining, by the one or more processors, modifications to the portion of the application source code required to employ the respective cloud service; refactoring, by said one or more processors, the application by using said modifications to said portion of said application source code; The method of claim 1 further comprising:
5. determining, by the one or more processors, a financial benefit of adopting the cloud service by integrating with a cloud intermediation tool; displaying, by the one or more processors, (i) the cloud services that can replace the portion of the application source code and (ii) the financial benefits of adopting the cloud services; Further comprising: The method of claim 1 , wherein the displaying comprises displaying on a display device for viewing by a customer.
6. 2. The method of claim 1 , wherein the determining the mapping of the extracted services to the respective cloud services comprises mapping a first one or more extracted services included in the extracted services to a respective one or more public cloud services and mapping a second one or more extracted services included in the extracted services to a respective one or more private cloud services.
7. The training, generating, by the one or more processors, a code pattern configuration file including key words identifying available cloud services; identifying, by the one or more processors, the key words contained in a portion of the application source code; The method of claim 1 , comprising:
8. The method of claim 1 , wherein the developing the machine learning model comprises developing a natural language processing model by using a multi-label text classification technique.
9. 2. The method of claim 1 , further comprising: iterating, by the one or more processors, for each application in an organization's application portfolio, the developing the machine learning model, the training the machine learning model, and the extracting the services from the application source code by applying the machine learning model to the application source code, and the deriving the context of the application source code, the determining the functionality of the extracted services, the determining the mapping, and the identifying the portions of the application source code that are recommended to be replaced.
10. providing at least one support service for at least one action selected from the group consisting of creating, integrating, hosting, maintaining, and deploying computer-readable program code on a computer, the program code being executed by a processor of the computer to perform the following: developing the machine learning model; training the machine learning model; extracting the services from the application source code by applying the machine learning model to the application source code; deriving the context of the application source code; determining the functionality of the extracted services; determining the mapping; and identifying the portions of the application source code that are recommended to be replaced. The method of claim 1 further comprising:
11. A computer program for automating the adoption of cloud services, the computer program causing one or more processors of a computer to perform the method according to any of claims 1 to 9.
12. A computer system for automating the adoption of cloud services. A central processing unit (CPU); a memory coupled to the CPU; one or more computer-readable storage media coupled to the CPU, the one or more computer-readable storage media containing instructions that are executed by the CPU via the memory to implement a method according to any one of claims 1 to 9; 1. A computer system comprising:
Citation Information
Patent Citations
Method, system and program product for sharing source code over a network
US20040267756A1
Intelligent cloud engineering platform
US20190026085A1
Variable analysis using code context
US20190243622A1
