Subscribe to get high-signal insights on how modern fintech is built.

engineering

Multi-Tenancy When the Money Is Shared Infrastructure

Data isolation is one layer of five when the shared resource is money, not rows in a database.

By Alex Kugell ·

Most SaaS engineers know multi-tenancy as a data visibility problem. You put a tenant_id column on your tables, write a row-level security policy, and tenant A never sees tenant B's data. If the policy has a bug, you get a data leak. Bad, but recoverable.

In fintech, that same bug means tenant A's money moved into tenant B's account. Or worse, nobody can determine whose money is where.

When Synapse Financial collapsed in 2024, a court-appointed trustee spent months trying to reconstruct which dollars belonged to which tenant from sub-ledger records that had drifted out of sync with the actual bank balances. The shortfall was $85 million, and some of that money may never be attributed.

The obvious engineering response is to add more database isolation, schema-per-tenant designs, dedicated databases, separate clusters. But data isolation, no matter how aggressive, only solves one of five problems.

You still need to segregate the actual money, make cross-tenant ledger references structurally impossible, enforce different compliance obligations per tenant, and manage separate cryptographic material for each one. Multi-tenancy in fintech is a fund segregation problem disguised as a data isolation problem.

Five layers of fintech multi-tenant isolation
Key Management
Per-tenant encryption, API keys, webhook secrets
↳ Breach exposes all tenants
Compliance Boundaries
Per-tenant regulatory profiles and thresholds
↳ Wrong rules applied to wrong tenant
Ledger Isolation
Cross-tenant references structurally impossible
↳ Money moves between tenants via bugs
Fund Segregation
Physical separation of money across bank accounts
↳ Commingled funds, $85M unattributable
Data Isolation
RLS, schema separation, tenant_id on every table
↳ Tenant A sees tenant B's data
↑ Most SaaS platforms stop at this layer

The Isolation Spectrum

Most multi-tenancy guides present a binary, shared database vs. dedicated database. In practice, there are at least five distinct levels, and each one trades operational cost for isolation strength.

The isolation spectrum
Shared DB + RLS
One database, tenant_id, row-level security
Data onlyLowest
Schema-per-tenant
Separate tables per tenant, shared instance
Data only~2×
DB-per-tenant
Dedicated Postgres per tenant
Data only~N×
Dedicated FBO
Separate FBO account per tenant at bank
Data + MoneyHigh
Dedicated accounts
Real bank account per tenant, own reporting
Data + MoneyHighest
← Lower costStronger isolation →

At the bottom is the shared-everything model. One database, one schema, tenant_id on every table, row-level security policies enforcing visibility.

This is cheap to operate, roughly the same cost as a single-tenant system, and it works fine for SaaS applications where the worst case is a data exposure. You're migrating one database.

One level up, you separate schemas within a shared database. Each tenant gets its own set of tables. Cross-tenant queries require an explicit schema prefix, which means accidental joins fail at the SQL level instead of returning wrong rows. The operational cost roughly doubles because you're running migrations per schema, but you get stronger isolation without the network overhead of separate database instances.

Dedicated databases per tenant are the next step. Each tenant gets a Postgres instance, and cross-tenant data access requires a network hop rather than a query, so the isolation is physical instead of logical.

With 200 tenants, you're running 200 databases, schema migrations become a fleet operation, connection pooling gets complicated, and monitoring costs scale linearly with tenant count.

But even dedicated databases don't solve the fintech-specific problems. Tenant A and tenant B can have completely separate databases while their money sits in the same bank account. The database boundary protects data, but the bank account boundary is what protects money, and those are different engineering problems.

The highest level is dedicated bank accounts per tenant. Each tenant's funds sit in a separate account at the partner bank, with its own account number, its own balance, and its own regulatory reporting. Cross-tenant fund movement requires an actual bank transfer, which creates an auditable record. This is the most expensive model, both in bank fees and operational overhead, but it's the only one where fund isolation is enforced by the banking system itself rather than by your code.

Fund Segregation: Where the Money Actually Sits

The gap between data isolation and fund isolation is where most platform failures happen. You can have perfect RLS policies while your tenants' dollars commingle in ways that make a regulator nervous and a bankruptcy trustee desperate.

Maintaining a separate bank account for each tenant is expensive, so most platforms pool deposits into a single account. One bank account, hundreds of tenants' dollars commingled inside it, and a sub-ledger maintained by the platform tracking which portion belongs to whom. The banking industry calls this an FBO account, "For Benefit Of," and the bank sees one balance while the platform sees many.

This works well under normal conditions. It's cheaper than maintaining hundreds of separate bank accounts, and it simplifies cash management. The platform can sweep excess funds, earn interest on the pool, and settle between tenants without touching the banking rails.

The problem surfaces when the platform fails or when the sub-ledger drifts. If your sub-ledger says tenant A has $4.2 million and tenant B has $3.1 million, those two numbers should sum to the FBO balance at the bank. If they don't, you have a reconciliation gap.

With two tenants the gap is manageable. With 200 tenants and daily transaction volumes in the tens of thousands per tenant, the gap can compound for weeks before anyone notices.

The FDIC proposed a rule in October 2024 (RIN 3064-AG07) that would require banks holding FBO accounts with transactional features to maintain beneficial-ownership records and reconcile no less than daily. As of late 2026, the final rule date remains "to be determined," but the direction is clear. Regulators want to know, at any given moment, which tenant owns which dollar in a pooled account.

A stronger model uses dedicated FBO accounts per tenant. The bank still holds the accounts, but each tenant's funds sit in a separate one. Cross-tenant exposure is eliminated at the banking layer, though operational costs scale with tenant count. Banks charge per-account fees, and your reconciliation system now monitors hundreds of accounts instead of one.

Sub-accounts at a provider like Modern Treasury offer a middle path. The funds may still pool at the bank level, but the sub-account infrastructure provides programmatic segregation with per-tenant balance tracking and transaction histories. Whether this satisfies a regulator depends on how the accounts are structured at the bank.

The hardest question is whether your reconciliation system can prove, at any point in time, that the sub-ledger matches the bank balance per tenant. If the answer requires running a batch job overnight, you have a window where the proof doesn't exist.

Ledger Isolation: Making Cross-Tenant References Impossible

Data isolation prevents tenant A from reading tenant B's rows, but ledger isolation goes further, preventing tenant A's transactions from ever referencing tenant B's accounts, even through bugs in application code.

In a double-entry ledger, every transaction debits one account and credits another. If the ledger schema allows a transaction to debit an account belonging to tenant A and credit an account belonging to tenant B, your isolation depends entirely on application-level validation. A single bug in a write path, one missed tenant check in a service that processes refunds or adjustments, creates a cross-tenant money movement.

The fix is to make invalid states unrepresentable at the schema level. Every account carries a tenant_id, every transaction references two accounts, and a database constraint enforces that both accounts share the same tenant_id.

If a developer writes code that attempts to debit tenant A's account and credit tenant B's, the database rejects the transaction before it commits.

ALTER TABLE transactions
ADD CONSTRAINT same_tenant_check
CHECK (
  (SELECT tenant_id FROM accounts WHERE id = debit_account_id)
  = (SELECT tenant_id FROM accounts WHERE id = credit_account_id)
);

In practice, check constraints with subqueries are expensive on high-throughput tables. A more common pattern uses composite foreign keys. The transactions table includes its own tenant_id column, and the foreign keys to accounts include tenant_id as part of the reference. The database enforces the match through referential integrity rather than a check constraint.

This costs you some schema flexibility. Cross-tenant settlement, when it's legitimate, can't happen through the normal transaction path. You need a separate settlement flow that moves money through an intermediary account, the platform's own operating account, creating an auditable two-hop path instead of a direct cross-tenant transfer. The two-hop pattern is slower, but it creates an explicit record of every dollar that crosses a tenant boundary.

Compliance Boundaries

A platform with 50 tenants might have 50 different compliance profiles. Tenant A is a licensed money transmitter in 30 states. Tenant B offers savings products under its bank partner's charter. Tenant C is a crypto exchange operating under a BitLicense.

Same platform, same codebase, radically different regulatory obligations.

The engineering implication is that compliance rules can't be global. Transaction monitoring thresholds, suspicious activity report filing obligations, customer due diligence requirements, and data retention periods all vary by tenant based on their regulatory status.

If your platform files SARs, the filing obligation and threshold may differ between a money transmitter tenant and a prepaid card tenant. A single global threshold means either over-reporting for some tenants, which wastes compliance resources, or under-reporting for others, which is a regulatory violation.

So you need per-tenant compliance configurations, separate from the application configuration. Each tenant gets a compliance profile specifying which rules apply, what thresholds trigger alerts, and which regulatory bodies receive reports.

The compliance engine reads the profile at runtime, not a global config file. Changes to one tenant's rules don't affect another's.

This creates a testing burden. You need to verify that tenant A's compliance rules don't accidentally apply to tenant B's transactions. And you need to verify that updates to the compliance engine, adding a new rule type or adjusting a threshold format, work correctly across all active compliance profiles, not just the one you tested against.

Key Management Per Tenant

Encryption keys, API credentials, and webhook secrets must be tenant-scoped. If your platform uses a single encryption key for all tenants' data at rest, compromising that key exposes every tenant simultaneously. If your webhook signing secret is shared, a compromised tenant can forge webhook payloads that appear to come from any other tenant.

You can't store hundreds of raw encryption keys, and you can't rotate them independently without a hierarchy. So you use envelope encryption, where a master key in a hardware security module or cloud KMS encrypts per-tenant data encryption keys. Each tenant's data is encrypted with its own key, and that key is itself encrypted with the master.

Rotating a tenant's key means re-encrypting their data with a new per-tenant key. Other tenants are unaffected.

API keys and webhook secrets follow the same principle. Each tenant gets its own set, stored in a secrets manager with access policies scoped to that tenant's service accounts. A developer working on tenant A's integration should not have access to tenant B's API keys, even in staging environments.

The cost is operational complexity. With 200 tenants, you're managing 200 sets of encryption keys, 200 API key pairs, and 200 webhook secrets, and key rotation becomes a fleet operation.

Your incident response playbook needs tenant-scoped containment. One tenant's breach shouldn't trigger a rotation of every other tenant's keys, but monitoring for compromise now requires per-tenant alerting rather than a single global tripwire.

Testing Isolation

Building isolation is one problem, but proving it holds under production conditions is a different one entirely. Code review catches intent, but not the edge cases.

Property-based tests are the most effective tool here. Instead of writing specific test cases, you define invariants and let the test framework generate random inputs.

For ledger isolation, the invariant is that any randomly generated transaction attempt where the debit and credit accounts belong to different tenants must fail. The framework generates thousands of these attempts, including edge cases involving reversals, adjustments, partial settlements, and batch operations.

Reconciliation is the other enforcement mechanism. A continuous reconciliation process compares each tenant's sub-ledger balance against their portion of the pooled bank balance. Any discrepancy, even one cent, triggers an alert.

This catches drift that tests can't, because it operates on live data with real timing conditions, race conditions in concurrent writes, partial failures during batch processing, and the accumulated rounding differences that emerge over millions of transactions.

Property-based tests verify that your isolation constraints hold under synthetic load, while reconciliation verifies they hold under production conditions. If you're doing only one, you're trusting that your test environment perfectly models production. I've seen enough fintech postmortems to know it doesn't.

When the Bank Is the Platform

Column and Increase represent a different architectural approach. Instead of a fintech platform sitting between tenants and a bank, the bank itself is the platform. Column holds a national bank charter, while Increase connects directly to the Federal Reserve.

When the bank is the platform, fund isolation is native. Each tenant's accounts are real bank accounts, not sub-ledger entries in an FBO, and the same systems that satisfy OCC examiners and FDIC auditors handle compliance boundaries.

Cross-tenant fund movement requires an actual interbank or intrabank transfer, complete with the audit trail that banking regulations already mandate.

This doesn't eliminate all five layers of isolation. Data isolation, ledger isolation, and key management are still engineering problems the platform must solve. But fund segregation and compliance boundaries are significantly simpler when the banking system enforces them natively rather than relying on the platform's sub-ledger accuracy.

The tradeoff is that this model requires a bank charter or a deep direct integration, which limits who can build it. Most fintech platforms don't have a charter and work through partner banks via middleware. For those platforms, the five-layer isolation framework applies in full.

The question for each layer is whether isolation is enforced by architecture, by policy, or by accounting. Architecture means the system prevents violations before they happen, policy relies on people to prevent them, and accounting discovers them after the fact.

Synapse had accounting-level isolation. The sub-ledger tracked which tenant owned which dollars, but nothing in the system architecture prevented those records from drifting. When they drifted, the gap compounded until $85 million in customer funds became a court-supervised forensic accounting exercise.

So you push every layer as close to architectural enforcement as the operational budget allows, with schema constraints that reject cross-tenant transactions, dedicated bank accounts that segregate funds at the banking layer, per-tenant compliance profiles enforced at runtime, and tenant-scoped encryption keys that limit blast radius by design.

Where you can't reach architectural enforcement, reconciliation is the fallback. But reconciliation only discovers gaps without preventing them, and the size of the gap depends entirely on how long it took you to notice.

Sources

Alex Kugell
Alex KugellAI/ML Engineer, Fintech Infrastructure

Writes Ledger Drift. Engineer building AI systems and financial infrastructure. Open source contributor to x402, ACK, and MPP – agentic payment protocols.

Frequently Asked Questions

Why is multi-tenancy harder in fintech than in SaaS?
SaaS multi-tenancy protects data visibility. Fintech multi-tenancy must also segregate funds across physical bank accounts, enforce per-tenant compliance obligations, isolate ledger entries so cross-tenant references are structurally impossible, and manage separate encryption keys per tenant. Each layer has its own failure mode and regulatory requirement.
How do FBO accounts handle fund segregation for multiple tenants?
An FBO (For Benefit Of) account pools deposits from multiple fintech tenants into a single bank account with sub-ledger entries tracking ownership. When a platform fails, a court-appointed trustee must reconstruct which dollars belong to which tenant using those sub-ledger records. Synapse's collapse showed that when sub-ledger accuracy drifts, $85 million in customer funds becomes unattributable.
What are the five layers of fintech multi-tenant isolation?
Data isolation (RLS, schema separation), fund segregation (FBO structure, per-tenant accounts), ledger isolation (preventing cross-tenant references at the schema level), compliance boundaries (per-tenant regulatory obligations), and key management (tenant-scoped encryption and API credentials). Most SaaS platforms implement only the first layer.
How do you test that money can't leak between tenants?
Property-based tests generate random cross-tenant operations and assert every one fails. Reconciliation runs continuously, comparing each tenant's sub-ledger balance against the pooled bank balance. Any discrepancy, even a single cent, triggers an alert. The Synapse case demonstrated that retroactive reconciliation after drift has already occurred costs months and may never fully resolve.

Built by Trio, a fintech-native engineering partner helping teams build the next generation of financial technology and infrastructure.

Subscribe to Ledger Drift for high-signal insights into how modern fintech is built, from systems to code to teams.

Keep reading

analysisVisa and Mastercard Are Building Different Agent Commerce ArchitecturesBoth networks said agentic commerce is small, then described incompatible plans for when it isn't.
ai & ml12% of Businesses Can Revoke an AI Agent's AccessThe fraud rate fell, but the controls gap for AI agents with spending authority is worse than the numbers suggest.
engineeringThe Evidence Gap in Agent PaymentsThe payment receipt proves money moved, but nothing in the transaction chain proves whether the agent was supposed to move it.
View more ›