One Postgres, a database per user, or both?
Choosing between one Postgres database, a Turso database per user, or both comes down to where data must live, who owns it, and how many features need to read across users.
Topics Architecture & design
Tenant isolation, noisy neighbours, per-customer resources.
Search within Multi-tenancy, or combine it with other topics →
Choosing between one Postgres database, a Turso database per user, or both comes down to where data must live, who owns it, and how many features need to read across users.
A KVM flaw on AMD hosts with nested virtualization let root inside a guest read and write physical host memory.
Aderant replaced a 15-minute batch pipeline for its Stridyn legal analytics tool with an event-driven medallion architecture (bronze, silver, gold) built on Apache Iceberg tables in S3.
eve 1.0, Vercel's open-source framework for production agents, is now generally available with a customizable harness (model, tools, subagents, approvals), durable execution via the Workflow SDK, multiplayer sessions across Slack and other channels, multi-tenant credentials and policies, cross-session memory, and OpenTelemetry-based tracing with per-destination redaction.
Ideavo, a bring-your-own-key AI app builder, has its agent provision a separate Neon Postgres project for every generated app through the Neon API.
Neon and Turso both support a database per agent but differ in the unit: Neon gives each agent a Postgres project with its own autoscaling compute that suspends after 5 minutes idle and is billed by CU-hour, while Turso treats each SQLite-compatible database as a file managed by a shared server, billed by rows read/written and storage with unlimited databases on paid plans.
Google is donating gVisor to the CNCF under maintainer-led governance, and Modal, which launches over 40 million gVisor containers a day for GPU inference, training, and AI sandboxes, is joining as a maintainer. gVisor's Go-based Sentry application kernel implements the Linux syscall interface and is itself confined by namespaces, cgroups and seccomp, giving tenant isolation without hardware virtualization: about 25 ms boot and 12 MB overhead.
Evil Martians moved Uscreen's local, NPM-installed MCP server into Uscreen's Rails monolith, so creators connect an AI client by pasting a URL, signing in via OAuth, and approving access.
An attacker partially escaped filesystem isolation in Railway's multi-tenant build infrastructure and stole a build credential.
Novus Hi-Tech and AWS built FleetGPT, a multi-agent system on Strands Agents that replaces fixed fleet dashboards with natural-language querying and automates driver safety interventions.
Cognizant's OrderServ food-ordering platform moved from one dedicated ECS Fargate cluster per brand (21 microservices each) to a shared multi-tenant cluster.
Kylon, a shared workspace where teams and AI agents build internal apps like CRMs and invoice trackers, maps its product directly onto Neon resources: one Neon project per workspace, one database per app, and one branch per draft.
Sauna, a proactive AI work assistant, gives every session, agent and connected inbox or calendar its own Turso database, creating about 90,000 databases a day and over 2 million in total.
Turso Cloud's paid plans no longer meter active databases, so a database costs only its storage while idle.
OpenAI's Habitat storage platform went from one shared Azure Cosmos DB container, to per-use-case dedicated containers, and back to a shared multi-tenant container.
An attacker seeking AI provider API keys for model distillation escalated privileges through Railway's build infrastructure, then used CI credentials to decrypt a subset of envelope-encrypted environment variables.
Netflix added a single-tenant mode to Titus, its Kubernetes-based multi-tenant container platform, giving selected tasks a dedicated, right-sized EC2 instance while keeping the same API, deployment path and platform-managed hosts.
Spindle is an open-source, Tinker-compatible post-training server that runs in a user's Modal workspace and bills for GPU time instead of tokens, so teams can customize models and features.
Modal benchmarked NVIDIA's Arm-based Vera CPU for its multi-tenant Sandbox workloads and found up to 2x task throughput versus a comparable Intel Granite Rapids x86 host under heavy concurrent load.
Shared schema with row-level security, schema per tenant, and database per tenant trade off isolation strength against operational cost.
DBOS's September 2026 releases add partitioned fair queues that combine per-tenant limits with global and per-worker concurrency caps in a single queue, and new major versions (Python v3.0, TypeScript v5.0, Go v1.4, Java v1.1) that move workflow inputs and outputs into separate tables for better performance at scale.
Skydive's specialized AI coworker agents provision their own isolated Neon Postgres backends mid-task when they need durable state beyond an ephemeral sandbox.
When a shard key like tenant_id stops matching reality because a few whale tenants dominate load or cross-tenant queries appear, Neki (PlanetScale's sharded Postgres from the Vitess maintainers) offers three escalating fixes: vertically scale the hot shard with its own configuration profile, isolate the whale by narrowing hashed key ranges in the declarative data topology, or reshard specific tables by a better key.
Fountain replaced a multi-vendor batch pipeline (third-party replication to S3/Iceberg, then BigQuery) with ClickPipes CDC streaming Postgres and MongoDB directly into ClickHouse Cloud, cutting analytics freshness from three hours to under two minutes, with most queries sub-second, at about 66% lower cost.
LuBot, a solo-founder analytics chat product, gives each paying customer an isolated Postgres database by creating a Neon branch from a Stripe webhook, with Supabase kept as the control plane for orgs, users and billing.
ZGateway is a stateless regional proxy tier in front of ZippyDB, Meta's most widely used key-value store.
Production SQLite encryption with Turso fails most often at the key, not the cipher.
Turso offers two SQLite encryption models: native, open-source page-level encryption in its Rust rewrite of SQLite (still behind an --experimental-encryption flag, hex keys) and production-ready BYOK on Turso Cloud, where a base64 key is supplied per connection and never persisted by Turso.
DBOS's August 2026 update brings roughly 10x higher throughput for partitioned queues, achieved through more efficient indexes, batched dequeues across partitions, and a faster replacement for a SELECT DISTINCT query that bottlenecked at scale.
Supporting processes on a managed Postgres VM (PgBouncer, WAL-G, Prometheus, exporters, log collector, watchdogs) share memory, CPU and disk with the database, so a leak or CPU burst in any of them can take it down.
Shopify consolidated metrics, logs, traces, exceptions and profiles from multiple vendors onto Observe, an internal observability platform built on self-hosted ClickHouse, and saw a 16x query improvement out of the box (over 30x at peak) along with predictable costs.
The standard warning against database-per-tenant assumes each database is a server process like PostgreSQL or MySQL, with its own memory, connection pool and backup schedule.
ClickBench Playground hosts around 100 database systems with a preloaded 100-million-row dataset for interactive querying and side-by-side "race" comparisons.
Giving each AI agent its own SQLite-style database, instead of sharing tables keyed by tenant_id or using schema-per-tenant, makes isolation, debugging and cleanup trivial: deleting an agent is a single API call.
Real BYOC (Bring Your Own Cloud) splits a managed platform into a vendor-hosted control plane, which holds only infrastructure metadata, and a data plane in the customer's own cloud account.
neon-for-agent-platforms is an open-source companion Agent Skill and set of TypeScript scripts for running fleets of Neon Postgres databases on agent platforms.
Instacart extended its Marketplace marketing automation to 350+ Storefront Pro white-label retailers by giving each retailer its own isolated workspace in a third-party provider, fronted by Instacart-built React tooling.
Sample Vault, an AI sample browser for music producers, gives each premium user a dedicated Turso database.
Copy Fail (CVE-2026-31431) is a logic bug in the Linux kernel's algif_aead AF_ALG interface.
Replit layers its security controls so that no single one is the last line of defense, from development sandboxes to production hosting.
Multi-tenant GPU clusters pool hardware at a shared infrastructure layer (central control plane, shared storage, InfiniBand east/west and Ethernet north/south fabric) while giving each team dedicated GPU nodes, storage PVCs, credentials and its own orchestration layer such as Kubernetes or Slurm.
FigCache is a stateless Go proxy that speaks the Redis RESP wire protocol.
Preparing a ClickHouse Cloud warehouse for AI agents comes down to classic warehousing discipline: isolate workloads on separate compute services over shared storage, expose only curated marts, and enforce guardrails through roles and resource limits.
Turso's partial sync replicates a subset of SQLite database pages into Vercel Functions so reads run in-process with no network round-trip, while writes go to the remote Turso database for durability and consistency.
LaunchDarkly replaced Kinesis/Flink/Lambda streaming pipelines and an S3/Parquet/Athena batch warehouse with ClickHouse Cloud.
Neon migrated thousands of user accounts and more than 10M projects from user ownership to organization (team) ownership with no downtime, no breaking API changes, no API key rotation and no customer action.
Attackers exploited CVE-2025-55182, a React Server Components vulnerability in unpatched Next.js versions, to hijack a subset of Railway customer workloads and run a cryptominer.
Tangle is Shopify's newly open-sourced ML experimentation platform: users build pipelines visually as DAGs of containerized CLI components defined in YAML, so components can be written in any language and run on any cloud or locally.
A snapshot-based workflow for promoting Postgres schema and data changes uses two isolated root branches, prod and dev, linked only through Neon snapshots.
Aileen is an open-source codegen agent that generates full-stack web apps, combining Next.js on Vercel, Mastra for the agent loop, Assistant UI for persisted chat, Freestyle.sh for Git repos and dev sandboxes, and Neon for both the control-plane database and per-app Postgres with Neon Auth.
xpander.ai unified agent deployment for its managed cloud and customer-hosted Kubernetes clusters behind a single deploy-agent API that routes by tenant type.
Husky, Datadog's third-generation event store, serves interactive queries over more than 100 trillion events through four multi-tenant services: a planner that splits queries into time-based steps, orchestrators that fetch fragment metadata from FoundationDB and prune with zone maps, a metadata service, and readers that execute against fragments in blob storage.
Postgres event triggers, transactional DDL and LISTEN/NOTIFY can turn schema changes into reliable events that drive downstream automation such as SDK generation, warehouse syncs and documentation updates, with no external queue.
Supabase Edge Functions can now mount any S3-compatible bucket, including Supabase Storage, as a POSIX-like directory under /s3, configured through four S3FS_* environment secrets.
Datadog's Log Forwarding avoids head-of-line blocking from Kafka's per-partition FIFO ordering by moving logs out of Kafka early into cloud object storage, grouped by destination.
Datadog replaced on-demand per-tenant config loading (database reads plus Kafka cache-invalidation messages) with a context-publisher that snapshots all tenants' configuration into RocksDB blobs in cloud storage and streams individual updates over Kafka.
Database-per-tenant schema migrations can scale to millions of databases by inverting control: a hosted schema registry stores a versioned catalog of SQL scripts, and each client periodically reports its schema version, pulls the missing migrations and applies them locally.
Seemplicity, a security remediation platform aggregating findings from 150+ tools, outgrew a Postgres-only design as heavy upserts, table bloat and multi-table joins across ~16 per-tenant tables slowed customer dashboards.
Meta moved GenAI inference traffic, which is long-running, I/O-heavy and latency-sensitive, onto a dedicated HHVM web tenant with its own runtime tuning, cutting latency by 30%.
Turso Cloud makes every SQLite database durable on S3 and S3 Express, treating local server disk purely as a cache.
Turso Cloud moved to a diskless architecture where writes are acknowledged only after landing in S3 Express One Zone, so compute pods hold no durable local state and can be rescheduled freely.
Noisy neighbors in a shared Postgres instance such as AWS RDS degrade performance for every tenant through CPU saturation, work_mem and shared_buffers pressure, disk I/O contention on EBS, exhaustion of max_connections, and lock contention from long transactions.
Putting a gateway ("LLM-Server") in front of vLLM or TGI with per-user, per-model queues and round-robin scheduling keeps power users from starving others, which the engine's FIFO queue cannot do once requests reach it.
Turso Cloud is now generally available on AWS, built on an S3-native architecture where every commit is made durable on S3 Express One Zone and local disks serve as a read cache.
ClickHouse BYOC on AWS splits a ClickHouse-hosted management plane from a data plane EKS cluster in the customer's VPC, provisioned automatically with CloudFormation and Crossplane.
ClickHouse Cloud Warehouses let multiple services, each with its own endpoint, compute nodes, sizing, idling and network access rules, read and write the same data, isolating workloads such as ingestion, BI dashboards and ad-hoc analysis.
After migrating from Thanos to Grafana Mimir at about 6 million samples per second, Wise found its compactor quietly falling behind on its largest tenant.
Modal built vprox, a high-availability Go VPN proxy on WireGuard, to give multi-tenant serverless containers static outbound IPv4 addresses for things like database IP allowlists.
JSON Web Tokens are compact, signed, self-contained tokens made of three base64url segments (header, payload of registered and custom claims, and an HMAC or RSA signature).
A multi-tenant storefront architecture that shares one template codebase but gives each store its own Vercel project, environment variables (name, theme, Stripe key) and Turso database, avoiding shared-database tenant isolation.
Database-per-tenant setups need every tenant database kept on the same schema, and this walkthrough automates that across many Neon projects with DrizzleORM, the Neon API and GitHub Actions.
Datadog validated the design of Courier, a multi-tenant message queue built on multiple FoundationDB clusters after its March 2023 outage, by combining TLA+ formal modeling, lightweight simulations and chaos testing.
A multi-tenant RAG pipeline for a CRM isolates each organization's contacts and embeddings in a dedicated Neon Postgres project, created via the Neon API and looked up per workspace to build connection strings on the fly.
Aggregating analytics across a database-per-tenant SQLite architecture works with a simple daily ETL job: discover tenant databases via the Turso Platform API, run a per-database query for daily orders, revenue, active carts and new products, and upsert the results into a central metrics table keyed by date and database name.
Postgres row-level security is a poor fit for expressing an entire app's authorization model.
Temporal built Chronicle, an observability system on ClickHouse, to handle high-cardinality, per-tenant telemetry for its multi-tenant Temporal Cloud without runaway costs.
Neon RLS lets Postgres row-level security policies authenticate requests with JWTs from any auth provider that exposes a JWKS URL.
Part 1 of a series on automating nightly Postgres backups from many Neon projects to S3 via scheduled GitHub Actions covers the AWS setup.
Inference and many other GPU workloads are highly volatile: Poisson noise, daily and weekly cycles, viral spikes and bursty batch jobs, which pushes fixed-reservation GPU clusters below 50% utilization.
Turso is opening a private beta for Offline Writes, letting applications write to local embedded SQLite replicas while online or offline and sync those changes to the cloud later.
Deploying a full copy of the application and its own Neon Postgres project per customer is justified mainly by data residency requirements and by letting customers control upgrade timing, not by per-customer customization, which turns each deployment into a separate product.
A single shared application environment serving many per-customer Neon Postgres databases keeps deployment simple, but every tenant database must stay at the same schema version and data residency is hard to offer.
A database-per-user architecture on Neon usually means one Neon project per customer, and that quickly needs a control plane to manage onboarding, monitoring and schema upgrades across many projects.
Postgres multi-tenancy comes in three main designs: shared schema, schema-per-user and database-per-user.
pg_graphql 1.5.7 adds offset-based pagination alongside existing keyset pagination, per-role schema caching for schema-per-tenant multi-tenancy, and array filter operators.
Slack re-architected its backend and clients to replace the workspace-centric model, where session tokens carried a workspace ID used for shard routing and access control, with an org-wide Unified Grid view for Enterprise Grid customers.
A user-facing analytics dashboard for a property management app can be built by pairing ClickHouse as the columnar analytical store with Luzmo for embedded visualizations, using the UK house price dataset from the ClickHouse Playground.
Meta tightened the server utilization distribution of its ads inference fleet, letting it absorb 35% more load with no added capacity, cut timeout errors by two-thirds and halve p99 latency.
ClickHouse Cloud's Azure data plane reuses its CSP-neutral design (AKS, Blob Storage, VNETs, Entra ID, managed Cilium) but had to adapt to several Azure-specific constraints.
Deno Subhosting now supports organization-wide wildcard domains where different subdomains under one wildcard (e.g. foo.example.com and bar.example.com under *.example.com) can map to different deployments.
libSQL, the SQLite fork behind Turso, now has native vector similarity search exposed as a column type (F32_BLOB) instead of an extension like sqlite-vss.
Neo.Tax replaced a multi-day manual QA loop (product-created test customers, hand-verified PDFs, engineers hand-copying values into E2E fixtures via SQL dumps) with per-PR Neon database branches created by the Neon CLI, named after the GitHub branch, injected into Cloud Run via CircleCI environment variables, and deleted on merge.
Cedalio, an ESG data verification startup, moved from DynamoDB to Postgres and picked Neon over RDS for a simpler API and console.
Deno Deploy runs untrusted JavaScript and TypeScript in pools of V8 isolates inside VMs called runners, split into a control plane for deployments and a data plane of edge regions.
A single self-service customer workload deployed multiple memory-hungry replicas into Railway's smallest region, Asia-Southeast, and exhausted its memory.
Neon shards its Rust-based Pageserver storage layer by dividing each Postgres relation's 8KiB block numbers into stripes (default 256MiB) and hashing each stripe to a Pageserver.