Patent attributes
A method and system for identifying and extracting independent services from a computer program are configured. The method comprises retrieving code and runtime data of the computer program, upon reception of a request to extract at least one service; performing a dynamic analysis on the retrieved code to determine code resources of the computer program; identifying, based on the code resources and runtime data, boundaries of services included in the computer program and are independent of other services; and deriving context and compile-time dependencies of the computer program using static analysis; and generating based on the context, compile-time dependencies, and code resources a service specification file for each independent service of the services included in the computer program, wherein an independent service includes all resources require for its execution independently of the computer program.