On this page
  1. Why it matters
  2. What money needs from a database
  3. The landscape
  4. How to choose
  5. Trade-offs
  6. Pitfalls
  7. Questions for a design review

Why it matters

A bank’s database is where money actually lives. If it loses a confirmed transaction, or lets two withdrawals both succeed against a balance that covers only one, the error is real money. Most other design choices in a bank can be revisited. The database behind the ledger rarely can.

What money needs from a database

The four properties known as ACID matter most:

  • Atomicity: a transfer’s debit and credit both happen or neither does.
  • Consistency: rules such as “balance may not go below the overdraft limit” always hold.
  • Isolation: concurrent transactions do not see each other’s half-finished work.
  • Durability: once confirmed, a transaction survives a crash.

Relational databases were built for exactly this, which is why ledgers run on them.

The landscape

Database types in banking
TechnologyRoleTypical use in Indian bankingNotes
Commercial relational (for example Oracle Database, IBM Db2, Microsoft SQL Server)System of recordCore ledgers, payment systems, loan systemsMature clustering and tooling; significant licence cost
Open-source relational (PostgreSQL and its enterprise distributions)System of record or supporting systemNewer applications, channel back ends, some core modulesLower licence cost; enterprise support available
Distributed SQL (for example CockroachDB, YugabyteDB)Relational data spread across nodesNew systems that need scale across sitesStrong consistency across nodes, at the cost of write latency
In-memory cache (Redis and similar)Fast reads of data held elsewhereSession data, reference data, rate limiting, balance snapshots for displayNot a system of record; data can be lost
Document stores (for example MongoDB)Flexible, nested recordsCustomer profiles, onboarding journeys, contentCheck the transaction guarantees before using for money
Key-value and wide-column storesVery high write and read volumesEvent histories, logs, device and fraud featuresUsually eventual consistency

Typical uses are general industry patterns, not claims about named banks. Product names are examples only.

Vendors have also moved established banking software onto open-source relational databases. EDB stated in 2019 that multiple Finacle modules had been migrated to EDB Postgres and implemented at financial institutions in Asia.1EDB. Infosys Finacle Names EnterpriseDB Open Source DB Partner of the Year. As of 11 April 2019.

Clustering and replication

A single database server is a single point of failure. Clustering runs several servers so that one can take over from another. Replication copies data to other servers or sites, synchronously (no loss, slower writes) or asynchronously (faster, small possible loss). RBIReserve Bank of India. India's central bank. It regulates banks and payment systems, runs RTGS and NEFT, and holds the accounts in which banks settle with one another. expects critical systems to aim for no loss at all: For critical information systems, regulated entities should prioritise a minimal RTO, approved by their IT Strategy Committee, and a near-zero RPO; with a non-zero RPO they need a documented method for reconciling data when resuming from the alternate site.2Reserve Bank of India. Reserve Bank of India (Information Technology Governance, Risk, Controls and Assurance Practices) Directions, 2023 (full text). As of 7 November 2023. Replication is not a backup, though: a deleted table is deleted everywhere. Regulated entities must back up data and periodically restore it to check that it is usable.2Reserve Bank of India. Reserve Bank of India (Information Technology Governance, Risk, Controls and Assurance Practices) Directions, 2023 (full text). As of 7 November 2023.

How to choose

Start from the consistency the data needs, not from the technology. Balances, postings and anything else that must never be wrong belong in a relational database with full transactions. Data that is read far more than written, such as reference data or a customer’s recent transactions for an app screen, can be cached. Data whose shape changes often and which does not move money, such as onboarding forms, can suit a document store. High-volume append-only data, such as events and logs, suits stores built for writes.

Trade-offs

Database choices
ChoiceYou gainYou give up
One large relational databaseSimple strong consistencyScale limited to the biggest machine; costly failover
Distributed SQLScale and resilience across nodesHigher write latency; newer operational skills
Cache in front of the databaseFast reads and less load on the coreStale data risk; another system to keep consistent
Open-source engineLower licence cost, no single vendorSupport contracts and in-house skills still needed

Pitfalls

  • Treating a cache as the truth, for example approving a payment against a cached balance.
  • Assuming replication is a backup. Mistakes replicate too.
  • Choosing a store for its speed and discovering later that it cannot run a multi-record transaction.
  • Migrating engines without checking behaviour, such as differences in how dates, rounding or locking work.
  • Long-running reports on the ledger database, slowing customer transactions.

Questions for a design review

  • Which data here must never be wrong, and which store holds it?
  • What isolation level do money-moving transactions run at?
  • If the primary database fails now, how much data is lost and who reconciles it?
  • When was a backup last restored and checked?
  • Which reads could move to a cache or replica, and how stale may they be?

Sources

  1. Infosys Finacle Names EnterpriseDB Open Source DB Partner of the Year. EDB. Vendor, accessed 29 September 2026. Supports: EDB stated in 2019 that multiple Finacle modules had been migrated to EDB Postgres and implemented at financial institutions in Asia (as of 11 April 2019).
  2. Reserve Bank of India (Information Technology Governance, Risk, Controls and Assurance Practices) Directions, 2023 (full text). Reserve Bank of India. Primary source, accessed 29 September 2026. Supports: For critical information systems, regulated entities should prioritise a minimal RTO, approved by their IT Strategy Committee, and a near-zero RPO; with a non-zero RPO they need a documented method for reconciling data when resuming from the alternate site (as of 7 November 2023); Regulated entities must back up data and periodically restore it to check that it is usable (as of 7 November 2023).