Multi-Tenant SaaS Architecture: Models, RLS & Isolation
Multi-tenant SaaS architecture decides whether your product grows from 10 to 10,000 organizations on one deployment or stalls on database migrations and noisy-neighbor incidents. Our engineering guide to Silo, Bridge, and Pool models, PostgreSQL RLS, and hybrid routing.

On this page

Multi-tenant SaaS architecture is a design in which one deployment of an application serves many customer organizations (tenants) while keeping their data, performance, and encryption isolated. How you draw that boundary decides whether your product grows from ten customers to ten thousand on one deployment pipeline, or stalls on schema migration locks and noisy-neighbor outages. Every multi-tenant architecture balances two opposing forces: pooling compute and storage so gross margins stay healthy, and guaranteeing that no customer can read, change, or slow down another organization's data.
This guide covers how we isolate and scale tenants in production at Idealogic. It compares the Silo, Bridge, and Pool database models, then shows defense-in-depth isolation with PostgreSQL Row-Level Security (RLS) against OWASP BOLA leaks. After that come noisy-neighbor throttling, KMS envelope encryption, and the move to a hybrid tiered architecture for enterprise buyers. If you'd rather have a short conceptual definition than an implementation guide, start with our multi-tenant SaaS explainer, or read our commercial roadmap on how to build a SaaS.
The short version
- Three database tenancy models trade isolation for operational speed: Silo (database-per-tenant), Bridge (schema-per-tenant), and Pool (shared tables with
tenant_idand PostgreSQL RLS) sit on a cost-versus-isolation spectrum. - Pooled tables with PostgreSQL RLS are the right default for most B2B SaaS. Schema migrations run once against a single target, inactive trials cost nothing in idle databases, and the engine itself protects you from a missing
WHEREclause. - Block OWASP API1:2023 (BOLA) with four layers of defense-in-depth: Validate the tenant claim from the signed JWT at the edge, enforce per-tenant Redis rate limits, bind
app.current_tenant_idin ORM transaction middleware, and enforce RLS policies in Postgres. - Schema-per-tenant stops scaling well before most teams expect. Running DDL migrations across hundreds or thousands of Postgres schemas bloats catalog caches (
pg_class/pg_attribute) and turns a deploy that took seconds into a long maintenance window. - Contain noisy neighbors at the queue and query layers: Combine composite
(tenant_id, ...)B-tree indexes, strict statement timeouts, Redis token-bucket API throttling, and tenant-partitioned worker queues. - Reach enterprise buyers with hybrid tenancy and BYOK: Keep SMB and mid-market accounts in your pooled cluster. Route $50k+/year regulated enterprise contracts to dedicated database silos, or encrypt their records with per-tenant KMS keys.
Multi-tenant architecture models: Silo, Bridge, and Pool
Multi-tenancy isn't all or nothing. NIST SP 800-145 supplies the underlying definition: it treats multi-tenancy as part of cloud resource pooling. The AWS Well-Architected SaaS Lens describes the silo, pool, and bridge models built on top of it. Even when every customer shares a stateless fleet of Node.js or Go application containers, your persistence layer usually follows one of three patterns: Pool (shared database, shared schema), Bridge (shared database, separate schema per tenant), or Silo (dedicated database instance per tenant). One naming caveat: AWS uses "bridge" more broadly, for any mix of siloed and pooled layers. In this guide it means schema-per-tenant.
1. The Pool model (Shared database, shared schema + tenant_id)
In a pooled database architecture, every tenant's rows reside in the same tables (users, projects, invoices, audit_logs), discriminated by an indexed tenant_id UUID NOT NULL column on every tenant-scoped table.
- How it works: A single connection pool (via PgBouncer or RDS Proxy) serves all requests. Isolation is enforced both in your data-access layer and inside the database engine via PostgreSQL Row Security Policies.
- Where it shines: A new trial or SMB tenant costs almost nothing, a schema migration runs once, and global maintenance needs no federation scripts.
- Where it hurts: An unindexed query by one heavy tenant can saturate CPU or IOPS if you omit statement timeouts, read-replica routing for customer-facing embedded analytics (see Metabase vs Superset), and composite indexes, and single-tenant backup recovery requires selective row extraction.
2. The Bridge model (Shared database, schema-per-tenant)
In a schema-per-tenant (bridge) architecture, all tenants share one PostgreSQL cluster, but onboarding an organization triggers CREATE SCHEMA tenant_8f92a; and clones your table structure into that namespace.
- How it works: Middleware sets
SET search_path TO tenant_8f92a, public;before executing queries. - Why teams regret it at scale: Schema-per-tenant is tidy with a few dozen customers. With hundreds or thousands it turns into an operational bottleneck, and there's no universal threshold: it depends on hardware and how often relations change. Every table and index in every schema creates metadata entries in PostgreSQL's system catalogs (
pg_class,pg_attribute,pg_index). With 60 tables across 1,000 tenants, one Postgres instance tracks 60,000 tables and, assuming about 2.5 indexes per table, 150,000 indexes. Catalog cache hit rates drop andpg_dumpslows down. Every CI/CD deploy has to loop DDL across 1,000 schemas, sequentially or in batches, and a lock timeout can leave the fleet half migrated.
3. The Silo model (Database-per-tenant)
In a siloed database architecture, every tenant receives a physically separate database instance provisioned via Terraform or an automated control-plane API.
- How it works: A central routing directory maps
tenant_idto its dedicated database host and region, and stateless application containers pick the target connection pool at request time. - You get no noisy-neighbor contention at the database layer, simple regional data residency (a German bank pinned to
eu-central-1while a US hospital stays inus-east-1), single-tenant snapshot recovery, and an easier enterprise compliance review. - The price is a high baseline cloud bill across hundreds of instances, harder fleet-wide schema rollouts, and no direct SQL joins across tenants.
Comprehensive trade-off matrix: Pool vs. Bridge vs. Silo
Defense-in-depth: Preventing OWASP BOLA leaks with PostgreSQL RLS
Broken Object Level Authorization (BOLA) is an API flaw where a user can read or change another user's object by changing an ID. It tops the OWASP API Security list as API1:2023, and in a multi-tenant SaaS architecture it's the most dangerous vulnerability you can ship. The classic exploit: a user in Tenant A swaps the invoice ID in an API call (GET /api/v1/invoices/inv_99482) for one that belongs to Tenant B. If the endpoint runs db.invoices.findUnique({ where: { id: params.id } }) without scoping tenantId, the server leaks Tenant B's financial record.
Nobody remembers the tenant filter on every one of hundreds of API routes. Sooner or later someone forgets. In our SaaS development practice, we enforce four layers of defense-in-depth so the database engine refuses to return cross-tenant rows even when application code omits a filter.
Tenant isolation must be an invariant of the storage engine, not a habit of remembering to type a WHERE clause. When PostgreSQL Row-Level Security is bound to the session transaction, a buggy query returns zero rows instead of triggering a reportable security breach.
Layer 1: Never trust client headers for tenant identity
Never read X-Tenant-ID from an unverified HTTP request header or query parameter. Derive the active tenant_id only from the signed session token (JWT) or the server-side session store, after verifying active organization membership. Your control plane may mint org_id claims through embedded React Edge sessions or through an OIDC broker (we compare both in our Clerk vs Auth0 guide). Either way, verify that signed workspace claim before opening a database transaction.
Layer 2, the per-tenant rate limit at the API gateway, is covered in the noisy-neighbor section below.
Layer 3: ORM transaction context injection (SET LOCAL)
With a connection pooler like PgBouncer in transaction pooling mode, many tenants share the same underlying PostgreSQL connections across requests. A session-level SET app.current_tenant_id can bleed into the next request that checks out the same connection. Use SET LOCAL inside a transaction (BEGIN ... COMMIT) instead, so PostgreSQL resets the parameter when the transaction ends. Our Drizzle vs Prisma comparison shows how TypeScript ORMs handle this with schema-level pgPolicy definitions versus $extends transaction wrappers.
In Node.js we wrap every tenant-scoped request in one helper. It checks that tenantId is a well-formed UUID before touching the database, then checks out a pooled client and opens a transaction with BEGIN. Inside that transaction it calls set_config('app.current_tenant_id', ..., true) with the tenant ID as a bound parameter. The third argument, true, makes the setting transaction-local, the function form of SET LOCAL. The helper runs the handler, commits, rolls back on any error, and always releases the client in finally. PgBouncer transaction pooling stays safe as long as every request goes through that transaction. You can also keep the tenant and user IDs in an AsyncLocalStorage store for the rest of the request.
Layer 4: PostgreSQL Row-Level Security (FORCE ROW LEVEL SECURITY)
In your database migrations, enable Row-Level Security on every tenant-scoped table using PostgreSQL's CREATE POLICY and FORCE ROW LEVEL SECURITY commands. RLS has shipped since PostgreSQL 9.5, so none of this needs a recent release.
Two details are commonly missed the first time a team configures RLS:
- The table owner bypass: By default, the role that created the table (often the
postgresorapp_ownermigration role) bypasses RLS policies unless you runALTER TABLE <name> FORCE ROW LEVEL SECURITY;. Even withFORCE, superusers and roles with theBYPASSRLSattribute still skip every policy. So run migrations with a privilegedmigratorrole, and run your Node.js application as a non-superuserapp_runtimerole that has neither. - Safe fallback on missing context: Pass
trueas the second argument tocurrent_setting('app.current_tenant_id', true). PostgreSQL then returnsNULLinstead of raising an "unrecognized configuration parameter" error when a background health check queries the table without setting the variable. After aSET LOCALtransaction ends, the custom setting can also read as an empty string, which is why you wrap it inNULLIF(..., '')::uuid. An unset variable then evaluates toNULL, and the policy admits zero rows.
On each table, the policy is a permissive one for the app_runtime role that compares tenant_id to the current tenant setting in both USING and WITH CHECK. We pair it with a second one, declared AS RESTRICTIVE with the same expressions. Today it adds no extra check. It's a guard: if someone later adds another permissive policy, the restrictive one stops it from widening access beyond the current tenant.
Hardening: Indexing for RLS performance (tenant_id leading composite indexes)
RLS has a reputation for slowing queries down. It mostly doesn't, if you do two things. PostgreSQL applies the policy expression as an extra restriction on every query, so index tenant_id and wrap current_setting in a scalar subquery, as the policies above do, so the planner evaluates it once per statement. One caveat: policy conditions run before your own predicates unless those use leakproof functions, which can stop some filters from using an index.
In a pooled multi-tenant database, almost every B-tree index should be a composite index with tenant_id as the leading column:
- Instead of
CREATE INDEX idx_invoices_status ON invoices (status, created_at DESC); - Write:
CREATE INDEX CONCURRENTLY idx_invoices_tenant_status ON invoices (tenant_id, status, created_at DESC);
Putting tenant_id first narrows the B-tree scan to that one organization's slice of pages. Even on a table with hundreds of millions of rows, a single tenant's dashboard query then typically returns in single-digit milliseconds on a warm cache.
Hardening: Relational integrity via composite foreign keys ((tenant_id, id))
RLS doesn't catch one cross-tenant corruption bug. During batch writes or background jobs that run with elevated privileges, code can insert a child record (such as an invoice_line_item) that carries a valid tenant_id for Tenant A but points its invoice_id foreign key at an invoice owned by Tenant B.
To make cross-tenant references impossible inside PostgreSQL, define a unique constraint on (tenant_id, id) on every parent table and enforce composite foreign keys on every child table:
With composite foreign keys in place, PostgreSQL guarantees that no child record points across a tenant boundary, even if a background migration script runs with RLS bypassed. There's a second payoff later. When a pooled table grows into the hundreds of millions of rows, having tenant_id in every primary and unique key lets you partition it with declarative hash partitioning (PARTITION BY HASH (tenant_id), available since PostgreSQL 11) across 16 or 32 physical sub-tables without rewriting application SQL.
Noisy neighbors in multi-tenant SaaS: Rate limiting, queues, and caching
Data isolation protects privacy. Performance isolation protects availability. The AWS SaaS Lens noisy-neighbor guidance treats this as a core design concern for any multi-tenant SaaS: one tenant's load shouldn't degrade the service for everyone else, and when it does, your service-level agreements (SLAs) are the first thing to break.
Three guardrails keep one customer's runaway script or bulk import from degrading p99 latency for everyone else.
1. Tiered Redis token-bucket rate limiting at the API gateway
Don't use a single global rate limit per IP address. Fifty employees behind an enterprise customer's corporate NAT share one public IP, while a malicious script can rotate proxies. Key your rate limiter in Redis by (tenant_id, plan_tier) alongside endpoint weight:
- Starter tier: 120 requests/minute burst, 2 concurrent heavy report exports.
- Growth tier: 600 requests/minute burst, 10 concurrent exports.
- Enterprise tier: 3,000 requests/minute burst, dedicated worker pool.
When a tenant exceeds its quota, return HTTP 429 Too Many Requests with a Retry-After header before the request touches your PostgreSQL connection pool.
2. Fair queuing and concurrency caps in background workers
Say Tenant A queues 50,000 webhook deliveries or PDF jobs at 10:00 AM, and two minutes later Tenant B queues one password-reset job. A naive FIFO queue makes Tenant B wait behind the whole backlog, which can mean tens of minutes for a password reset. We solve this across our Node.js and TypeScript platforms using three patterns:
- Priority lane separation: Route interactive jobs (
high_priority_interactive) to a dedicated worker pool separate from bulk batch operations (bulk_background). - Per-tenant active job limits: With BullMQ Pro groups, each job joins its tenant's group (
group: { id: tenantId }) and the worker caps every group (group: { concurrency: 5 }), so no tenant runs more than 5 jobs at once across a 50-worker fleet. Open-source BullMQ has no per-group concurrency, so there you'd use per-tenant queues or a Redis semaphore. - Chunked cursor pagination: Break large batch jobs into self-requeueing pages of 250 records so workers yield between organizations. Outbound transactional email queues get the same tenant-scoped idempotency and bounce suppression ledgers (see Resend vs SendGrid).
3. Tenant-namespaced caching and search indexes
Cross-tenant leaks also happen outside the SQL database, in Redis caches, S3 buckets, and vector stores:
- Redis cache keys: Build every key through one wrapper (
t:{tenantId}:{domain}:{id}) so you can validate ownership and flush a tenant's cache without scanning the full keyspace. - S3 object storage: Prefix every S3 object key with
tenants/{tenant_id}/uploads/{uuid}and generate short-lived presigned URLs only after verifying the caller's sessiontenant_id. - AI vector stores and RAG: When building multi-tenant retrieval-augmented generation via AI software development, store embeddings directly in PostgreSQL using
pgvectorso similarity searches obey Row-Level Security, or enforce mandatory per-tenant namespaces. One caveat: with HNSW or IVFFlat indexes the tenant filter is applied after the approximate scan, so a small tenant can get lower recall or fewer rows than theLIMIT. Benchmark recall, and use partial or partitioned indexes where it drops.
Enterprise security: Per-tenant encryption (BYOK) and audit compliance
Per-tenant encryption means each tenant's sensitive fields are encrypted with a key unique to that tenant. With Bring Your Own Key (BYOK), the customer controls that key. As your B2B SaaS moves upmarket, multi-tenant cloud security reviews against ISO/IEC 27001 and SOC 2 will ask how credentials and PII are encrypted at rest, and whether the customer can revoke their own key when the contract ends.
You don't need a separate database instance per tenant for cryptographic isolation. Implement KMS envelope encryption at the column level inside your pooled database:
- Key hierarchy: Provision a dedicated KMS key (formerly called a Customer Master Key, or CMK) with its own alias in AWS KMS for each enterprise tenant (or link to an external KMS ARN owned by the customer's AWS account for true BYOK).
- Data Encryption Key (DEK) generation: Call
GenerateDataKeyin KMS to produce a unique 256-bit AES data key and store its KMS-encrypted ciphertext (encrypted_dek) on thetenantstable. - Application-layer field encryption: When writing sensitive fields (such as third-party API integration secrets, tax IDs, or clinical notes), decrypt the tenant's DEK in memory (cached with a 5-minute TTL), encrypt the payload using AES-256-GCM with an authenticated tag bound to
tenant_id, and write the ciphertext to PostgreSQL. - Cryptographic erasure: If Tenant A revokes their KMS key, their data typically becomes unreadable within minutes, bounded by KMS propagation and your DEK cache TTL. No other customer's rows are affected. A disabled key can be re-enabled; a deleted one can't.
Hybrid multi-tenant architecture: Scaling from Pool to Silo without two codebases
Many B2B SaaS products run hybrid tiered tenancy, often combined with cell-based deployment. The large majority of customers live in low-cost pooled clusters, a small top slice of enterprise contracts (15 of 500 in the cost model below) live in dedicated database silos, and everything runs the same container image:
- The Tenant Routing Directory: Maintain a control-plane lookup table (
tenant_routing, cached in memory with a 60-second TTL) mapping everytenant_idto itsdb_cluster_url,redis_namespace, andisolation_mode(pooledvssilo). - Dynamic Connection Pool Resolution: Pass a
TenantContextresolved by request middleware rather than importing a hardcodeddbsingleton. A $99/month self-serve customer resolves topool-us-east-1with RLS, while a $120,000/year bank resolves tosilo-bankcorp-eu-central-1running the identical schema. - Unified Migration Pipeline: During CI/CD deploys, the migration runner reads active clusters from
tenant_routing(for example, 2 regional pooled clusters + 15 enterprise silos = 17 endpoints) and applies migrations to all of them in parallel. - Live Tenant Promotion: When a mid-market tenant upgrades to Enterprise, a background worker streams their rows (
WHERE tenant_id = $1) into a newly provisioned silo, verifies checksums, flips theirdb_cluster_urlpointer intenant_routing, and purges the old pooled rows.
The hybrid model ties directly into your SaaS pricing models and Stripe Billing entitlements. Physical database isolation becomes a paid enterprise add-on, and free trials stop carrying its cost.
Multi-tenant TCO over 36 months: pool vs bridge vs silo
What does database-per-tenant cost next to pooled Postgres RLS in a multi-tenant SaaS architecture? We modeled 500 B2B tenants: 485 mid-market accounts plus 15 strict-compliance enterprise accounts under SOC 2, HIPAA, or PCI DSS v4.0.1, with 25,000 MAUs and 900 GB of state. The model shows how idle silos and per-connection SSO fees erode margin. An owned hybrid cell architecture (a PG17 FORCE RLS pool for 485 tenants, 15 isolated CNPG shards, a tenant-aware PgBouncer router, Keycloak with OpenFGA, and per-tenant AWS KMS keys) gives the enterprise accounts physical isolation while the rest stay at pooled cost.
The infrastructure figures are Idealogic modelling assumptions as of November 2026, not vendor list prices, so check each vendor's pricing page before relying on them. We compare the storage, SSO, RBAC, and billing trade-offs in PlanetScale vs Neon, WorkOS vs Auth0, OpenFGA vs SpiceDB, and Paddle vs Lemon Squeezy:
Under these assumptions, building the owned hybrid cell stack in CEE saves $132,000 vs Aurora + Cognito (6.67-month payback: $30,000 extra CapEx / $4,500/mo delta), $162,900 vs Neon Scale + WorkOS (5.83-month payback at $5,400/mo), and $437,400 vs RDS-per-tenant + Auth0 (2.09-month payback at $12,900/mo). Year-2+ spend drops to $39,600/yr.
Below are Idealogic's 2026 build tiers comparing senior CEE SaaS development, custom software development, and software development consulting squads at our blended senior rate of $75/hr against a US agency rate we assume at $165/hr (2.2x). Both are billing rates, not wages. For wage context, Eurostat (lc_lci_lev) reports an EU whole-economy average employer labour cost of EUR 34.9 per hour in 2025, and the US occupation baseline is Software Developers (15-1252.00).
Zero-downtime schema migrations and tenant-aware observability
Zero-downtime migrations are schema changes applied without blocking live tenant queries. Once your multi-tenant SaaS serves live traffic, locking a 50-million-row pooled table during a deploy stalls every tenant's requests at once. Four rules on every database migration keep you clear of downtime and technical debt:
- Explicit lock timeouts: Prepend every migration with
SET lock_timeout = '2s'; SET statement_timeout = '30s';so a migration waiting on a lock aborts cleanly and retries instead of blocking active tenant reads. - Expand-and-contract pattern: Never rename or drop a column in one deploy. Add the nullable column first, deploy dual-writing code, backfill rows in throttled batches, and drop the old column in a later release.
- Concurrent index builds: Run
CREATE INDEX CONCURRENTLYso index creation doesn't block writes from active tenants. It can't run inside a transaction block, and a failed build leaves an invalid index you have to drop. - Tenant-tagged OpenTelemetry: Inject
tenant.idandtenant.tierinto every OpenTelemetry span and SQL query comment, and route the high-cardinalitytenant.idattribute through an OpenTelemetry tail-sampling collector into ClickHouse so it doesn't trigger custom-metric cardinality surcharges (see SigNoz vs Datadog). The AWS SaaS Lens cost optimization pillar makes the same point about measuring consumption per tenant. Without compute and AI token usage per tenant, you can't tell which accounts are eating your gross margin.
Getting the tenant boundary right is a worthwhile early investment, and it's much cheaper at the idea-to-product stage than in a re-architecture of a live product. If you're budgeting for it, our custom software development cost guide has the numbers. Our custom software development practice designs and ships production multi-tenant SaaS architecture.

CTO and Co-founder at Idealogic. Directing engineering, systems architecture, security, and full-stack delivery across web, mobile, and blockchain.
Frequently asked questions
Choose pooled tables with PostgreSQL Row-Level Security (RLS) once you expect more than a few hundred tenants or ship schema migrations often. Schema-per-tenant, often called the bridge model, makes your migration runner execute DDL across every namespace, which slows deploys and bloats the PostgreSQL catalog (`pg_class`). There's no universal limit. The pain usually starts somewhere between the low hundreds and a few thousand schemas, depending on hardware and how often relations change.
Enforce quotas at three layers. At the API gateway, run token-bucket rate limiting keyed by `tenant_id` in Redis. In the database, set statement timeouts (`statement_timeout = '5s'`) and use composite `(tenant_id, created_at)` indexes. In background workers, cap concurrent jobs per organization with BullMQ Pro groups or per-tenant SQS queues, so one bulk import can't stall other tenants.
In envelope encryption, each tenant gets its own KMS key (formerly called a Customer Master Key) in AWS KMS or Google Cloud KMS, and that key generates a tenant Data Encryption Key (DEK). The application encrypts sensitive columns such as OAuth tokens, tax IDs, or clinical notes with that tenant's DEK before writing them to the shared PostgreSQL table. Disable one tenant's key and only that tenant's data becomes unreadable, typically within minutes.
In a pooled database, use the expand-and-contract pattern: add nullable columns or new tables first, deploy dual-writing application code, backfill old rows in throttled tenant batches, then drop the legacy columns in a later release. Build indexes with `CREATE INDEX CONCURRENTLY` (outside a transaction block) and set a short `lock_timeout` such as 2 seconds, so a migration waiting on a lock never queues production tenant queries.
A hybrid multi-tenant architecture keeps a small control-plane routing table, cached in Redis at the API edge, that maps each `tenant_id` to its `shard_id` and connection string. Self-serve and mid-market tenants resolve to the default pooled cluster. Enterprise tenants who pay for physical isolation resolve to dedicated database instances. Both run the same application code.
No. Neither SOC 2 Type II nor HIPAA mandates a physical database per tenant. Auditors look for demonstrable logical isolation, encryption at rest and in transit, strict access controls, and immutable audit logging. A pooled PostgreSQL database with Row-Level Security (`FORCE ROW LEVEL SECURITY`), tenant-scoped encryption keys, and automated BOLA tests can satisfy both when the controls are designed, documented, and evidenced. A customer contract may still demand stricter isolation.
Never cache objects by resource ID alone. Prefix every Redis key with the verified tenant identifier (`t:{tenantId}:{domain}:{id}`) and check that the deserialized payload's `tenantId` matches the caller's session context. For AI vector search, store embeddings in PostgreSQL with `pgvector` so similarity queries obey Row-Level Security, or enforce a mandatory per-tenant namespace filter.
Pooled tenants share compute and storage, so dividing your AWS bill equally tells you nothing. Use activity-based telemetry instead. Emit OpenTelemetry metrics that tag database execution milliseconds, background worker seconds, S3 storage bytes, and AI token consumption with `tenant_id`, then multiply each tenant's share by your monthly cloud line items. Unprofitable accounts show up early.
These are Idealogic modelling assumptions as of November 2026, not vendor list prices. Across 500 B2B tenants (485 mid-market accounts plus 15 strict-compliance enterprise accounts, 25,000 monthly active users, and 900 GB total state), an RDS-per-tenant silo fleet paired with Auth0 Enterprise totals $601,200 over 36 months with CEE SRE ops ($700,560 US), because of idle instance floors and SAML connection fees. Neon Scale project-per-tenant with WorkOS totals $326,700 CEE ($381,780 US), and AWS Aurora shared schema with Cognito and Verified Permissions totals $295,800 CEE ($365,640 US). An owned hybrid cell architecture (PostgreSQL 17 FORCE RLS pool for 485 tenants, dedicated CloudNativePG shards for 15 enterprise accounts, tenant-aware PgBouncer routing, Keycloak plus OpenFGA, and per-tenant AWS KMS keys) totals $163,800 CEE ($269,640 US). In this model that saves $132,000 to $437,400 in CEE, with a 2.09 to 6.67 month net CapEx payback.
At our senior Central and Eastern European SaaS engineering rate of $75 per hour versus an assumed $165 per hour for US agencies (a 2.2x spread), a Tier 1 Pooled PostgreSQL 17 FORCE RLS and BOLA Hardening Core (320 to 480 hours) costs $24,000 to $36,000 in CEE versus $52,800 to $79,200 in the US. A Tier 2 Hybrid Cell Router with CloudNativePG VIP silos and KMS BYOK encryption (520 to 760 hours) runs $39,000 to $57,000 in CEE versus $85,800 to $125,400 in the US. Tier 3 Multi-Region Data-Residency SaaS platforms (960 to 1,440 hours) span $72,000 to $108,000 in CEE versus $158,400 to $237,600 in the US, and Tier 4 Zero-Downtime Legacy Re-Architectures (1,600 to 2,400 hours) run $120,000 to $180,000 in CEE versus $264,000 to $396,000 in the US.
More from the journal

Paddle vs Lemon Squeezy in 2026: MoR Fees, Stripe & TCO
Paddle vs Lemon Squeezy and Stripe Managed Payments in 2026, compared on fees and 36-month TCO: stacked international and subscription surcharges, merchant of record liability, B2B Net-30 invoicing, PG17 entitlement guards, and the math for a $6M/yr SaaS.

Finix vs Stripe Connect in 2026: PayFac, IC++ & Split TCO
Engineering and 36-month TCO teardown of Finix vs Stripe Connect vs Payrix and Adyen for Platforms in 2026: PayFac-as-a-Service, Interchange++ spreads, PostgreSQL 17 split sub-ledgers, and $108M GMV math.

Anrok vs Avalara in 2026: SaaS Sales Tax, VAT & Stripe Tax
Engineering and 36-month TCO teardown of Anrok vs Avalara vs Stripe Tax in 2026: SaaS and AI token taxability, HRIS physical nexus, EU VIES reverse charge, PostgreSQL tax ledgers, and $18M ARR math.