Lift And Shift Of Monolith
History
Problems addressed
- Manual modification of Monolith App code is time consuming.
- Executing modified code of Monolith App involves more than trivial efforts.
- Realization of benefits of Hybrid Architecture is realized only after substantial effort and time is invested over the transition of the Monolith Application.
- Inter-Service communication and Monolith communication channels can add complexity to the Architecture.
- We need to save our Architecture from implementing Anti-patterns.
Monolith Application is primarily complex with respect to Architecture for:
- Monolith Application has huge code base.
- Individual Classes( DAO, VO, Service, etc) are tightly coupled
- The VM for their execution is generally shared.
- Analysis & Mapping of dependencies takes huge efforts.
- Vertical Slicing becomes very complex and iterative due to coupling.
Unique Approach to Transformation
Monolith Application is primarily complex with respect to Architecture for:
- Monolith Application has huge code base.
- Individual Classes( DAO, VO, Service, etc) are tightly coupled
- The VM for their execution is generally shared.
- Analysis & Mapping of dependencies takes huge efforts.
- Vertical Slicing becomes very complex and iterative due to coupling.
How we solve the Problems
We identified best practices and other solutions and came up with a Strategy to minimize the risk and quickly realize Hybrid Architecture.
- Take Bottom-To-Top Approach
- No Change in Efferent Coupling of the Class
- Add Webclient to Dependee Class
- Expose Dependee Class over REST
- Use Stripped Monolith Application with MVC Wrapper Application
Birth of "Lift And Shift of Monolith" Group of Architecture Patterns
- Wrapper Controller: Responsible to expose Monolith over REST API.
- Monolith Class Bridge: Facilitates Communication between Wrapper Controller and the Monolith Class.
- Monolith Controller Client: Responsible for maintaining Efferent Coupling of other classes of the Monolith and making REST Call to Wrapper Controller.
Initial Architecture
Fig 1: We have Class A, B &C within our Monolith Application. For Vertical slicing, if we process Class B, keeping its structure intact, Monolith Application can still function with modified class.
Target Architecture with applied Patterns
Fig 2: We have Class A, B &C within our Hybrid Application. Vertical slicing of Class B. Wrapper Controller, Monolith Class Bridge & Monolith Controller Client are introduced to the architecture.
Lift And Shift of Monolith" Group of Architecture Patterns in Action
This Tool helps you to transform your Java Monolith Class into Microservice. This tool is also available as an service ( SAAS ). Refer http://www.codageeks.com for more details.
What is an Architectural Pattern?
According to Wikipedia,
An architectural pattern is a general, reusable solution to a commonly occurring problem in software architecture within a given context. Architectural patterns are similar to software design pattern but have a broader scope.
At Miracle Labs, we constantly innovate around real time problems and try to find solutions. While we were attempting early Digital Transformation Projects, we solved complex problems.