SShortSingh.
Back to feed

Three Data Isolation Patterns for Multi-Tenant SaaS and When to Use Each

0
·11 views

Every SaaS product must decide how to keep each customer's data separate, a choice that shapes security, cost, performance, and enterprise readiness. The article outlines three approaches: a shared schema where every row carries a tenant ID, a separate schema per tenant within one database, and a dedicated database for each tenant. Shared schemas are cheapest and simplest but risk leaks from a single missing filter, which PostgreSQL Row-Level Security can mitigate by enforcing isolation at the database level. Schema-per-tenant offers stronger isolation and per-tenant backups but struggles to scale beyond a few thousand tenants, while database-per-tenant gives the strongest isolation and compliance at the highest infrastructure cost. The authors suggest a hybrid path, starting small customers on a shared schema and moving large or regulated clients to dedicated databases as needed.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Study finds chatbots lose story details by turn 15; new open-source engine keeps canon intact

A 2026 benchmark of ten AI storytelling apps found that pure chatbot designs often forget or invent details, such as a pet's name planted early in a conversation, by around the fifteenth turn. The authors attribute this to rolling summaries and prompt recency pushing older facts out of context. Their proposed remedy is a structured story engine that stores canonical state in a separate, branch-isolated ledger, with a fixed story frame pinned to the context. The team has released the minimal engine and a Model Context Protocol server so developers can test branching narratives locally. The underlying data and preprint are publicly available for review.

0
ProgrammingDEV Community ·

Apple Removes Several AI Companion Chat Apps From US App Store, Most Still Reachable on Web

Between October and November 2026, Apple pulled a group of AI character-chat apps from the US iOS App Store amid tighter user-generated content rules, child-safety scrutiny, and updated age-rating requirements for romantic virtual companions. A November 28 check of Apple's public US iTunes search and lookup API across 11 platforms found Chai AI, SpicyChat, PolyBuzz, Talkie, Tipsy Chat, Zeta, and Linky removed or unlisted, while Ouba, Character.AI, Kindroid, and Janitor remained listed. Searches for the removed brands also surfaced third-party clone apps near the top of results. The author notes that apps offering free web access were better able to keep users reachable after the removals.

0
ProgrammingDEV Community ·

RightClick Unchained, a Chrome extension restoring right-click and copy-paste, is live on the Web Store

RightClick Unchained is a new Chrome extension that restores the browser context menu, text selection, copy, cut, and paste on websites that disable them. Version 1.0.2 is now listed on the Chrome Web Store, with its MIT-licensed source code published on GitHub. Each of the four restored actions can be toggled separately, and users can choose a Smart mode that keeps site scripts running or an Absolute mode for stubborn pages, set per domain. The extension is built on Manifest V3, collects no analytics or tracking, and stores site rules locally, with additional tools like Text Lasso and Force Copy for selecting and copying text.

0
ProgrammingDEV Community ·

flutter_local_notifications drops scheduled alerts on non-Gregorian device calendars

Scheduled notifications built with zonedSchedule on iOS and macOS silently fail to fire when the device calendar is set to Islamic, Buddhist, or Japanese. The plugin decomposes the target date using the device's current calendar, so Gregorian dates get converted into Hijri or other components that UNCalendarNotificationTrigger reads as a date hundreds of years in the past. The trigger is discarded without any error or log. The fix forces a Gregorian calendar for the decomposition on both platforms, a two-line change per platform. The developer confirmed the fix on an iOS Simulator set to an Arabic Saudi locale, but has not yet tested the Thai Buddhist or Japanese imperial calendars.