# Multitenancy

A software architecture approach for serving multiple customers, or tenants, through a shared solution with configurable resource isolation.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## Build a multi-user Claude Agent SDK app that acts as each of your users

DevFeed: [Build a multi-user Claude Agent SDK app that acts as each of your users](<https://devfeed.tech/articles/build-a-multi-user-claude-agent-sdk-app-that-acts-as-each-of-your-users-16006.md>)

Original publisher: [Read original article](<https://workos.com/blog/build-multi-user-claude-agent-sdk-app>)

Author: WorkOS

Published: 2026-08-24T00:00:00Z

Content type: tutorial

Language: en

Sources: [WorkOS Blog](<https://devfeed.tech/sources/workos-blog.md>)

Topics: [Claude](<https://devfeed.tech/topics/claude.md>), [SDKs](<https://devfeed.tech/topics/sdks.md>), [Multitenancy](<https://devfeed.tech/topics/multitenancy.md>), [Next.js](<https://devfeed.tech/topics/next-js.md>), [Model Context Protocol](<https://devfeed.tech/topics/model-context-protocol.md>), [anthropic](<https://devfeed.tech/topics/anthropic.md>)

Tags: [agent](<https://devfeed.tech/tags/agent.md>), [build](<https://devfeed.tech/tags/build.md>), [claude](<https://devfeed.tech/tags/claude.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [mcp](<https://devfeed.tech/tags/mcp.md>), [multi-tenancy](<https://devfeed.tech/tags/multi-tenancy.md>), [next-js](<https://devfeed.tech/tags/next-js.md>), [sdk](<https://devfeed.tech/tags/sdk.md>)

### AI overview

This tutorial explains how to build a multi-user Claude Agent SDK application whose tool calls run with the signed-in user's identity. It recommends constructing the tool surface per request, capturing the acting user in a closure, and exposing no tool parameter that lets the model choose another user.

### Source excerpt

Follow the official Agent SDK examples and every user's agent runs on one shared token, which is usually yours. Here is how to bind each tool call to the signed-in user instead, using AuthKit and Pipes relay.

## Build an EKS Environment Factory with Pulumi and vCluster

DevFeed: [Build an EKS Environment Factory with Pulumi and vCluster](<https://devfeed.tech/articles/build-an-eks-environment-factory-with-pulumi-and-vcluster-18998.md>)

Original publisher: [Read original article](<https://www.pulumi.com/blog/eks-vcluster-ephemeral-environments-with-pulumi/>)

Author: Pablo Seibelt

Published: 2026-06-04T00:00:00Z

Content type: tutorial

Language: en

Sources: [Pulumi](<https://devfeed.tech/sources/pulumi.md>)

Topics: [Amazon EKS](<https://devfeed.tech/topics/amazon-eks.md>), [Multitenancy](<https://devfeed.tech/topics/multitenancy.md>), [Kubernetes](<https://devfeed.tech/topics/kubernetes.md>), [Provisioning](<https://devfeed.tech/topics/provisioning.md>), [Architecture & Design](<https://devfeed.tech/topics/architecture-design.md>), [Amazon Web Services](<https://devfeed.tech/topics/aws.md>), [CI/CD](<https://devfeed.tech/topics/cicd.md>)

Tags: [amazon-eks](<https://devfeed.tech/tags/amazon-eks.md>), [architecture](<https://devfeed.tech/tags/architecture.md>), [aws](<https://devfeed.tech/tags/aws.md>), [ci-cd](<https://devfeed.tech/tags/ci-cd.md>), [infrastructure](<https://devfeed.tech/tags/infrastructure.md>), [kubernetes](<https://devfeed.tech/tags/kubernetes.md>), [multi-tenancy](<https://devfeed.tech/tags/multi-tenancy.md>), [platform-engineering](<https://devfeed.tech/tags/platform-engineering.md>), [provisioning](<https://devfeed.tech/tags/provisioning.md>), [pulumi](<https://devfeed.tech/tags/pulumi.md>), [tutorials](<https://devfeed.tech/tags/tutorials.md>)

### AI overview

A tutorial shows how to build an ephemeral Kubernetes environment factory with Pulumi, Amazon EKS Auto Mode, and vCluster. It uses a shared host cluster with virtual tenant clusters to reduce environment sprawl, provisioning delays, and operational overhead while preserving tenant isolation controls.

### Source excerpt

AWS reports in an AWS Architecture Blog case study that Deloitte's move to a virtual cluster model on Amazon EKS resulted in 89% faster testing environment provisioning. By consolidating dozens of disparate clusters into a single host cluster with over 50 vCluster instances, the case study says Deloitte saved about 500 QA hours per year. This "Environment Factory" pattern allows platform teams to provide isolated, ephemeral Kubernetes environments on demand without the cost or lag of full cluster provisioning. This post adapts that general architecture with Pulumi to orchestrate Amazon EKS Auto Mode and vCluster. The problem: environment sprawl and provisioning lag Traditional development workflows often rely on one full EKS cluster per developer or feature branch. While this provides strong isolation, it introduces major pain points. Provisioning a full cluster can take 15 minutes or more, which slows down CI/CD pipelines. Managing dozens of clusters also leads to high costs and significant operational overhead. Platform teams need a "soft multi-tenancy" model. This model should feel like a dedicated cluster to the developer but run on shared infrastructure to keep costs low and startup times fast. Architecture overview: the host and the tenants The environment factory architecture consists of two main layers. Host cluster: A single, reliable EKS cluster managed with EKS Auto Mode. This cluster provides the underlying compute, networking, and storage. Tenant environments: Virtual clusters (vCluster) running as pods within host namespaces. According to the vCluster architecture, the virtual control plane handles API requests while a syncer maps virtual resources to the host cluster. This separation allows tenants to manage their own CRDs, namespaces, and RBAC while platform teams use quotas, NetworkPolicies, pod security, IAM boundaries, and node isolation controls to protect the host and other tenants. Implementation: the EKS Auto Mode host EKS Auto Mode simplifies

## Secure Multitenancy with OpenShift and Isovalent Networking for Kubernetes

DevFeed: [Secure Multitenancy with OpenShift and Isovalent Networking for Kubernetes](<https://devfeed.tech/articles/secure-multitenancy-with-openshift-and-isovalent-networking-for-kubernetes-31336.md>)

Original publisher: [Read original article](<https://isovalent.com/blog/post/secure-multitenancy-with-openshift-and-isovalent-networking-for-kubernetes/>)

Author: Christian Hernandez

Published: 2026-04-30T07:01:05Z

Content type: article

Language: en

Sources: [Isovalent - The latest articles covering eBPF-based Networking, Observability, and Security](<https://devfeed.tech/sources/isovalent-the-latest-articles-covering-ebpf-based-networking-observability-and-security.md>)

Topics: [Multitenancy](<https://devfeed.tech/topics/multitenancy.md>), [networking](<https://devfeed.tech/topics/networking.md>), [Kubernetes](<https://devfeed.tech/topics/kubernetes.md>)

Tags: [blog](<https://devfeed.tech/tags/blog.md>), [isovalent](<https://devfeed.tech/tags/isovalent.md>), [kubernetes](<https://devfeed.tech/tags/kubernetes.md>), [multitenancy](<https://devfeed.tech/tags/multitenancy.md>), [networking](<https://devfeed.tech/tags/networking.md>)

### AI overview

The article explores how Isovalent Networking for Kubernetes fits into OpenShift's multitenancy model.

### Source excerpt

OpenShift has long treated multitenancy as a core platform concern and in this blog we explore how Isovalent Networking for Kubernetes fits perfectly in this model!

## Atoms is Out, a Multi-Agent AI Team that Builds Full-Stack Apps for You

DevFeed: [Atoms is Out, a Multi-Agent AI Team that Builds Full-Stack Apps for You](<https://devfeed.tech/articles/atoms-is-out-a-multi-agent-ai-team-that-builds-full-stack-apps-for-you-4989.md>)

Original publisher: [Read original article](<https://neon.com/blog/atoms-is-out-a-multi-agent-ai-team-that-builds-full-stack-apps-for-you>)

Author: Carlota Soto

Published: 2026-01-13T17:48:26Z

Content type: article

Language: en

Sources: [Blog -- Neon Docs](<https://devfeed.tech/sources/blog-neon-docs.md>)

Topics: [Artificial Intelligence](<https://devfeed.tech/topics/ai.md>), [App](<https://devfeed.tech/topics/app.md>), [Multitenancy](<https://devfeed.tech/topics/multitenancy.md>), [Per-user Database](<https://devfeed.tech/topics/per-user-database.md>), [Databases](<https://devfeed.tech/topics/databases.md>), [Back end](<https://devfeed.tech/topics/backend.md>), [Front end](<https://devfeed.tech/topics/frontend.md>), [Automation](<https://devfeed.tech/topics/automation.md>), [Deployment](<https://devfeed.tech/topics/deployment.md>), [Software as a service](<https://devfeed.tech/topics/saas.md>), [Iris](<https://devfeed.tech/topics/iris.md>), [AI research agents](<https://devfeed.tech/topics/ai-research-agents.md>)

Tags: [agent](<https://devfeed.tech/tags/agent.md>), [ai](<https://devfeed.tech/tags/ai.md>), [ai-agents](<https://devfeed.tech/tags/ai-agents.md>), [apps](<https://devfeed.tech/tags/apps.md>), [architecture](<https://devfeed.tech/tags/architecture.md>), [automation](<https://devfeed.tech/tags/automation.md>), [backend](<https://devfeed.tech/tags/backend.md>), [case-studies](<https://devfeed.tech/tags/case-studies.md>), [code](<https://devfeed.tech/tags/code.md>), [data](<https://devfeed.tech/tags/data.md>), [database](<https://devfeed.tech/tags/database.md>), [deployment](<https://devfeed.tech/tags/deployment.md>), [infrastructure](<https://devfeed.tech/tags/infrastructure.md>), [product](<https://devfeed.tech/tags/product.md>), [product-development](<https://devfeed.tech/tags/product-development.md>), [saas](<https://devfeed.tech/tags/saas.md>), [scale](<https://devfeed.tech/tags/scale.md>), [software](<https://devfeed.tech/tags/software.md>)

### AI overview

Atoms is a multi-agent AI platform that builds full-stack software products from a user prompt. Specialized agents handle research, product requirements, architecture, engineering, data analysis, testing, and deployment. Its multi-tenant architecture gives each user app a dedicated Postgres database provisioned dynamically through Neon.

### Source excerpt

"We chose Neon as our backend because of scale, cost-efficiency, and superior developer and user experience, all critical for Atoms' multi-tenant architecture. Each user app needs its own dedicated database, and Neon lets us spin up Postgres instances dynamically while only payin...

## Web Analytics Architecture for Multitenancy and AI

DevFeed: [Web Analytics Architecture for Multitenancy and AI](<https://devfeed.tech/articles/web-analytics-starter-kit-supercharged-with-ai-and-core-vitals-18745.md>)

Original publisher: [Read original article](<https://www.tinybird.co/blog/web-analytics-with-multitenancy-and-ai>)

Author: Víctor Ramírez, Alberto Romeu

Published: 2025-08-13T14:00:00Z

Content type: tutorial

Language: en

Sources: [Tinybird](<https://devfeed.tech/sources/tinybird.md>)

Topics: [Web](<https://devfeed.tech/topics/web.md>), [Multitenancy](<https://devfeed.tech/topics/multitenancy.md>), [Artificial Intelligence](<https://devfeed.tech/topics/ai.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [analytics](<https://devfeed.tech/tags/analytics.md>), [architecture](<https://devfeed.tech/tags/architecture.md>), [i-built-this](<https://devfeed.tech/tags/i-built-this.md>), [multitenancy](<https://devfeed.tech/tags/multitenancy.md>), [web](<https://devfeed.tech/tags/web.md>)

### AI overview

The article describes the architecture of a web analytics platform that uses multitenancy and AI to serve thousands of customers from one platform.

### Source excerpt

Web analytics with multitenancy and AI serves thousands of customers from one platform. Here's the architecture behind it.

## Turso Cloud Goes Diskless: How We Built a Fully S3-Based Database Architecture

DevFeed: [Turso Cloud Goes Diskless: How We Built a Fully S3-Based Database Architecture](<https://devfeed.tech/articles/turso-cloud-goes-diskless-how-we-built-a-fully-s3-based-database-architecture-6064.md>)

Original publisher: [Read original article](<https://turso.tech/blog/turso-cloud-goes-diskless>)

Author: Glauber Costa

Published: 2025-04-07T00:00:00Z

Content type: article

Language: en

Sources: [Turso Blog](<https://devfeed.tech/sources/turso-blog.md>)

Topics: [Turso](<https://devfeed.tech/topics/turso.md>), [Amazon S3](<https://devfeed.tech/topics/amazon-s3.md>), [Architecture & Design](<https://devfeed.tech/topics/architecture-design.md>), [Multitenancy](<https://devfeed.tech/topics/multitenancy.md>), [Cloud](<https://devfeed.tech/topics/cloud.md>), [SQLite](<https://devfeed.tech/topics/sqlite.md>), [Amazon Web Services](<https://devfeed.tech/topics/aws.md>), [Scalability](<https://devfeed.tech/topics/scalability.md>), [Kubernetes](<https://devfeed.tech/topics/kubernetes.md>)

Tags: [architecture](<https://devfeed.tech/tags/architecture.md>), [article](<https://devfeed.tech/tags/article.md>), [aws](<https://devfeed.tech/tags/aws.md>), [cloud](<https://devfeed.tech/tags/cloud.md>), [compliance](<https://devfeed.tech/tags/compliance.md>), [kubernetes](<https://devfeed.tech/tags/kubernetes.md>), [s3](<https://devfeed.tech/tags/s3.md>), [scalability](<https://devfeed.tech/tags/scalability.md>), [sqlite](<https://devfeed.tech/tags/sqlite.md>), [storage](<https://devfeed.tech/tags/storage.md>), [technology](<https://devfeed.tech/tags/technology.md>), [turso](<https://devfeed.tech/tags/turso.md>)

### AI overview

Turso Cloud describes a diskless transactional database architecture that runs entirely on S3, including AWS S3 Express One Zone. The design removes local disks and simplifies Bring Your Own Cloud deployments while addressing scalability, reliability, multi-tenancy, compliance, and latency trade-offs.

### Source excerpt

How Turso Cloud runs a transactional SQLite database fully on S3 and S3 Express, removing local disks and unlocking Bring Your Own Cloud deployments.

## Multi-Tenant E-Commerce Architecture with Turso

DevFeed: [Multi-Tenant E-Commerce Architecture with Turso](<https://devfeed.tech/articles/multi-tenant-e-commerce-architecture-with-turso-6007.md>)

Original publisher: [Read original article](<https://turso.tech/blog/multi-tenant-ecommerce-architecture-with-turso>)

Author: Jamie Barton

Published: 2024-11-26T00:00:00Z

Content type: article

Language: en

Sources: [Turso Blog](<https://devfeed.tech/sources/turso-blog.md>)

Topics: [Architecture & Design](<https://devfeed.tech/topics/architecture-design.md>), [Multitenancy](<https://devfeed.tech/topics/multitenancy.md>), [Turso](<https://devfeed.tech/topics/turso.md>), [Scalability](<https://devfeed.tech/topics/scalability.md>), [Database](<https://devfeed.tech/topics/database.md>), [Drizzle](<https://devfeed.tech/topics/drizzle.md>), [Vercel](<https://devfeed.tech/topics/vercel.md>), [stripe](<https://devfeed.tech/topics/stripe.md>), [configuration](<https://devfeed.tech/topics/configuration.md>), [.env](<https://devfeed.tech/topics/dotenv.md>), [Deployment](<https://devfeed.tech/topics/deployment.md>)

Tags: [architecture](<https://devfeed.tech/tags/architecture.md>), [database](<https://devfeed.tech/tags/database.md>), [deployment](<https://devfeed.tech/tags/deployment.md>), [drizzle](<https://devfeed.tech/tags/drizzle.md>), [e-commerce](<https://devfeed.tech/tags/e-commerce.md>), [environment-variables](<https://devfeed.tech/tags/environment-variables.md>), [scalability](<https://devfeed.tech/tags/scalability.md>), [schema](<https://devfeed.tech/tags/schema.md>), [stripe](<https://devfeed.tech/tags/stripe.md>), [turso](<https://devfeed.tech/tags/turso.md>), [vercel](<https://devfeed.tech/tags/vercel.md>)

### AI overview

This article presents a multi-tenant e-commerce architecture that uses one codebase for multiple storefronts. Store-specific themes and settings are controlled through environment variables, while each store uses an isolated database and deployment. The approach aims to simplify development and provide a practical balance between tenant separation and scalability, using Turso, Drizzle, Vercel, and dedicated Stripe accounts.

### Source excerpt

Create multiple storefronts using a single codebase while maintaining separation of concerns and scalability.

## Databases will be free

DevFeed: [Databases will be free](<https://devfeed.tech/articles/databases-will-be-free-5931.md>)

Original publisher: [Read original article](<https://turso.tech/blog/databases-will-be-free>)

Author: Glauber Costa

Published: 2024-11-19T00:00:00Z

Content type: opinion

Language: en

Sources: [Turso Blog](<https://devfeed.tech/sources/turso-blog.md>)

Topics: [Databases](<https://devfeed.tech/topics/databases.md>), [Multitenancy](<https://devfeed.tech/topics/multitenancy.md>), [Turso](<https://devfeed.tech/topics/turso.md>), [Provisioning](<https://devfeed.tech/topics/provisioning.md>), [Artificial Intelligence](<https://devfeed.tech/topics/ai.md>), [DRIVE](<https://devfeed.tech/topics/drive.md>)

Tags: [agents](<https://devfeed.tech/tags/agents.md>), [ai-agents](<https://devfeed.tech/tags/ai-agents.md>), [centralization](<https://devfeed.tech/tags/centralization.md>), [databases](<https://devfeed.tech/tags/databases.md>), [multitenancy](<https://devfeed.tech/tags/multitenancy.md>), [provisioning](<https://devfeed.tech/tags/provisioning.md>), [turso](<https://devfeed.tech/tags/turso.md>)

### AI overview

The article argues that database costs will eventually fall close to zero, enabling plentiful individual and ephemeral databases. It connects this shift to a microdatabase model, AI agents requiring disposable databases for agentic memory, and Turso's efforts toward massive multitenancy and lower-cost provisioning.

### Source excerpt

In the near future, databases will be free and plentiful. What does that change for you?

## Analytics for Per-User Database Architecture

DevFeed: [Analytics for Per-User Database Architecture](<https://devfeed.tech/articles/analytics-for-per-user-database-architecture-5887.md>)

Original publisher: [Read original article](<https://turso.tech/blog/analytics-for-per-user-database-architecture>)

Author: Jamie Barton

Published: 2024-11-18T00:00:00Z

Content type: article

Language: en

Sources: [Turso Blog](<https://devfeed.tech/sources/turso-blog.md>)

Topics: [Per-user Database](<https://devfeed.tech/topics/per-user-database.md>), [Multitenancy](<https://devfeed.tech/topics/multitenancy.md>), [Turso](<https://devfeed.tech/topics/turso.md>), [SQLite](<https://devfeed.tech/topics/sqlite.md>), [Platform API](<https://devfeed.tech/topics/platform-api.md>), [Data Management](<https://devfeed.tech/topics/data-management.md>), [Architecture & Design](<https://devfeed.tech/topics/architecture-design.md>), [Software as a service](<https://devfeed.tech/topics/saas.md>), [data-architecture](<https://devfeed.tech/topics/data-architecture.md>), [Databases](<https://devfeed.tech/topics/databases.md>)

Tags: [architecture](<https://devfeed.tech/tags/architecture.md>), [data-management](<https://devfeed.tech/tags/data-management.md>), [database](<https://devfeed.tech/tags/database.md>), [databases](<https://devfeed.tech/tags/databases.md>), [etl](<https://devfeed.tech/tags/etl.md>), [metrics](<https://devfeed.tech/tags/metrics.md>), [monitor](<https://devfeed.tech/tags/monitor.md>), [per-user-database](<https://devfeed.tech/tags/per-user-database.md>), [platform-api](<https://devfeed.tech/tags/platform-api.md>), [reporting](<https://devfeed.tech/tags/reporting.md>), [saas](<https://devfeed.tech/tags/saas.md>), [sqlite](<https://devfeed.tech/tags/sqlite.md>), [turso](<https://devfeed.tech/tags/turso.md>)

### AI overview

This article explains how to aggregate analytics from a per-user or per-tenant Turso database architecture. It describes using an ETL script to query individual SQLite databases, collect metrics such as orders, revenue, shopping carts, and products, and store the results in a central database for reporting and platform monitoring.

### Source excerpt

Aggregating Multi-Tenant Databases for Analytics and Reporting

## Is Postgres RLS for Everything and Everyone?

DevFeed: [Is Postgres RLS for Everything and Everyone?](<https://devfeed.tech/articles/is-postgres-rls-for-everything-and-everyone-5472.md>)

Original publisher: [Read original article](<https://neon.com/blog/is-postgres-rls-for-everything-and-everyone>)

Author: David Gomes

Published: 2024-11-15T17:32:58Z

Content type: article

Language: en

Sources: [Blog -- Neon Docs](<https://devfeed.tech/sources/blog-neon-docs.md>)

Topics: [Authorization](<https://devfeed.tech/topics/authorization.md>), [Multitenancy](<https://devfeed.tech/topics/multitenancy.md>), [Per-user Database](<https://devfeed.tech/topics/per-user-database.md>), [SQL](<https://devfeed.tech/topics/sql.md>), [Security](<https://devfeed.tech/topics/security.md>), [Drizzle](<https://devfeed.tech/topics/drizzle.md>), [Object-relational mapping](<https://devfeed.tech/topics/orm.md>), [Architecture & Design](<https://devfeed.tech/topics/architecture-design.md>)

Tags: [authorization](<https://devfeed.tech/tags/authorization.md>), [blog-post](<https://devfeed.tech/tags/blog-post.md>), [database](<https://devfeed.tech/tags/database.md>), [drizzle](<https://devfeed.tech/tags/drizzle.md>), [multitenancy](<https://devfeed.tech/tags/multitenancy.md>), [orm](<https://devfeed.tech/tags/orm.md>), [postgres](<https://devfeed.tech/tags/postgres.md>), [security](<https://devfeed.tech/tags/security.md>), [sql](<https://devfeed.tech/tags/sql.md>), [testing](<https://devfeed.tech/tags/testing.md>)

### AI overview

The article examines whether PostgreSQL Row-Level Security (RLS) should express an application's entire authorization model. It recommends a project-per-user pattern for multitenancy when possible, while describing RLS as a way to prevent cross-tenant access in a shared database. It discusses RLS's dense syntax, recursion errors, policy behavior, security settings, optimizer considerations, and testing difficulties, and notes that Drizzle ORM can simplify some TypeScript usage.

### Source excerpt

In Neon, we recommend using a project-per-user pattern for multitenancy whenever possible. If this doesn't work for you and you're placing all your tenants within a single Postgres database, you should at least use RLS to prevent cross-tenant access--but expressing your entire aut...

## Adaptive Computer chooses Turso ephemeral databases to power AI agents that build and modify software

DevFeed: [Adaptive Computer chooses Turso ephemeral databases to power AI agents that build and modify software](<https://devfeed.tech/articles/adaptive-computer-chooses-turso-ephemeral-databases-to-power-ai-agents-that-build-and-modify-software-5879.md>)

Original publisher: [Read original article](<https://turso.tech/blog/adaptive-computer-chooses-turso-ephemeral-databases-to-power-ai-agents-that-build-and-modify-software>)

Author: Mike Soylu

Published: 2024-10-21T00:00:00Z

Content type: article

Language: en

Sources: [Turso Blog](<https://devfeed.tech/sources/turso-blog.md>)

Topics: [Turso](<https://devfeed.tech/topics/turso.md>), [AI Agent](<https://devfeed.tech/topics/ai-agent.md>), [Platform API](<https://devfeed.tech/topics/platform-api.md>), [Multitenancy](<https://devfeed.tech/topics/multitenancy.md>), [SQLite](<https://devfeed.tech/topics/sqlite.md>)

Tags: [ai-agents](<https://devfeed.tech/tags/ai-agents.md>), [multitenancy](<https://devfeed.tech/tags/multitenancy.md>), [platform-api](<https://devfeed.tech/tags/platform-api.md>), [sqlite](<https://devfeed.tech/tags/sqlite.md>), [turso](<https://devfeed.tech/tags/turso.md>)

### AI overview

Adaptive Computer describes using Turso to provision and branch databases for AI-agent changes to applications, validate those changes, and roll them back when needed. The company says it had 40,000 Turso databases in September while still in alpha.

### Source excerpt

How Adaptive Computer uses Turso multitenancy to create tens of thousands of databases that power AI agent actions

## How Drizzle Leverages Turso for Its Products and Services

DevFeed: [How Drizzle Leverages Turso for Its Products and Services](<https://devfeed.tech/articles/how-drizzle-leverages-turso-for-its-products-and-services-5960.md>)

Original publisher: [Read original article](<https://turso.tech/blog/how-drizzle-leverages-turso-for-its-products-and-services>)

Author: Aleksandr Blokh

Published: 2024-10-17T00:00:00Z

Content type: article

Language: en

Sources: [Turso Blog](<https://devfeed.tech/sources/turso-blog.md>)

Topics: [Drizzle](<https://devfeed.tech/topics/drizzle.md>), [Turso](<https://devfeed.tech/topics/turso.md>), [Object-relational mapping](<https://devfeed.tech/topics/orm.md>), [SQLite](<https://devfeed.tech/topics/sqlite.md>), [TypeScript](<https://devfeed.tech/topics/typescript.md>), [Multitenancy](<https://devfeed.tech/topics/multitenancy.md>), [Replication](<https://devfeed.tech/topics/replication.md>), [Latency](<https://devfeed.tech/topics/latency.md>)

Tags: [drizzle](<https://devfeed.tech/tags/drizzle.md>), [latency](<https://devfeed.tech/tags/latency.md>), [multitenancy](<https://devfeed.tech/tags/multitenancy.md>), [orm](<https://devfeed.tech/tags/orm.md>), [performance](<https://devfeed.tech/tags/performance.md>), [replication](<https://devfeed.tech/tags/replication.md>), [sqlite](<https://devfeed.tech/tags/sqlite.md>), [turso](<https://devfeed.tech/tags/turso.md>), [typescript](<https://devfeed.tech/tags/typescript.md>)

### AI overview

Drizzle explains how it uses Turso in production for data-centric applications, including Drizzle Studio themes, web analytics, an internal analytical back office, and a game. The article highlights Turso's SQLite foundation, schema capabilities, vector support, transparent pricing, replication, recovery, multi-region support, and scalability.

### Source excerpt

Drizzle ORM is a longtime user of Turso to power various products and services it offers. Here's how they use it.

## Working with Clerk and per-user databases

DevFeed: [Working with Clerk and per-user databases](<https://devfeed.tech/articles/working-with-clerk-and-per-user-databases-6121.md>)

Original publisher: [Read original article](<https://turso.tech/blog/working-with-clerk-and-per-user-databases>)

Author: Jamie Barton

Published: 2024-05-07T00:00:00Z

Content type: tutorial

Language: en

Sources: [Turso Blog](<https://devfeed.tech/sources/turso-blog.md>)

Topics: [Multitenancy](<https://devfeed.tech/topics/multitenancy.md>), [Turso](<https://devfeed.tech/topics/turso.md>), [Authentication](<https://devfeed.tech/topics/authentication.md>), [Database](<https://devfeed.tech/topics/database.md>), [React](<https://devfeed.tech/topics/react.md>), [Next.js](<https://devfeed.tech/topics/next-js.md>)

Tags: [apps](<https://devfeed.tech/tags/apps.md>), [architecture](<https://devfeed.tech/tags/architecture.md>), [authentication](<https://devfeed.tech/tags/authentication.md>), [building](<https://devfeed.tech/tags/building.md>), [databases](<https://devfeed.tech/tags/databases.md>), [framework](<https://devfeed.tech/tags/framework.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [learn](<https://devfeed.tech/tags/learn.md>), [multi-tenancy](<https://devfeed.tech/tags/multi-tenancy.md>), [next-js](<https://devfeed.tech/tags/next-js.md>), [platform-api](<https://devfeed.tech/tags/platform-api.md>), [react](<https://devfeed.tech/tags/react.md>), [sqlite](<https://devfeed.tech/tags/sqlite.md>), [turso](<https://devfeed.tech/tags/turso.md>)

### AI overview

A tutorial on creating per-user databases for a multi-tenant application with Turso's Multi-DB Schemas and Clerk. It explains using a parent database as a template, propagating schema changes to child databases, and creating user databases through Clerk webhooks.

### Source excerpt

Learn how to create per-user databases in a multi-tenant architecture using Turso's Multi-DB Schemas feature and Clerk for user authentication and management.

## How OpusFlow achieves tenant isolation in Postgres without managing servers

DevFeed: [How OpusFlow achieves tenant isolation in Postgres without managing servers](<https://devfeed.tech/articles/how-opusflow-achieves-tenant-isolation-in-postgres-without-managing-servers-5355.md>)

Original publisher: [Read original article](<https://neon.com/blog/how-opusflow-achieves-tenant-isolation-in-postgres-without-managing-servers>)

Author: Carlota Soto

Published: 2024-02-22T17:28:50Z

Content type: article

Language: en

Sources: [Blog -- Neon Docs](<https://devfeed.tech/sources/blog-neon-docs.md>)

Topics: [Per-user Database](<https://devfeed.tech/topics/per-user-database.md>), [tenant data protection](<https://devfeed.tech/topics/tenant-data-protection.md>), [Amazon RDS](<https://devfeed.tech/topics/amazon-rds.md>), [Multitenancy](<https://devfeed.tech/topics/multitenancy.md>), [Encryption](<https://devfeed.tech/topics/encryption.md>), [DevOps](<https://devfeed.tech/topics/devops.md>), [Databases](<https://devfeed.tech/topics/databases.md>)

Tags: [amazon-rds](<https://devfeed.tech/tags/amazon-rds.md>), [architecture](<https://devfeed.tech/tags/architecture.md>), [business](<https://devfeed.tech/tags/business.md>), [case-studies](<https://devfeed.tech/tags/case-studies.md>), [customers](<https://devfeed.tech/tags/customers.md>), [data](<https://devfeed.tech/tags/data.md>), [database](<https://devfeed.tech/tags/database.md>), [devops](<https://devfeed.tech/tags/devops.md>), [encryption](<https://devfeed.tech/tags/encryption.md>), [energy](<https://devfeed.tech/tags/energy.md>), [postgres](<https://devfeed.tech/tags/postgres.md>)

### AI overview

The article describes how OpusFlow, an ERP tool for sustainable energy installers, addresses sensitive European customer data through a one-database-per-customer architecture in Postgres. It explains that this design improves tenant isolation, supports separate encryption keys, independent scaling, customer-specific restores, and separate upgrade schedules. The article contrasts this approach with Amazon RDS deployments, which either allow resource contention in a shared instance or create substantial operational and cost overhead when each database uses a separate instance.

### Source excerpt

"Our customers require their data to live in an isolated database, but implementing this in RDS was cumbersome and expensive. We switched over to Neon to reduce costs and operational overhead" Joey Teunissen, CTO at OpusFlow The demand for solar panels and sustainable energy inst...

## What's New in Apache Pulsar 3.2.0

DevFeed: [What's New in Apache Pulsar 3.2.0](<https://devfeed.tech/articles/what-s-new-in-apache-pulsar-3-2-0-12761.md>)

Original publisher: [Read original article](<https://pulsar.apache.org/blog/2024/02/12/announcing-apache-pulsar-3-2/>)

Author: Julien Jakubowski

Published: 2024-02-12T00:00:00Z

Content type: release

Language: en

Sources: [Apache Pulsar Blog](<https://devfeed.tech/sources/apache-pulsar-blog.md>)

Topics: [Apache Pulsar](<https://devfeed.tech/topics/pulsar.md>), [Messaging](<https://devfeed.tech/topics/messaging.md>), [Multitenancy](<https://devfeed.tech/topics/multitenancy.md>), [WebSocket](<https://devfeed.tech/topics/websocket.md>), [Security](<https://devfeed.tech/topics/security.md>), [Encryption](<https://devfeed.tech/topics/encryption.md>), [Refactoring](<https://devfeed.tech/topics/refactoring.md>)

Tags: [apache](<https://devfeed.tech/tags/apache.md>), [collaboration](<https://devfeed.tech/tags/collaboration.md>), [contributors](<https://devfeed.tech/tags/contributors.md>), [features](<https://devfeed.tech/tags/features.md>), [messaging](<https://devfeed.tech/tags/messaging.md>), [multi-tenancy](<https://devfeed.tech/tags/multi-tenancy.md>), [refactoring](<https://devfeed.tech/tags/refactoring.md>), [release](<https://devfeed.tech/tags/release.md>), [security](<https://devfeed.tech/tags/security.md>), [websocket](<https://devfeed.tech/tags/websocket.md>)

### AI overview

Apache Pulsar 3.2 is a feature release with more than 180 improvements, optimizations, and fixes across the broker, Pulsar IO, Pulsar Functions, and CLI. It adds rate-limiting refactoring for capacity management and QoS, changes topic compaction to delete null-key messages by default, introduces WebSocket API updates, improves security for connector secrets, and enhances the CLI user experience.

### Source excerpt

The Apache Pulsar community is thrilled to announce the launch of Apache Pulsar 3.2, a new feature release! This achievement is the result of a significant community collaboration, involving 57 contributors who made over 88 commits to add new features and fix bugs. Our heartfelt thanks go out to every contributor for their invaluable work!

## How Apple built iCloud to store billions of databases

DevFeed: [How Apple built iCloud to store billions of databases](<https://devfeed.tech/articles/how-apple-built-icloud-to-store-billions-of-databases-39087.md>)

Original publisher: [Read original article](<https://read.engineerscodex.com/p/how-apple-built-icloud-to-store-billions>)

Author: Engineer's Codex

Published: 2024-01-14T21:53:05Z

Content type: article

Language: en

Sources: [Engineer's Codex](<https://devfeed.tech/sources/engineer-s-codex.md>)

Topics: [Apache Cassandra](<https://devfeed.tech/topics/cassandra.md>), [Database](<https://devfeed.tech/topics/database.md>), [Multitenancy](<https://devfeed.tech/topics/multitenancy.md>), [Cloud](<https://devfeed.tech/topics/cloud.md>), [NoSQL](<https://devfeed.tech/topics/nosql.md>), [Architecture & Design](<https://devfeed.tech/topics/architecture-design.md>), [Scalability](<https://devfeed.tech/topics/scalability.md>)

Tags: [architecture](<https://devfeed.tech/tags/architecture.md>), [cassandra](<https://devfeed.tech/tags/cassandra.md>), [cloud](<https://devfeed.tech/tags/cloud.md>), [database](<https://devfeed.tech/tags/database.md>), [nosql](<https://devfeed.tech/tags/nosql.md>), [scalability](<https://devfeed.tech/tags/scalability.md>), [separate](<https://devfeed.tech/tags/separate.md>)

### AI overview

This article examines how Apple built iCloud and CloudKit using FoundationDB and Cassandra. It discusses the systems' extreme multi-tenant architecture and engineering choices such as asynchronous processing, stateless design, resource isolation, and layered abstractions to support scalability, reliability, availability, and developer experience.

### Source excerpt

Apple uses Cassandra and FoundationDB for CloudKit, their cloud backend service. We take a look into how exactly each is used within their cloud and the problems they've solved.

## Measuring uptime for Neon's multi-tenant architecture

DevFeed: [Measuring uptime for Neon's multi-tenant architecture](<https://devfeed.tech/articles/measuring-uptime-for-neon-s-multi-tenant-architecture-5593.md>)

Original publisher: [Read original article](<https://neon.com/blog/multi-tenant-uptime>)

Author: Stas Kelvich

Published: 2023-12-08T21:49:03Z

Content type: article

Language: en

Sources: [Blog -- Neon Docs](<https://devfeed.tech/sources/blog-neon-docs.md>)

Topics: [Multitenancy](<https://devfeed.tech/topics/multitenancy.md>), [incident](<https://devfeed.tech/topics/incident.md>), [Monitoring](<https://devfeed.tech/topics/monitoring.md>), [Incident response](<https://devfeed.tech/topics/incident-response.md>), [systems](<https://devfeed.tech/topics/systems.md>), [Cloud](<https://devfeed.tech/topics/cloud.md>), [Databases](<https://devfeed.tech/topics/databases.md>)

Tags: [architecture](<https://devfeed.tech/tags/architecture.md>), [cloud-native](<https://devfeed.tech/tags/cloud-native.md>), [community](<https://devfeed.tech/tags/community.md>), [databases](<https://devfeed.tech/tags/databases.md>), [distributed](<https://devfeed.tech/tags/distributed.md>), [distributed-system](<https://devfeed.tech/tags/distributed-system.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [incident](<https://devfeed.tech/tags/incident.md>), [incident-response](<https://devfeed.tech/tags/incident-response.md>), [monitoring](<https://devfeed.tech/tags/monitoring.md>), [monitoring-alerting](<https://devfeed.tech/tags/monitoring-alerting.md>), [platform](<https://devfeed.tech/tags/platform.md>), [postgres](<https://devfeed.tech/tags/postgres.md>), [storage](<https://devfeed.tech/tags/storage.md>), [uptime](<https://devfeed.tech/tags/uptime.md>)

### AI overview

Neon explains why it removed the default uptime percentage from its status page and is exploring project-level uptime ranges to better represent service health across its multi-tenant distributed system.

### Source excerpt

In the past two months, we've had several incidents that affected different aspects of our service. We've been transparent about them, and we made sure that each major one included details on what happened, the size of the impact, and what we're doing to prevent it from happening...

## Surprising Scalability of Multitenancy

DevFeed: [Surprising Scalability of Multitenancy](<https://devfeed.tech/articles/surprising-scalability-of-multitenancy-12535.md>)

Original publisher: [Read original article](<http://brooker.co.za/blog/2023/03/23/economics.html>)

Author: Marc Brooker

Published: 2023-03-23T00:00:00Z

Content type: article

Language: en

Sources: [Marc Brooker's Blog](<https://devfeed.tech/sources/marc-brooker-s-blog.md>), [Marc Brooker's Blog](<https://devfeed.tech/sources/marc-brooker-s-blog-2.md>)

Topics: [Multitenancy](<https://devfeed.tech/topics/multitenancy.md>), [Scalability](<https://devfeed.tech/topics/scalability.md>), [Amazon S3](<https://devfeed.tech/topics/amazon-s3.md>), [Cloud](<https://devfeed.tech/topics/cloud.md>)

Tags: [architecture](<https://devfeed.tech/tags/architecture.md>), [cloud](<https://devfeed.tech/tags/cloud.md>), [cost](<https://devfeed.tech/tags/cost.md>), [economics](<https://devfeed.tech/tags/economics.md>), [multitenancy](<https://devfeed.tech/tags/multitenancy.md>), [performance](<https://devfeed.tech/tags/performance.md>), [s3](<https://devfeed.tech/tags/s3.md>), [scalability](<https://devfeed.tech/tags/scalability.md>), [storage](<https://devfeed.tech/tags/storage.md>), [systems](<https://devfeed.tech/tags/systems.md>)

### AI overview

The article explains how multi-tenancy improves the economics and scalability of cloud systems by reducing the overall peak-to-average traffic ratio. Using Amazon S3 as an example, it describes how distributing customer workloads across many storage devices can support high individual workload peaks without making the overall system disproportionately expensive.

### Source excerpt

Surprising Scalability of Multitenancy When most folks talk about the economics of cloud systems, their focus is on automatically scaling for long-term seasonality: changes on the order of days (fewer people buy things at night), weeks (fewer people visit the resort on weekdays), seasons, and holidays. Scaling for this kind of seasonality is useful and important, but there's another factor that can be even more important and is often overlooked: short-term peak-to-average. Roughly speaking, the cost of a system scales with its (short-term1) peak traffic, but for most applications the value the system generates scales with the (long-term) average traffic. The gap between "paying for peak" and "earning on average" is critical to understand how the economics of large-scale cloud systems differ from traditional single-tenant systems. Why is it important? It's important because multi-tenancy (i.e. running a lot of different workloads on the same system) very effectively reduces the peak-to-average ratio that the overall system sees. This is highly beneficial for two reasons. The first-order reason is that it improves the economics of the underlying system, by bringing costs (proportional to peak) closer to value (proportional to average). The second-order benefit, and the one that is most directly beneficial to cloud customers, is that it allows individual workloads to have higher peaks without breaking the economics of the system. Most people would call that scalability. Example 1: S3 Earlier this month, Andy Warfield from the S3 team did a really fun talk at OSDI'23 about his experiences working on S3. There's a lot of gold in his talk, but there's one point he made that I think is super important, and worth diving deeper into: heat management and multi-tenancy. Here's the start of the relevant bit on heat2 management: Andy makes a lot of interesting point here, but the key one has got to do with the difference between the per object heat distribution, the per aggregat

## Supabase Realtime, with Multiplayer Features

DevFeed: [Supabase Realtime, with Multiplayer Features](<https://devfeed.tech/articles/supabase-realtime-with-multiplayer-features-663.md>)

Original publisher: [Read original article](<https://supabase.com/blog/supabase-realtime-with-multiplayer-features>)

Author: Wen Bo Xie

Published: 2022-04-01T07:00:00Z

Content type: release

Language: en

Sources: [Supabase Blog](<https://devfeed.tech/sources/supabase-blog.md>)

Topics: [Supabase](<https://devfeed.tech/topics/supabase.md>), [WebSocket](<https://devfeed.tech/topics/websocket.md>), [Multitenancy](<https://devfeed.tech/topics/multitenancy.md>), [distributed-systems](<https://devfeed.tech/topics/distributed-systems.md>), [Concurrency](<https://devfeed.tech/topics/concurrency.md>), [Databases](<https://devfeed.tech/topics/databases.md>), [Streaming](<https://devfeed.tech/topics/streaming.md>), [Elixir](<https://devfeed.tech/topics/elixir.md>), [phoenix](<https://devfeed.tech/topics/phoenix.md>)

Tags: [apps](<https://devfeed.tech/tags/apps.md>), [architecture](<https://devfeed.tech/tags/architecture.md>), [concurrency](<https://devfeed.tech/tags/concurrency.md>), [databases](<https://devfeed.tech/tags/databases.md>), [developers](<https://devfeed.tech/tags/developers.md>), [elixir](<https://devfeed.tech/tags/elixir.md>), [extension](<https://devfeed.tech/tags/extension.md>), [features](<https://devfeed.tech/tags/features.md>), [multi-tenancy](<https://devfeed.tech/tags/multi-tenancy.md>), [phoenix](<https://devfeed.tech/tags/phoenix.md>), [postgresql](<https://devfeed.tech/tags/postgresql.md>), [streaming](<https://devfeed.tech/tags/streaming.md>)

### AI overview

Supabase announces a new version of Realtime that adds multiplayer capabilities alongside existing PostgreSQL change streaming. The release introduces multi-tenancy, distributed clusters, presence, broadcast messaging, and a more extensible WebSocket architecture for games and collaborative applications.

### Source excerpt

Today we're announced Realtime, with multiplayer features. Realtime enables broadcast, presence, and listening to database changes delivered over WebSockets.

## Secure Apache Airflow Using Customer Security Manager

DevFeed: [Secure Apache Airflow Using Customer Security Manager](<https://devfeed.tech/articles/secure-apache-airflow-using-customer-security-manager-15839.md>)

Original publisher: [Read original article](<https://developer.squareup.com/blog/secure-apache-airflow-using-customer-security-manager>)

Author: Yifei Sun

Published: 2022-01-19T20:00:00Z

Content type: tutorial

Language: en

Sources: [Square Corner Blog](<https://devfeed.tech/sources/square-corner-blog-medium.md>), [Square Corner Blog RSS Feed](<https://devfeed.tech/sources/square-corner-blog-rss-feed.md>)

Topics: [airflow](<https://devfeed.tech/topics/airflow.md>), [Security](<https://devfeed.tech/topics/security.md>), [Access Control](<https://devfeed.tech/topics/access-control.md>), [Orchestration](<https://devfeed.tech/topics/orchestration.md>), [Multitenancy](<https://devfeed.tech/topics/multitenancy.md>)

Tags: [access-control](<https://devfeed.tech/tags/access-control.md>), [airflow](<https://devfeed.tech/tags/airflow.md>), [apache](<https://devfeed.tech/tags/apache.md>), [authz](<https://devfeed.tech/tags/authz.md>), [data-science](<https://devfeed.tech/tags/data-science.md>), [http](<https://devfeed.tech/tags/http.md>), [multi-tenancy](<https://devfeed.tech/tags/multi-tenancy.md>), [security](<https://devfeed.tech/tags/security.md>), [web](<https://devfeed.tech/tags/web.md>)

### AI overview

This article describes Square's security requirements for running Apache Airflow in a multi-tenant environment. It explains using a human proxy to pass user identities and capabilities to the Airflow web console through HTTP headers, supporting automatic login and role- and DAG-level access control without offline permission synchronization.

### Source excerpt

Leverage a human proxy to auto log users in airflow web console

## When Language Runtime Scheduling Fails in Multi-Tenant Services

DevFeed: [When Language Runtime Scheduling Fails in Multi-Tenant Services](<https://devfeed.tech/articles/pitfalls-of-language-runtimes-and-multi-tenant-29768.md>)

Original publisher: [Read original article](<https://goteleport.com/blog/multi-tenant-pitfalls/>)

Author: sasha@goteleport.com (Alexander Klizhentas)

Published: 2020-12-03T00:00:00Z

Content type: article

Language: en

Sources: [Teleport](<https://devfeed.tech/sources/teleport.md>)

Topics: [Programming](<https://devfeed.tech/topics/programming.md>), [Concurrency](<https://devfeed.tech/topics/concurrency.md>), [Go Language](<https://devfeed.tech/topics/go-language.md>), [Multitenancy](<https://devfeed.tech/topics/multitenancy.md>), [Software as a service](<https://devfeed.tech/topics/saas.md>)

Tags: [concurrency](<https://devfeed.tech/tags/concurrency.md>), [go](<https://devfeed.tech/tags/go.md>), [goroutines](<https://devfeed.tech/tags/goroutines.md>), [memory](<https://devfeed.tech/tags/memory.md>), [multi-tenancy](<https://devfeed.tech/tags/multi-tenancy.md>), [outage](<https://devfeed.tech/tags/outage.md>), [performance](<https://devfeed.tech/tags/performance.md>), [pitfalls](<https://devfeed.tech/tags/pitfalls.md>)

### AI overview

The article examines how language runtime scheduling can affect multi-tenant services. It uses Go examples to explain concurrent network workloads and shows how CPU-intensive work can let one tenant consume resources and degrade performance for others.

### Source excerpt

Explore edge-cases in which programming language runtimes fail to provide fair resource scheduling that leads to outages.

## How to Introduce Composite Primary Keys in Rails

DevFeed: [How to Introduce Composite Primary Keys in Rails](<https://devfeed.tech/articles/how-to-introduce-composite-primary-keys-in-rails-1422.md>)

Original publisher: [Read original article](<https://shopify.engineering/how-to-introduce-composite-primary-keys-in-rails>)

Author: John Arthorne

Published: 2020-10-29T19:00:36Z

Content type: tutorial

Language: en

Sources: [Shopify Engineering](<https://devfeed.tech/sources/shopify-engineering.md>), [Shopify Engineering - Shopify Engineering](<https://devfeed.tech/sources/shopify-engineering-shopify-engineering.md>)

Topics: [Rails](<https://devfeed.tech/topics/rails.md>), [Databases](<https://devfeed.tech/topics/databases.md>), [MySQL](<https://devfeed.tech/topics/mysql.md>), [Multitenancy](<https://devfeed.tech/topics/multitenancy.md>), [Scalability](<https://devfeed.tech/topics/scalability.md>), [Architecture & Design](<https://devfeed.tech/topics/architecture-design.md>)

Tags: [architecture](<https://devfeed.tech/tags/architecture.md>), [code](<https://devfeed.tech/tags/code.md>), [database](<https://devfeed.tech/tags/database.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [mysql](<https://devfeed.tech/tags/mysql.md>), [performance](<https://devfeed.tech/tags/performance.md>), [rails](<https://devfeed.tech/tags/rails.md>), [scalability](<https://devfeed.tech/tags/scalability.md>), [shopify](<https://devfeed.tech/tags/shopify.md>)

### AI overview

This Shopify engineering article explains how composite primary keys can improve data locality and query performance in a Rails application with a multi-tenant database architecture. It discusses how auto-incrementing primary keys interleave records from different shops, while queries commonly access one shop at a time, and introduces the relevant MySQL InnoDB storage concepts, including B+ trees and pages.

### Source excerpt

One line of code can 5x your Rails application performance. What if you could make a small change to your database design that would unlock massively more efficient data access? At Shopify, we dusted off some old database principles and did exactly that with the primary Rails application.

## Hard Multi-Tenancy in Kubernetes

DevFeed: [Hard Multi-Tenancy in Kubernetes](<https://devfeed.tech/articles/hard-multi-tenancy-in-kubernetes-35168.md>)

Original publisher: [Read original article](<https://blog.jessfraz.com/post/hard-multi-tenancy-in-kubernetes/>)

Published: 2018-05-18T19:17:58Z

Content type: article

Language: en

Sources: [Jessie Frazelle](<https://devfeed.tech/sources/jessie-frazelle.md>)

Topics: [Kubernetes](<https://devfeed.tech/topics/kubernetes.md>), [Multitenancy](<https://devfeed.tech/topics/multitenancy.md>), [Security](<https://devfeed.tech/topics/security.md>), [Architecture & Design](<https://devfeed.tech/topics/architecture-design.md>), [Software as a service](<https://devfeed.tech/topics/saas.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [kubernetes](<https://devfeed.tech/tags/kubernetes.md>), [multi-tenancy](<https://devfeed.tech/tags/multi-tenancy.md>), [security](<https://devfeed.tech/tags/security.md>), [vulnerabilities](<https://devfeed.tech/tags/vulnerabilities.md>)

### AI overview

This article examines hard multi-tenancy in Kubernetes, where tenants sharing a cluster are assumed not to trust one another. It argues that Kubernetes namespace isolation is not yet a sufficient security boundary and discusses the need for layered security, including isolation of the Kubernetes API.

### Source excerpt

EDIT: See my post on a design doc for a multi-tenant orchestrator instead. I wrote this when an internal requirement was to use Kubernetes but I do not personally think you should use Kubernetes for this use case. Kubernetes is the new kernel. We can refer to it as a "cluster kernel" versus the typical operating system kernel. This means a lot of great things for users trying to deploy applications. It also leads to a lot of the same challenges we have already faced with operating system kernels. One of which being privilege isolation. In Kubernetes, we refer to this as multi-tenancy, or the dream of being able to isolate tenants of a cluster. The models for multi-tenancy have been discussed at length in the community's multi-tenancy working group. NOTE: to view most of these Google docs you need to be a member of the kubernetes-wg-multitenancy Google group. There have also been some proposals offered to solve each model. The current model of tenancy in Kubernetes assumes the cluster is the security boundary. You can build a SaaS on top of Kubernetes but you need to bring your own trusted API and not just use the Kubernetes API. Of course, with that comes a lot of considerations you must also think about when building your cluster securely for a SaaS even. The model I am going to be focusing on for this post is "hard multi-tenancy." This implies that tenants do not trust each other and are assumed to be actively malicious and untrustworthy. Hard multi-tenancy means multiple tenants in the same cluster should not have access to anything from other tenants. In this model, the goal is to have the security boundary be the Kubernetes namespace object. The hard multi-tenancy model has not been solved yet, but there have been a few proposals. All systems have weaknesses and nothing is perfect. With a system as complex and large as Kubernetes it is hard to trust the entire system to not be vulnerable. In this regard and in the regard of the existing proposals, one single ex