Last week, I took the train from Seeon where my company is located to Hannover for an event modeling workshop.
Like every trip I take, I planned every single step. I know exactly which trains to take, where the connections happen, when I need to leave to have enough buffer in case something goes wrong. And I print it all out on one sheet of paper - intentionally going analog in case my phone dies or I lose signal.
Itâs my map. My kartograph of the journey.
Hereâs what hit me during that trip: Instead of planning the trip, most companies just stare at âtheirâ Hannover and start the journey with hope and good intentions.
They focus on Hannover - the bright, shiny new system - without understanding where theyâre actually starting from.
My company is near Munich. I canât just look at Hannover and start walking. I need to know how to get to Munich, how to get from Munich to Hannover, how to get from Hannover Hauptbahnhof to the hotel, how to get from the hotel to the workshop location.
Each leg matters. Miss one connection, and youâre stranded.
The Problem: Legacy Systems Are Historical Records, Not Documentation
Every legacy system is full of decisions that were made because someone had a problem in production. Because someone from business needed the system to do a certain thing in a certain way. Because there was a fire, and someone put it out with whatever tools they had.
Your legacy system isnât just code. Itâs a historical record of every compromise, every patch, every âweâll fix this properly laterâ that never got fixed properly.
And most modernization projects ignore this completely.
They start with a rough idea of what the system does. They focus on the destination - microservices, event-driven architecture, cloud-native infrastructure - without ever mapping where theyâre starting from.
Itâs doomed to fail.
Youâll end up exactly where you started in a few years, wasting massive amounts of money. Because all those missing requirements - all those hidden business rules buried in 3000+ commits - will end up as the same hacks and if/else statements that killed your current codebase.
Youâre not modernizing. Youâre just recreating the same mess in newer technology.
The Kartographing Approach: Three Phases of Zooming In
Last week in Hannover, we spent one hour on an existing system and used AI to build an event model from it.
We work in phases. Each phase zooms in deeper.
Phase 1: The Zoomed-Out Map (30-60 minutes)
First, we do a high-level analysis. We want to understand the contexts we have - the major domains and how they relate to each other.
This is the big picture. The 30,000-foot view.
AI can identify what happens from the code - it can see the pieces. But it canât properly identify the relationships between contexts, and it definitely canât figure out the timeline - what happens in which order.
So we bring in the human expert. We correct the high-level analysis. We sketch the proper sequencing. We give feedback to the AI.
After this phase, we have our first map: the contexts and their relationships to each other, with timing that actually makes sense.
Phase 2: Pick Your Chapter (30-60 minutes)
Now we zoom in. We pick one use case - one workflow - and go into more detail.
AI builds the timeline again, but this time itâs looking at API endpoints, persistence layers, and unit tests. Itâs building Given/When/Then scenarios based on actual code artifacts.
In Hannover, we went through the map the AI built. Most of it was correct. Again we would bring back the human into the loop - sketching missing details, correcting minor things, handing it back to the AI.
Phase 3: Go Deeper, Chapter by Chapter (Iterative)
Then we do another round of detailed analysis. Going deeper and deeper into each workflow.
A chapter is just a part of a process. We go chapter by chapter.
First, you get the contexts - for my famous e-commerce example like cart, checkout, acquisition. Then we pick âcartâ to zoom in. We identify chapters like stock check, product selection, price calculation.
Then we zoom into âproduct selection.â We identify product configuration, product upgrade, product details.
More and more, getting into the details. Like Russian dolls - each layer revealing more specific workflows within workflows.
The Given/When/Thens give us a clear picture of whatâs going on.
In Hannover, it took about half an hour to identify some critical business rules.
I did not have to read a single line of code.
You can go extremely fast with this. And the good thing - using event modeling, we can use the knowledge of business experts and engineers together. Itâs visual. Itâs collaborative. Itâs a universal language.
The System We Analyzed Had More Than 3000 Commits
Think about that for a second.
3000+ commits. This project started in 2019 - It was 6 years of accumulated decisions, patches, business logic changes.
Just checking out the codebase and trying to get a first impression would have taken longer than our entire kartographing session.
Traditional code archaeology - reading through thousands of lines, interviewing people who may or may not remember why something was built that way, digging through old documentation that may or may not exist - would take weeks. Maybe months.
And youâd still miss things.
The âMapâ you are building is typically scattered across dozens of places.. some is in Jira, some lost in Confluence⌠some is documented in README.md and a lot in the heads of different people.. in fact, you start your journey without a map.
The 10x ROI (Or More)
If you ask me, kartographing your legacy is about the best investment a company can make.
Every minute spent mapping the legacy will pay 10x the rent later. Probably much more.
Hereâs why: Youâre buying insurance against building the wrong thing.
When you skip the kartographing phase and start modernizing based on your ârough ideaâ of what the system does, you will discover missing requirements. Not in week one. Not in month one.
Youâll discover them in month six. Or month twelve. Deep into the modernization project, when fixing them costs 10x - or 100x - what it would have cost to find them up front.
Youâll discover a business rule that someone added five years ago because a major customer needed it. Nobody documented it. Itâs buried in an if/else block somewhere. The person who wrote it left the company three years ago.
And now youâve built your shiny new microservice without it. And production breaks. And youâre scrambling to patch it. And that patch becomes the next hack that kills your codebase in three years.
Every patch is a crack in your fundament. Put in enough cracks and your team will start talking about the ânecessary rewriteâ.
Without the map, youâre not modernizing. Youâre just moving the mess around.
The Brutal Truth About Modernization
You cannot just look at Hannover.
You need to know how to get to Munich first. Then Munich to Hannover. Then Hannover station to the hotel. Then the hotel to the workshop location.
Each leg of the journey matters.
Most companies skip the first leg entirely. They donât even know where theyâre starting from. They just know they want to get to âthe cloudâ or âmicroservicesâ or âevent-driven architecture.â
So they start walking in what they think is the right direction.
And six months later, theyâre lost. Theyâve spent hundreds of thousands of euros - maybe millions - and theyâre no closer to Hannover than when they started. In fact, they might be further away.
Because they never kartographed where they were starting from.
Before You Start Your Next Modernization Project
Kartograph your legacy.
Understand where youâre starting from. Map every context. Map every chapter. Surface every hidden business rule.
Use AI to accelerate the process. But bring the human expert into the loop to correct the timing, validate the relationships, and catch what the AI canât see.
Go phase by phase. Zoom in layer by layer. From contexts to chapters to workflows to specific business logic.
Get business experts and engineers in the same room, looking at the same visual model, speaking the same language.
Spend the hours - or days - up front to build the map.
Then - and only then - start building toward Hannover.
Because every minute you spend kartographing will pay 10x in avoided rework, prevented fires, and eliminated waste.
Itâs the best investment youâll ever make.
And skipping it? Thatâs the most expensive mistake youâll ever make.
I Will Help You With This
In my Workshop we´ll combine AI, Event Modeling and expertise from your Team to build the map. That´s your starting point for the modernization journey - like my plan printed on a sheet of paper - just that we use an Event Model.
Join the Agentic Engineer Program
Apply Spec-Driven Development Hands-On - Event Modeling, Event Sourcing, and AI Engineering with autonomous agents.
Book a Call Today
Want to talk through how Event Modeling could work for your team or project? Letâs have a quick, no-pressure conversation.
