Architecture, Perf. & Sec.Conference50min
Enforcing Architecture in Legacy Systems
This session shows how to restore alignment between code and intended architecture in legacy systems using Java and ArchUnit. Through live coding, it demonstrates defining architectural rules as executable tests to incrementally guide refactoring, prevent new violations, and help teams evolve their systems safely toward a target architecture.
talk.summaryAiDisclaimer
Roland WeislederarcNdev GmbH
In many legacy systems, the code does not reflect the intended architecture, either because it gradually drifted away over time or because a clear target architecture only emerged after months or years of development. This slows down feature development, increases defect rates, adds cognitive load, and makes onboarding new team members more difficult. This talk demonstrates, through live coding with Java and ArchUnit, how to define architectural rules as executable tests and integrate them step by step into an existing codebase. With this approach, the team can move the system incrementally toward the target architecture while the tests ensure that no new architectural violations are introduced. After this session, participants will be able to define architectural rules and integrate them as tests into their own legacy codebases.
Roland Weisleder
Roland Weisleder is an expert in legacy Java systems. With his company arcNdev GmbH, he supports organizations both as a consultant and hands-on by reducing complexity, creating robust architectures, and deleting dead code. He shares his experience in workshops, articles, and talks across Europe.