Skip to content

Data warehouse, data lake, or lakehouse in a bank

B2Bnetwork team · · 6 min

IT in banking

In brief

A data warehouse stores cleaned, structured data for reports and still serves regulatory and management reporting best. A data lake stores raw data in any format, cheaply and at large scale, but without discipline it quickly turns into an unorganized dump. A lakehouse combines the two approaches: data sits in cheap object storage, while open table formats provide transactions, version history, and schema. In a bank all three often coexist, and the choice depends on who uses the data and for what.

Three architectures in brief

FeatureData warehouseData lakeLakehouse
DataCleaned, in a model built for reportsRaw, in any formatRaw and cleaned, in layers
SchemaFixed at write timeApplied at read timeFixed, but can evolve
Typical usersReporting, controlling, riskData analysts, model teamsBoth worlds on one platform
StrengthConsistency and trust in the numbersScale and flexibilityOne source for reports and models
WeaknessCost of change, slow onboarding of new sourcesData quality and orderMaturity of tools and team skills

What a bank requires from a data platform

A bank uses data for things where a mistake costs more than in most industries: reports for the regulator, capital calculations, provisions, liquidity risk reports, and monitoring transactions for money laundering. That is why a data platform must meet several conditions regardless of architecture:

  • Data lineage. For every number in a report, you must be able to point to which source system it comes from and what transformations it went through.
  • History. A report from a year ago must be reproducible on the data from that day, even if the source data was corrected later.
  • Quality. Completeness, correctness, and timeliness of data are measured, not assumed. We describe how to do this in the article Data quality.
  • Access control. Personal data and data covered by banking secrecy are seen only by people who need them, and access is logged.
  • Timeliness. Data must be ready by reporting deadlines, even after a failure of the nightly data feed.

The Basel Committee described the principles of risk data aggregation and risk reporting in a document known as BCBS 239. The principles cover, among other things, accuracy, completeness, timeliness, and the adaptability of reports to needs, so they are a good reference point when designing a data platform in a bank.

When a warehouse, when a data lake, when a lakehouse

A data warehouse fits where the numbers must be identical in every report: regulatory reporting, financial statements, controlling. The data model is fixed, and changes go through a controlled process. An example of such a project is a data warehouse for regulatory and management reporting.

A data lake fits data whose structure varies or whose volume is very large: logs from electronic channels, events from the mobile app, documents, data for training models. The condition is a data catalog and owners of the datasets. Without them, after a few years nobody knows what lies in which directories and whether it can be used. The catalog should also say which datasets contain personal data and who can access them.

A lakehouse fits when the bank wants one place for reports and models, instead of copying data between a warehouse and a lake. A fraud detection model and a report on fraud losses then use the same tables, so the numbers agree.

In practice, many banks keep the warehouse for regulatory reporting and build new use cases in a lakehouse architecture. That is reasonable as long as both worlds share a common glossary of terms: "active customer" must mean the same in a report and in a model. The glossary is not a document on a shelf but part of the platform: every column in the ready-to-use layer has a definition, an owner, and a reference to the rule that calculates it. When two departments count the same concept differently, the dispute is settled once, in the glossary, and not at every report.

What open table formats provide

A lakehouse is built on open table formats such as Apache Iceberg, Delta Lake, or Apache Hudi. They store data in files in object storage, but add a metadata layer that provides features known from databases:

  • transactions: a write either succeeds in full or not at all, so a report will not read half of the loaded data;
  • version history: you can read a table as it was on a chosen day, which helps reproduce reports;
  • schema changes: adding a column does not require rewriting the whole table;
  • engine independence: several query engines can read from the same tables.

In a bank, version history is especially useful. A report delivered to the regulator can be reproduced on the data from the day it was prepared, even if the table was corrected later. You do need to decide how long versions are kept, though, because history takes up space and deleting it must comply with data retention rules.

Features differ between formats and versions, so before choosing it is worth checking the documentation of the specific format and of the engines the bank uses. Analysts will work in SQL anyway; how to measure data quality with it is described in the article Data quality: how to measure and improve it.

How to move off an old warehouse

Moving off a warehouse that has run for years is a migration in which trust in the numbers matters most. A proven setup looks like this:

  1. Start with new use cases, not with rewriting the most important regulatory report.
  2. Feed the new platform in parallel with the old one, ideally through change capture in the source databases, described in the article Change Data Capture.
  3. Move reports one at a time and calculate them in both systems over several reporting periods.
  4. Reconcile results automatically: sums, record counts, and the values of key items must agree.
  5. Switch off the old report only after the owner signs off, once several periods have given the same numbers.

If the new platform is to run in the cloud, supervisory requirements come into play, which we describe in the article Cloud in the financial sector.

Questions and answers

Will a lakehouse replace a data warehouse in a bank?

It does not have to, and often should not right away. A warehouse with a fixed model and a controlled change process serves regulatory reporting well. A lakehouse makes sense for new use cases and where reports and models are to use the same data. Many banks maintain both approaches with a shared glossary of terms.

What is BCBS 239?

These are principles of the Basel Committee on Banking Supervision for effective risk data aggregation and risk reporting. They cover, among other things, data governance and the accuracy, completeness, and timeliness of data and reports. For an IT team it is a good reference point: a bank's data platform should make it possible to show data lineage, measure its quality, and prepare a report quickly.

How do you avoid a mess in a data lake?

With a data catalog describing every dataset, an owner responsible for quality and access, data layers (raw, cleaned, ready to use), and retention rules. Data without an owner and a description should not reach the layer that reports use. Without these rules, after a few years a data lake stops being a source anyone trusts.

How long should reports be calculated in parallel when migrating a warehouse?

At least several reporting periods for each report, including one with a year-end close if the report has annual items. One period is not enough, because many differences appear only with corrections, late data, or changes in source systems. You switch off the report in the old warehouse only when consecutive periods have given the same numbers.

What it looks like in a project

Working on banking systems? Talk to an engineer who knows their constraints.

Let's talk

Read more: IT in banking