How to choose the next safe step in application modernization
GitHub outlines a method to safely modernize legacy applications by collecting evidence, testing feasibility, and making incremental changes while preserving critical behavior.
Modernizing legacy applications often begins with selecting a replacement framework, but GitHub advises starting with an assessment of what still functions. The process involves gathering evidence to create a regression net that validates existing behavior and identifies modernization needs. This method was tested on four public applications, ranging from a small Node.js game to a large Java ERP system, demonstrating a repeatable approach to evaluating and modernizing components. The goal is to apply this process to individual applications while retaining architectural oversight with system owners.
GitHub emphasizes the importance of accurately documenting application details, noting that labels like 'Java microservices' or 'legacy monolith' provide insufficient insight. The company recommends labeling components as documented, inferred, or unverified to record uncertainties and contradictions, such as conflicting Java versions or undetermined CI checks. This inventory serves as a concrete reference for discussions with application owners before proposing changes, ensuring decisions are based on verified information rather than assumptions.
Once the application is understood, GitHub advises making modernization decisions on a per-component basis, prioritizing removal of unused capabilities only after verification with owners. Disruptive changes should be justified by specific evidence, such as known vulnerabilities, runtime failures, or unmet reliability targets. The next step is a time-boxed feasibility check to determine if the component can run well enough to produce evidence, even with an imperfect legacy pipeline. This approach guides whether to capture behavior for upgrades or build a modern slice first.
GitHub describes using safety levels to describe regression protection, with APIs, database effects, and business workflows serving as durable comparison points. The company illustrates this with the PiggyMetrics application, which initially appeared unworkable due to Java 8 and Spring dependencies but passed a feasibility check after resolving a test dependency issue. The result narrowed the next steps to replacing the test dependency and rerunning tests, avoiding a costly redesign. The process retained the application's microservice structure while upgrading components and removing outdated modules.