Engagement · Financial services

Retiring a legacy on-premises data warehouse at a mid-size lender, with a reconciled parallel run

A mid-size lender moves its reporting off an aging warehouse appliance one subject area at a time, switching each only once the numbers agree.

The situation

A mid-size lender runs its reporting on an on-premises data warehouse appliance that it bought many years ago, fed by nightly jobs from the loan origination system, the loan servicing platform, the general ledger and the collections system. The transformation logic is spread across an aging ETL tool, a large body of stored procedures and a set of scheduled scripts written by someone who has since left. Finance, credit risk, collections and regulatory reporting all depend on the warehouse, reading it through a BI tool and through direct database connections that have never been fully listed.

Vendor support for the appliance is coming to an end, and the nightly batch now finishes shortly before the working day starts. The lender has already chosen a cloud data platform, but it has not yet decided how to move onto it without a quarter in which finance cannot explain its own figures. This design addresses that by migrating in waves by subject area, running the old and new platforms side by side, and requiring reconciliation to pass before any cutover.

What was going wrong

  1. No complete list of dependents exists

    Reports, spreadsheets with live connections, extracts sent to a credit bureau and a file for the collections agency all read from the warehouse, and some of them were built by people who have since left. If the warehouse is switched off without an inventory, the lender will discover its consumers only when they break.

  2. Logic buried in stored procedures

    The definition of days past due, the treatment of restructured loans and the rule for charge-off dates are coded in procedures that call further procedures. The documentation records what was intended years ago, which is often different from what the code actually does today.

  3. A batch window with no margin

    When a file from the servicing platform arrives late, the whole run slips into the morning, and month-end is worse still. Operators restart failed jobs by hand, and rerunning the batch after a correction can take most of a night.

  4. Automatic conversion produces subtly wrong numbers

    Translated SQL can run without any error and still give different results, because of how decimals are rounded, how nulls are handled in joins, how timestamps are treated across time zones or how text keys are sorted. Each difference is small, but each one ends up in a figure that finance has already reported.

Our approach

In order
  1. Inventory by actual usage

    We would read several months of query logs, covering at least one quarter-end, to find out which tables and reports are used, by whom and how often. Objects that no one reads are retired rather than migrated, and each remaining consumer is given a named owner who will sign off its cutover.

  2. Sequence the waves by dependency

    The order in which subject areas move is set by lineage, so shared reference data and the loan master go first, followed by servicing balances and then collections. Finance and regulatory reporting come last because they depend on all the others, and each wave is kept small enough to reconcile and to roll back.

  3. Rebuild the logic that matters

    Simple loads are converted with tooling and then checked. The business rules buried in procedures are rewritten as tested transformations under version control, and each rule is confirmed by its owner in finance or credit risk, with any disagreement between old code and stated intent settled and recorded in the decision log.

  4. Run both and reconcile daily

    During each wave both platforms load from the same source extracts, and an automated comparison runs every day at three levels, from row counts and keys through column totals by product and branch to the figures on the reports themselves. Each difference is classified as a defect in the new code, a defect in the old code or an agreed change.

  5. Cut over, then decommission

    A wave cuts over once it has reconciled through at least one month-end close and its owners have signed off. Consumers are then repointed and the legacy tables made read-only, and the old jobs are switched off on a published date so that the appliance's workload actually shrinks.

The design

The parts and what each one does
  • Shared landing zone

    Source extracts are written once to cloud object storage as dated, immutable files. During the parallel run the legacy load and the new pipelines read the same files, which rules out timing as a cause of differences.

  • Cloud warehouse in layers

    The warehouse keeps raw data as received, a cleaned and conformed layer, and dimensional marts for finance, risk and collections. History is stored with effective dates so that any past month-end position can be rebuilt.

  • Transformations as tested code

    SQL transformations live in version control with tests next to each model covering uniqueness, referential integrity, accepted values and the reconciliation of balances to the general ledger. When a test fails, the downstream load stops.

  • Reconciliation service

    A scheduled job compares the legacy and new outputs table by table and report by report, stores each difference with its classification and owner, and publishes a daily status for each wave.

  • Orchestration and lineage

    The scheduler understands dependencies, so it can rerun the single step that failed without repeating the whole batch, and it records the lineage of each reported figure back to its source file.

  • Governed access layer

    Access is role-based, personal and account data is masked for users who do not need to see it, and a single semantic layer ensures that BI tools and analysts work from the same metric definitions.

Safeguards

What keeps a bad day small
  • Reconciliation gates every cutover

    A wave is switched over when all open differences have been classified and accepted in writing by the report owner, within tolerances that finance set beforehand, and a date on the plan does not override that condition.

  • A rehearsed way back

    After each cutover the legacy load continues for an agreed period. Pointing a consumer back at the old tables is a documented step, and the lender's team rehearses it before the first wave goes live.

  • Regulatory reports move last

    Regulatory and financial statements are migrated only after their inputs have run without problems, and each statement is produced from both platforms for consecutive periods before the legacy version is withdrawn.

  • Customer data controls from day one

    Encryption, access roles, masking and audit logging are all in place before the first production load, and every non-production environment works with masked data.

Timeline

  1. Weeks 1 to 4

    We build the usage inventory from query logs, name an owner for each consumer, agree the wave plan and reconciliation tolerances, and set up the landing zone and platform foundations with their security controls.

  2. Months 2 to 4

    The first waves move reference data, the loan master and servicing balances, while the reconciliation service goes live and runs daily through the first month-end.

  3. Months 5 to 7

    Collections, credit risk and management reporting move in the next waves, with consumers repointed wave by wave and legacy jobs switched off as each wave closes.

  4. Months 8 to 10

    Finance and regulatory reporting run in parallel across consecutive closes, including a quarter-end, before they cut over, after which the appliance is made read-only and scheduled for retirement.

What it changes

What the build is designed to change

The lender moves off the appliance without going through a period in which two sets of numbers circulate and it is unclear which one is right. Each subject area has a recorded date of migration, a log of every difference found and how it was resolved, and an owner who accepted the result. The rules for delinquency, restructuring and charge-off become readable, tested code that credit risk and finance have reviewed, where previously they were procedures that only one person could follow.

In daily operation the batch stops being a risk every night, because a late source file now delays only the steps that depend on it, and a correction is rerun for the affected models alone. Analysts and BI tools read governed marts through one set of definitions. The measures below are how the lender would judge whether the migration has delivered these changes.

How success is measured

  • Open reconciliation differences in each wave, broken down by age and classification
  • Time at which the daily load finishes relative to the start of business
  • Number of legacy jobs and tables still running after each wave
  • Elapsed time needed to rerun a corrected month-end position
  • Share of reported figures whose lineage is traced back to a source file

What generalizes

  1. The old warehouse defines the expected results

    Whatever the documents say, the figures the business has reported for years were produced by the existing code. Running both platforms on the same inputs is the only test that checks the new platform against what the old one actually does.

  2. Migrate only what is used

    Query logs usually show that a large part of a long-lived warehouse is never read. Establishing that from evidence before any conversion starts removes work from the plan and also settles arguments about tables that will not be missed.

  3. Each wave ends with decommissioning

    When legacy jobs keep running because a single spreadsheet still reads from them, the lender ends up paying for two platforms and trusting neither of them. For that reason each wave closes with the old objects switched off on a date the consumers were told in advance.

All engagements

If you have a similar problem, a two-week review is the usual place to start.

Tell us what you are trying to do and where it is stuck. A principal reads every message and replies within one working day.

How we engage

Start a conversation.

A short paragraph is enough. A principal reads every message and replies within one working day.

Or email hello@farside.works. We use what you send only to reply. Privacy