- Chapter
- Chapter 1 — Legacy Architecture Assessment
- Prerequisites
- Volume IV Chapter 1
- You will be able to
- Plan and time-box a legacy discovery, triangulate evidence from code, runtime, data, infrastructure, documents and people, build a trustworthy inventory with owners and criticality, uncover hidden integrations and unused features, capture baseline metrics and produce a discovery report that grounds modernisation decisions
- Covers
- Legacy system discovery
On this page
- 1. Concept / Definition
- 2. Why It Exists
- 3. Core Concepts — Inventory Attributes
- 4. How It Works Internally — Discovery Sources in Practice
- 4A. Deep Dive — SME Interviews and Knowledge Capture
- 4B. Deep Dive — Usage Analytics
- 4C. Deep Dive — Shadow Integrations
- 4D. Deep Dive — Baseline Metrics
- 4E. Deep Dive — Planning and Time-Boxing
- 5. APIs / Features / Syntax
- 6. Practical Examples
- 7. Common Problems & Mistakes
- 8. Performance & Production Considerations
- 9. Architecture & Design Considerations
- 10. Interview Questions & Answers
1Concept / Definition
Legacy system discovery establishes what actually exists in and around a legacy system — its components, technologies, data, jobs, integrations, users, owners and operating characteristics — and who knows what. It triangulates evidence from code, runtime behaviour, databases, infrastructure, documents and people, because no single source is complete or current. Discovery produces the inventory and baseline on which assessment (1.2–1.5) and strategy (Chapter 2) depend.


| Vocabulary | Meaning |
|---|---|
| Inventory | Catalogue of components with attributes |
| SME | Subject-matter expert holding tacit knowledge |
| Shadow integration | Undocumented connection (DB link, FTP, email) |
| Baseline | Current metrics to measure improvement against |
2Why It Exists
| Skipping discovery | Consequence |
|---|---|
| Hidden integration missed | Partner breaks at cutover |
| Unused features migrated | Wasted effort |
| Key-person knowledge lost | Behaviour can't be reproduced |
| No baseline | Can't prove modernisation helped |
3Core Concepts — Inventory Attributes
| Attribute | Why it matters |
|---|---|
| Technology and version | Support status, skills, migration path |
| Size and age | Effort estimation |
| Owner | Decision rights and knowledge |
| Users and usage | What must be preserved |
| Criticality/tier | Risk and sequencing |
| Change rate | Where modernisation pays back |
| Support status | End-of-support urgency |
| Interfaces | Integration scope |
4How It Works Internally — Discovery Sources in Practice
| Source | KLCP technique | Finding |
|---|---|---|
| Code | Build files, module scan | 38 EJB modules, 1.1M LOC, shared utils JAR |
| Runtime | OTel Java agent on WebLogic for 4 weeks | Actual call paths, 11% of EJB methods never called |
| Database | Data dictionary, AWR, audit | 1,900 tables, 640 PL/SQL, 3 DB links |
| Scheduler | crontab + DBMS_SCHEDULER export | 74 jobs, 9 with no owner |
| Network | VPC-equivalent flow logs on-prem firewall | FTP to reinsurer, SMTP relay |
| People | 22 SME interviews | Manual month-end steps in spreadsheets |
| Tickets | 3 years of incidents | Top failure areas |
4ADeep Dive — SME Interviews and Knowledge Capture
| Practice | Detail |
|---|---|
| Interview the doers | Operators, DBAs, power users, not only managers |
| Structured questions | What breaks? What's manual? What would you never touch? |
| Walkthroughs | Watch month-end close, not just describe it |
| Record | Knowledge base entries, runbooks, recorded sessions |
| Key-person risk | Identify single points of knowledge; pair early |
4BDeep Dive — Usage Analytics
| Evidence | KLCP result |
|---|---|
| HTTP access logs by URL | 31% of screens used < once/month |
| EJB method invocation counts | 11% never invoked in 4 weeks |
| Report execution logs | 227 of 420 reports never run in a year |
| Batch job outputs consumed? | 6 jobs produce files nobody reads |
| Implication | Don't migrate what nobody uses (2.5 Retire) |
4CDeep Dive — Shadow Integrations
| Hidden path | How found |
|---|---|
| DB link to finance DB | DBA_DB_LINKS + audit trail |
| FTP export to reinsurer | Firewall logs |
| Spreadsheet uploads by finance | Interviews + file share scan |
| Email-based approvals | Mail relay logs |
| Direct DB reads by BI tool | DB session sampling |
4DDeep Dive — Baseline Metrics
| Metric | KLCP baseline |
|---|---|
| Lead time for change | 6 weeks |
| Release frequency | Monthly (with 3-day manual regression) |
| Incidents (P1/P2 per quarter) | 14 |
| Infra + licence cost | ₹6.8 Cr/year |
| Claim cycle time (business) | 14 days median |
| Performance | FNOL form p95 4.2 s |
4EDeep Dive — Planning and Time-Boxing

| Principle | Detail |
|---|---|
| Time-box | 4–8 weeks for a large system |
| Parallel streams | Code, runtime, data, integration, people |
| Good enough | Enough to choose strategy; deepen per wave |
| Output-driven | Inventory, context diagram, risks, gaps, options |
5APIs / Features / Syntax
# Attach the OTel Java agent to legacy WebLogic (no code change)
JAVA_OPTIONS="$JAVA_OPTIONS -javaagent:/opt/otel/opentelemetry-javaagent.jar \
-Dotel.service.name=klcp -Dotel.traces.sampler=parentbased_traceidratio \
-Dotel.traces.sampler.arg=0.05 -Dotel.exporter.otlp.endpoint=http://collector:4317"
export JAVA_OPTIONS-- Oracle: find shadow dependencies — DB links, scheduler jobs and external sessions
SELECT owner, db_link, host FROM dba_db_links;
SELECT owner, job_name, enabled, last_start_date FROM dba_scheduler_jobs;
SELECT DISTINCT machine, program, username
FROM gv$session WHERE username IS NOT NULL AND program NOT LIKE 'weblogic%';# Inventory entry (discovery output)
component: klcp-pl-sql-batch
technology: Oracle PL/SQL + cron
age_years: 12
size: {procedures: 640, jobs: 74}
owner: unknown # → risk: key-person, assign owner
users: [finance (month-end), reinsurance]
criticality: tier-2
change_rate: low
support_status: Oracle 11g extended support ends 2026-12
interfaces: [db-link finance, ftp reinsurer]
evidence: [dba_scheduler_jobs export, firewall logs, interview #14]6Practical Examples
6.1 KLCP discovery
Six weeks of parallel streams produced an inventory of 212 components, found 14 undocumented integrations, identified 227 unused reports and 11% dead EJB methods, and named two people as the only holders of PL/SQL batch knowledge — pairing started in week four.
6.2 NovaBank middleware
Runtime tracing of the channel middleware revealed that 40% of calls to core banking were balance lookups — which shaped the CQRS read-model design in Volume IV 6.2.
6.3 ShopNow monolith
Access logs showed a "wholesale" module used by three accounts; it was retired rather than migrated, saving months.
6.4 Worked example — triangulation
Scenario. Kavach Insurance planned to modernise its 15-year-old claims system, and the architecture documents listed nine integrations with other systems.
| Docs said | Runtime showed |
|---|---|
| 9 integrations | 23 |
What it shows. Triangulation compares several independent sources instead of trusting one. The documents said nine integrations, but runtime evidence told a different story: network flow logs, database link audits, scheduler exports and an APM agent attached to the application together showed 23. The extra fourteen included FTP exports to a reinsurer, a nightly database link used by finance and spreadsheets uploaded by regional teams. Had the migration plan been based on the documents, those fourteen integrations would have broken on cut-over day. Every integration found was added to the inventory with an owner, a frequency and a data description.
Common mistake. Treating existing documentation as the truth, when it often describes the system as originally designed rather than as it runs today.
Takeaway. Triangulate documents with runtime evidence and people, and trust what the running system shows.
6.5 Worked example — unused feature
Scenario. Kavach's claims system offered hundreds of reports, and the migration plan assumed all of them must be rebuilt.
| Reports never run | 227 |
|---|---|
| Action | Retire |
What it shows. Usage analytics from the reporting server's logs showed that 227 reports had not been run at all in the past eighteen months. After confirming with business owners that none were needed for regulatory or annual processes, Kavach marked them for retirement instead of migration. This removed months of rebuild and test effort from the programme and simplified the new reporting design. Usage data is one of the cheapest ways to reduce modernisation scope.
Common mistake. Migrating every feature by default because nobody checked whether it is still used.
Takeaway. Collect usage data during discovery and retire features nobody uses, after confirming with owners.
6.6 Worked example — ownerless job
Scenario. Kavach's scheduler ran hundreds of batch jobs, and the discovery team checked who owned each one.
| Jobs without owner | 9 |
|---|---|
| Action | Assign or retire |
What it shows. Nine jobs had no known owner: nobody could say who relied on their output or what would happen if they stopped. Ownerless jobs are a governance risk, because they cannot be safely changed, migrated or retired. The team assigned owners where a business need was found and planned to retire the rest after a monitored switch-off period. Each decision was recorded in the inventory, so no job was left in an unknown state before migration.
Common mistake. Migrating ownerless jobs as they are, carrying unknown risks into the new platform.
Takeaway. Find an owner for every component during discovery, or plan its retirement.
6.7 Worked example — interview whiteboard
Scenario. In interviews, Kavach asks: "You're asked to modernise a system nobody fully understands. Where do you start?"
| Prompt | Answer outline |
|---|---|
| "You're asked to modernise a system nobody fully understands. Where do you start?" | "Time-boxed discovery (4–8 weeks) in parallel streams: code/build scan, runtime tracing with agents, database dictionary/audit, scheduler and batch export, network flows, documents, tickets, SME interviews with doers. Triangulate — trust runtime evidence over docs. Build inventory (tech, version, size, owner, users, criticality, change rate, support status, interfaces). Find shadow integrations and unused features. Capture baseline metrics. Output: inventory, context diagram, risks, knowledge gaps, options." |
Why it works. The outline describes time-boxed discovery of four to eight weeks, run in parallel streams: code and build scans, runtime tracing with agents, database dictionary and audit analysis, scheduler and batch exports, network flows, documents, tickets and interviews with the people who actually do the work. Evidence is triangulated, with runtime data trusted over documents. The outputs are an inventory with key attributes, shadow integrations, unused features, baselines, a context diagram, risks and knowledge gaps. Interviewers hear a structured, evidence-based approach rather than a jump to rewriting.
Common mistake. Proposing a rewrite or a migration strategy before understanding what exists.
Takeaway. Start with time-boxed, evidence-based discovery across many sources before choosing a strategy.
6.8 Worked example — key person
Scenario. Discovery found that only two people understood Kavach's PL/SQL settlement batch, and one planned to retire within a year.
| PL/SQL batch | 2 people |
|---|---|
| Mitigation | Pairing + recorded walkthroughs |
What it shows. Key-person risk was treated as a top priority. The two experts paired with modernisation engineers on real changes, recorded walkthroughs of the batch logic and wrote runbooks for common failures. Within three months, four more engineers could support the batch. When one expert retired, the knowledge stayed in the team and the recordings, and the batch was later migrated with far less risk.
Common mistake. Discovering key-person dependencies only when the person leaves.
Takeaway. Identify key-person risks early and capture their knowledge through pairing, recordings and runbooks.
6.9 Worked example — anti-patterns
Scenario. Kavach reviewed why an earlier modernisation attempt had failed.
| Anti-pattern | Effect |
|---|---|
| Trust old docs | Missed integrations |
| Managers only | Missing tacit knowledge |
| Endless discovery | No decisions |
What it shows. The table names the anti-patterns. Trusting old documents led the team to miss integrations, which broke at go-live. Interviewing only managers missed the tacit knowledge held by the people doing the daily work, such as manual fixes and workarounds. Endless discovery, with no time box, delayed decisions while the business lost patience. The new programme used runtime evidence, interviewed the doers and fixed discovery at six weeks, deepening it per migration wave.
Common mistake. Swinging from no discovery to discovery that never ends.
Takeaway. Use evidence, talk to the doers and time-box discovery.
6.10 Worked example — licence discovery
Scenario. Discovery included a review of Kavach's software licences and support contracts.
| Oracle extended support | Ends 2026-12 |
|---|
What it shows. It found that Oracle extended support for the claims database version would end in December 2026. That date became a hard deadline driver for the programme: the database had to be upgraded or migrated before then, or Kavach would run without security patches. The finding changed the programme's priorities, moving data migration earlier in the plan. Licence and support dates are often overlooked but can decide the whole schedule.
Common mistake. Ignoring licence and support dates until a renewal notice arrives.
Takeaway. Review licences and support dates during discovery, because they can set hard deadlines.
6.11 Worked example — CMDB reconciliation
Scenario. Kavach's configuration management database listed the servers that made up the claims system.
| CMDB listed | 140 servers; found 162 |
|---|
What it shows. The CMDB listed 140 servers, but network scans and the cloud discovery agent found 162. The extra 22 included reporting servers, file transfer hosts and test machines that had quietly become part of production flows. Each was investigated, added to the inventory and assigned an owner, and several were retired. Reconciling the CMDB with evidence prevented these servers from being forgotten in the migration.
Common mistake. Assuming the CMDB is complete and accurate.
Takeaway. Reconcile inventories against scanned evidence to find what is missing.
6.12 Worked example — month-end walkthrough
Scenario. Kavach's finance team said month-end claims reporting was "automated".
| Manual steps | 17 spreadsheet steps |
|---|
What it shows. Walking through month-end with the people who actually do it revealed 17 manual spreadsheet steps: exporting data, adjusting figures, copying between files and uploading results. None appeared in any system documentation. These hidden steps became requirements for the new platform, which automated most of them. Without the walkthrough, the new system would have broken a critical process that nobody had documented.
Common mistake. Accepting a description of a process without watching it being done.
Takeaway. Walk through critical processes with the doers to uncover hidden manual steps.
6.13 Worked example — incident mining
Scenario. Kavach analysed two years of incident tickets for the claims system.
| Top area | Settlement batch failures |
|---|
What it shows. Incident mining showed that settlement batch failures were the largest source of incidents and out-of-hours calls. This became a clear pain point and a priority for modernisation, with a business case based on reduced incidents and staff effort. It also showed which parts of the system were most fragile and needed careful handling during migration. Incident data also showed the times of day and month when failures clustered, which helped plan safe migration windows.
Common mistake. Prioritising modernisation by technical preference instead of evidence of pain.
Takeaway. Mine incident and ticket data to find where the legacy system hurts most.
6.14 Worked example — performance baseline
Scenario. Kavach wanted to prove that the modernised claims system would be faster than the old one.
| FNOL p95 | 4.2 s |
|---|
What it shows. Before any change, the team captured a performance baseline: FNOL, the first notice of loss, had a p95 response time of 4.2 seconds. Other baselines covered batch duration, error rates and processing cost. After the first modernisation wave, FNOL p95 fell to 0.9 seconds, and the comparison was clear because the baseline had been measured the same way. Baselines were stored with the method used to measure them, so later comparisons were fair and could be repeated by anyone.
Common mistake. Measuring only after modernisation, leaving nothing to compare with.
Takeaway. Capture baselines before change, so improvement can be proven.
6.15 Worked example — discovery tools
Scenario. Kavach needed evidence about its legacy servers and application behaviour without changing the code.
| Tool | AWS Application Discovery, APM agent |
|---|
What it shows. Discovery tools gathered it. AWS Application Discovery Service collected server configuration, utilisation and network dependencies. An APM agent attached to the Java application traced requests and calls to databases and external systems. Together they produced dependency maps and sizing data in weeks, which would have taken months to gather manually. The tools' output was still reviewed with engineers, because automated maps can include noise, such as monitoring traffic, that must be filtered out. Each dependency was then confirmed with its owner.
Common mistake. Gathering everything by interviews and spreadsheets when tools can collect it automatically.
Takeaway. Use discovery tools to collect runtime evidence quickly and accurately.
6.16 Worked example — interview follow-ups
Scenario. Kavach's interviewers follow up on discovery approach.
| Follow-up | Answer |
|---|---|
| "How long should discovery take?" | Time-boxed; enough to choose strategy |
| "Most important source?" | Runtime evidence + doers |
Why it works. Discovery should be time-boxed: long enough to choose a modernisation strategy for each component, then deepened for each migration wave. The most important sources are runtime evidence, which shows what really happens, and the doers, the people who operate and use the system daily and know its workarounds. Strong candidates explain why both matter and how they would balance speed with depth. Interviewers also value candidates who mention how they would keep stakeholders informed during discovery, so the business sees progress rather than a silent delay.
Common mistake. Saying discovery should continue until everything is known.
Takeaway. Time-box discovery and prioritise runtime evidence and the people doing the work.
6.17 Worked example — checklist
Scenario. Kavach used a checklist to decide when discovery was complete enough for strategy decisions.
| Item | ✔ |
|---|---|
| All sources | ✔ |
| Inventory attributes | ✔ |
| Shadow integrations | ✔ |
| Usage data | ✔ |
| Baselines | ✔ |
| Knowledge capture | ✔ |
What it shows. The checklist confirms that all sources were examined, the inventory has its key attributes, shadow integrations have been searched for, usage data has been collected, baselines are captured and key knowledge has been recorded. Gaps are listed as risks rather than blocking progress. The checklist gave the steering group confidence to approve strategy decisions. Remaining gaps were assigned owners and target dates, so they were closed during the first migration wave.
Common mistake. Declaring discovery finished because the time box ended, without checking coverage.
Takeaway. Use a discovery checklist to confirm coverage and record remaining gaps as risks.
6.18 Worked example — context diagram
Scenario. Nobody at Kavach had an up-to-date picture of how the claims system fitted into the wider landscape.
| Output | Recovered context (1.3) |
|---|
What it shows. One of discovery's main outputs is a recovered context diagram, described in section 1.3. It shows the claims system, its users and all 23 integrations found, with direction and frequency. The diagram became the reference for migration planning, testing and cut-over, and it was reviewed with integration owners to confirm accuracy.
Common mistake. Keeping discovery findings only in spreadsheets, which are hard for stakeholders to understand.
Takeaway. Produce a recovered context diagram as a shared picture of the legacy system.
6.19 Worked example — sampling
Scenario. Kavach's operations team worried that tracing the legacy application would slow it down.
| Trace sampling | 5% to limit overhead |
|---|
What it shows. Trace sampling at 5% kept overhead low while still capturing enough data to map dependencies and performance. The team monitored CPU and latency before and after attaching the agent and saw no meaningful impact. Sampling was increased briefly during quiet periods to catch rare flows, such as month-end jobs. Agents were rolled out to one server first, observed for a day and then extended to the rest, with a quick way to remove them if any problem appeared.
Common mistake. Tracing every request on a fragile legacy system without checking the overhead.
Takeaway. Use sampling and monitoring to gather runtime evidence safely.
6.20 Worked example — security findings
Scenario. During configuration analysis, the discovery team looked for security risks.
| Discovered | Hard-coded passwords in 6 configs |
|---|
What it shows. They found hard-coded passwords in six configuration files, including credentials for the claims database. These were reported immediately as security findings, rotated and moved to a secrets manager. Discovery often surfaces risks like this, which must be fixed quickly rather than waiting for the modernisation programme. The finding also led to an automated scan for secrets in all legacy configuration and code repositories.
Common mistake. Noting security issues for later instead of fixing them immediately.
Takeaway. Treat security findings from discovery as urgent actions.
6.21 Worked example — interview scenario
Scenario. In an interview, Kavach asks: "The documents say there are nine integrations. Do you trust that?"
| Question | Answer |
|---|---|
| "Docs say 9 integrations" | Verify with flows and DB audit |
Why it works. A strong answer says no and explains how to verify: examine network flows, database audit logs, database links, scheduler exports and file transfer logs, and attach tracing agents. It mentions shadow integrations, such as FTP exports and spreadsheet uploads, which documents often miss. The candidate shows a habit of verifying with evidence. They also explain how they would confirm each discovered integration with its owner, so the evidence turns into agreed scope.
Common mistake. Accepting documented integration counts without verification.
Takeaway. Verify integrations with runtime and data evidence.
6.22 Worked example — owner assignment
Scenario. Discovery found several components that nobody claimed responsibility for.
| Unowned components | Owners named in report |
|---|
What it shows. The discovery report names an owner for every component, agreed with business and IT leaders. Owners decide whether their components are migrated, changed or retired and answer questions during the programme. Clear accountability prevented decisions from stalling later. Owners are also listed in the inventory and service catalogue, so anyone can find them later.
Common mistake. Leaving ownership unresolved and hoping it will become clear during migration.
Takeaway. Assign owners for every component as part of discovery.
6.23 Worked example — batch output consumers
Scenario. Kavach's batch jobs produced many output files every night.
| Unread files | 6 jobs |
|---|
What it shows. Analysis of file access logs showed that six jobs produced files that nobody read. After confirming with possible consumers and monitoring for complaints during a trial switch-off, the jobs were retired. This reduced migration scope and nightly processing time. The switch-off was reversible for one month, so any forgotten consumer could be restored quickly.
Common mistake. Assuming every batch output is used because it has always been produced.
Takeaway. Check who consumes batch outputs and retire jobs whose files are never read.
6.24 Worked example — data volume
Scenario. Kavach's migration planning needed to know how much data would move.
| Largest table | CLAIM_DOCS 38M rows |
|---|
What it shows. Data volume analysis found that CLAIM_DOCS, holding document metadata, was the largest table with 38 million rows, and the related documents occupied several terabytes. This shaped the migration design: an incremental copy with change data capture and a short final cut-over, rather than a single bulk load during a weekend. Growth rates were also measured, so the new storage design could handle several years of expected volume.
Common mistake. Estimating migration effort without measuring data volumes.
Takeaway. Measure data volumes during discovery, because they shape migration design.
6.25 Worked example — options draft
Scenario. With discovery nearly complete, Kavach needed to move towards decisions.
| Early options | Strategy candidates per component |
|---|
What it shows. An early options draft listed candidate strategies for each component, such as retire, rehost, replatform or refactor, based on the evidence. These options were not final, but they focused the next phase on evaluating a few realistic choices per component rather than starting from a blank page. Each option listed the evidence behind it and the questions still to answer, so evaluation started immediately.
Common mistake. Ending discovery with findings but no link to decisions.
Takeaway. Draft strategy options per component as the bridge from discovery to planning.
6.26 Worked example — deliverables
Scenario. Kavach defined the deliverables the discovery phase must produce.
| Deliverable | Owner |
|---|---|
| Inventory, context, risks, baselines, knowledge gaps | Architect + SMEs |
What it shows. The deliverables are the inventory, the recovered context diagram, risks, baselines and knowledge gaps, owned by the architect together with subject matter experts. Each is reviewed with stakeholders before strategy decisions are made. These outputs give the programme a reliable starting point. The deliverables were stored in a shared space and kept current through the programme, so later waves could build on them rather than repeating discovery.
Common mistake. Producing discovery outputs that only the discovery team understands.
Takeaway. Define clear discovery deliverables with owners and review them with stakeholders.
7Common Problems & Mistakes
| Mistake | Fix |
|---|---|
| Docs only | Runtime evidence |
| No usage data | Analytics |
| Knowledge loss | Capture early |
| No baseline | Measure now |
8Performance & Production Considerations
| Consideration | Practice |
|---|---|
| Agent overhead | Sampling, off-peak |
| DB audit load | Short windows |
| Access to prod | Read-only, approved |
9Architecture & Design Considerations
| Guideline | Detail |
|---|---|
| Triangulate | Accuracy |
| Time-box | Momentum |
| Baseline | Proof of value |
10Interview Questions & Answers
What is legacy discovery?
Legacy discovery is the work of establishing what really exists in and around a legacy system before changing it: its components, technologies, data, integrations, batch jobs, users, owners and operational behaviour, and who holds knowledge about it. It combines evidence from code, runtime tracing, databases, schedulers, network flows, documents, tickets and interviews. The results guide modernisation strategy, reduce risk and often reduce scope by finding features and integrations that are no longer needed. Good discovery is time-boxed, evidence-based and focused on the decisions the programme must make next.
Why not rely on documentation?
Documentation of legacy systems is usually incomplete or out of date. It often describes the system as originally designed, not as it has evolved over years of changes, quick fixes and new integrations. Important details, such as shadow integrations or manual workarounds, are rarely documented at all. Running evidence, such as network flows, logs and traces, shows what actually happens, so it should be trusted over documents when they disagree. Documents are still useful for context and intent, but every important claim in them should be verified against evidence.
Name discovery sources.
Useful discovery sources include source code and build files; runtime traces from APM or OpenTelemetry agents; database dictionaries, audit logs and database links; job schedulers and batch outputs; network flow logs; configuration files; existing documents; incident and change tickets; licence and support records; and interviews with the people who use and operate the system daily. Each source covers different gaps, so combining them gives the most reliable picture. Interviews with the doers are especially valuable because they reveal workarounds, manual steps and known problems that no tool can detect.
What's a shadow integration?
A shadow integration is a connection between systems that is not documented or officially managed. Examples include a database link used by another application, a nightly FTP export to a partner, a script that copies files between servers or a spreadsheet that staff download, edit and upload. Shadow integrations are dangerous during modernisation because they break silently when the legacy system changes, so discovery must search for them actively. Network flows, database audit logs, file transfer logs and interviews with users are the best ways to find them, and each one found should be recorded with an owner.
How can you observe runtime without code changes?
Attach an APM or OpenTelemetry Java agent to the running application at start-up. The agent instruments common frameworks and libraries automatically, capturing requests, database calls and calls to external systems without code changes. Use sampling, such as 5% of requests, to keep overhead low, and monitor CPU and latency before and after. Combine traces with network flow logs and database audit data for a complete view. Start in a test environment, then roll out gradually to production with a quick removal plan. This gives an accurate dependency map and performance data in weeks.
Why collect usage analytics?
Usage analytics show which features, reports, screens and integrations are actually used and how often. Legacy systems often contain many features that nobody has used for years. Migrating them wastes time and money and adds complexity to the new system. With usage data, teams can confirm with owners and retire unused features, focus effort on what matters and design the new system around real usage patterns. Usage data should cover a long enough period, often a full year, to include monthly, quarterly and annual processes, so rarely used but essential features are not retired by mistake.
What attributes belong in the inventory?
The inventory should record, for each component, its technology and version, age, size, owner, users, business criticality, rate of change, support and licence status, interfaces and dependencies, data held and known risks. These attributes allow teams to compare components, choose a modernisation strategy for each, plan migration waves and identify urgent issues, such as unsupported software or missing owners. The inventory should be a living artefact, kept in a shared tool rather than a private spreadsheet, and updated as discovery deepens and components are migrated or retired.
How handle key-person risk?
Handle key-person risk by identifying it early, for example by asking who is called when a component fails. Then capture knowledge quickly through pairing the expert with other engineers on real work, recorded walkthroughs, runbooks for common tasks and failures, and reviews of critical code. Spread support across more people and reduce reliance on any one person before major changes begin. Recording knowledge in shared, searchable places, such as the wiki and repository, ensures it outlives any individual and supports the modernised system as well.
Why capture baselines?
Baselines record how the legacy system performs before modernisation: response times, batch durations, error rates, incident counts, operating cost and manual effort. Without them, nobody can prove that modernisation delivered measurable improvement, and arguments about success become opinions. Baselines also help set realistic targets and identify where performance is worst, so they should be measured early and in the same way as later measurements. They also help detect regressions during migration, because a new component that performs worse than the baseline can be investigated before more traffic moves to it.
How long should discovery run?
Discovery should be time-boxed, often to four to eight weeks for an initial pass. The goal is enough understanding to choose a modernisation strategy for each component and plan the first waves, not complete knowledge of everything. Discovery is then deepened for each migration wave, focusing on the components being changed next. This balances risk reduction with progress and keeps stakeholders engaged. A clear time box also forces prioritisation: teams focus on the information needed for decisions rather than trying to document everything.
Test your knowledge on this topic →Flashcards from this topic's 10 questions, filtered by level and type.