Schema Sovereignty
One owner per schema.
A schema is shared mutable state. Shared mutable state needs an owner. Without one, every team that touches the database becomes a writer, every change is a coordination meeting and the tables drift away from the application that thinks it knows them.
Opinion
I've worked in two organisations where the “shared database” was the production architecture and the cost was always the same: a schema change took a week of Slack threads, a quarterly outage was traced back to a SELECT that locked a write table and the only person who knew which application owned which column had left the company in 2019. The rule isn't microservice dogma but the simplest rule that survives Conway's Law. One application owns the writes. Everyone else reads through a contract you can change without asking the BI team for permission.
The structural form is the directory. db/application/ matches the application schema; db/session/ matches the session schema. The table name in the migration is the same word as the type name in the code. See A1 Screaming Architecture: the vocabulary in ls is the vocabulary in the database. See A6 Bounded Contexts: the schema is the database side of the bounded context and the type system is the in-memory side. The ubiquitous-language thread runs from the column name through the type to the function name to the test name. Schema sovereignty is the rule that keeps the thread intact.
Copy a note and link
Grab this short comment and drop it into a PR comment or an LLM chat to prompt the right change.
Each schema has exactly one owning application. Schema changes go out as migrations from that repo. External tools read through their own tables, materialised views, or replicas. The directory layout mirrors the schema. Cross-context reads go through an ACL. /tenet/schema-sovereignty/T4
AI eyes only
Rule: one owner per schema. Cross-context reads go through views or APIs, never direct.
Reject: a migration that touches another application's tables. Reject: a SELECT that joins across bounded contexts. Reject: writing to a schema this service does not own.
Generate: each schema has a single owning service. Other services read via published views, a BI replica, or an explicit API. Migrations live in the owning repo.
Diagnostic: list the schemas the change touches. If more than one, justify per schema or split the change.
Why?
- Schema changes come from one repo. No coordination meeting, no DBA queue, no cross-team Slack thread: the migration runs in the deploy that puts out the code that needed it.
- No spooky action at a distance. The application that owns a table is the only application that writes to it. A row that changes outside that path is a defect, not a mystery.
- Analytics, BI and downstream services live in their own tables, materialised views, or replicas. Renaming a column does not page the data team.
- The directory layout matches the schema.
lsis a map of the database. Pair it with A1 Screaming Architecture and the same vocabulary runs from the column to the type to the test. - A bounded context that grows into its own service inherits its schema with it.
db/session/moves with the session service the day you extract it. - Cross-context reads go through an Anti-Corruption Layer. The translation lives in code that the next reader can audit, not in a JOIN buried in a query plan.
- The agent can't accidentally edit two schemas in one PR. The directory enforces the boundary. The architecture test enforces the import direction.
Origins
The argument is older than microservices and broader than any one architectural era. Eric Evans's 2003 Domain-Driven Design chapter on Bounded Contexts gave the modern vocabulary: a model only makes sense within its context and the context is the unit of ownership.4 Where two contexts share a database, the model is leaking. Where they share a table, the leak is structural. The Anti-Corruption Layer pattern from the same book is the working surface: cross-context reads translate the external schema into the bounded-context type at the boundary, never inside the domain.
Greg Young's 2010 CQRS Documents sharpened the rule: the read model and the write model serve different consumers, and each owns its own schema.5 Martin Fowler's PolyglotPersistence bliki entry from 2011 added the operational case: different stores for different jobs, each owned by one bounded context.6 Vlad Khononov's Learning DDD (2021) holds the modern restatement: the database is part of the bounded context, not a shared resource.
The microservices literature operationalised the rule. Sam Newman's Building Microservices made “don't share databases” the load-bearing chapter title, and Chris Richardson's Microservices Patterns formalised the database-per-service pattern.7 ThoughtWorks' Tech Radar has carried “shared databases” on the Hold ring for over a decade. Robert C. Martin's Clean Architecture ch. 30 gives the idea in plain English: The Database Is a Detail, the application owns the schema; the database is an implementation choice.8
The structural form, where the directory mirrors the schema, belongs to the Prickles canon, drawn from PUP-Phoenix's db/application/ and db/session/ directories that match the live PostgreSQL schemas. That argument is the database-layer expression of A1 Screaming Architecture and ubiquitous language: the directory layout is the same vocabulary as the schema, which is the same vocabulary as the domain. The ubiquitous-language thread runs end to end.
Quotes
Don't share databases unless you really need to. And even then do everything you can to avoid it. In my opinion, sharing databases is one of the worst things you can do if you're trying to achieve independent deployability.
Explicitly define the context within which a model applies. Explicitly set boundaries in terms of team organization, usage within specific parts of the application, and physical manifestations such as code bases and database schemas.
This trend will be complementary to the trend of breaking up application code into separate components integrating through web services. A component boundary is a good way to wrap a particular storage technology chosen for the way its data in manipulated.
From an architectural point of view, the database is a non-entity—it is a detail that does not rise to the level of an architectural element.
Evidence
16 external sources, ranked by author authority. The first five are the canon; expand to see the rest, including the qualifiers and the named opposers. Each links out to its primary source.
- 01The architectural form of one owner per schema. A bounded context owns its model. The schema is the model’s database side. Cross-context reads translate at the boundary.
- 02CQRS DocumentsSupportsThe seminal essay that sharpened the rule: read and write models serve different consumers and each owns its own schema.
- 03PolyglotPersistence (bliki)SupportsThe operational case for one schema per bounded context: different stores for different jobs, each owned by exactly one writer.
- 04The bridge between Evans’s vocabulary and a real codebase. The chapter formalises the Anti-Corruption Layer as the mechanism for honouring schema sovereignty across contexts.
- 05The load-bearing chapter title is “Don’t share databases”. The 2e softens to “be careful with shared databases”. The ownership rule survives the softening.
- 06Database-per-service formalised as a pattern. The schema is part of the service’s contract. Cross-service reads go through the API.
- 07The pattern reference. One service, one schema, one writer. Cross-service queries are an anti-pattern that hides coupling in the join planner.
- 08Modern restatement: the database is part of the bounded context, not a shared resource. Folder layout per bounded context as a structural decision.
- 09DatabaseEvolution (article)SupportsThe migration discipline. Schema changes go out as application code, version-controlled, tested, deployable as part of the application’s release.
- 10The canonical reference for migration discipline. Forward-only, numbered changes. The database evolves with the application that owns it.
- 11The application owns the schema. The database is an implementation choice. The chapter underwrites the “one owner” rule from a different angle.
- 12MonolithFirst (bliki)QualifiesThe steelman against premature splitting: if you cannot draw the bounded contexts, the shared database is a cheaper place to learn the boundaries than the wrong distributed split.
- 13Backing services (databases included) are attached resources, not shared mutable state. The structural form of schema sovereignty for cloud-native deployments.
- 14Shared-database integration has been on the Hold ring for over a decade. The industry verdict on the anti-pattern.
- 15Drizzle ORM: MigrationsSupportsThe operational form: schema lives in the application repo as TypeScript. Migrations are application code. The same vocabulary runs from the table to the type.
- 16Prisma MigrateSupportsSchema-first migrations as application code. The Prisma schema is the canonical declaration. The migrations are derived and version-controlled.
Sixteen sources, the supporters anchored in CQRS, Polyglot Persistence and the database-per-service literature. The qualifiers (Newman's second-edition softening, Fowler on monolith-first) hold the steelman the rule has to address: shared databases are sometimes the right answer for small teams who don't need the boundary yet. The opposers (the data-warehouse-as-source-of-truth school) argue that a centralised schema is a deliberate design choice rather than an accident.
Examples
Before analytics writes into the application's table. Two owners; both lose.
export async function recordObservation(tagId: string, weight: number): Promise<void> { await appDb.query( "UPDATE hedgehogs SET last_weight = $1, last_seen = NOW() WHERE tag_id = $2", [weight, tagId], ); }
After analytics owns its own schema; integration is an explicit consumer.
export async function recordObservation(event: HedgehogSpotted): Promise<void> { await analyticsDb.query( "INSERT INTO analytics.hedgehog_observations (tag_id, weight, seen_at)", "VALUES ($1, $2, $3)", [event.tagId, event.weight, event.observedAt], ); }
analytics/ subscriptions.tsthe application emits HedgehogSpotted on its outbox; analytics consumes it, with no cross-schema writesoutbox.subscribe("HedgehogSpotted", recordObservation);
Before analytics writes into the application's table. Two owners; both lose.
export async function recordObservation(tagId: string, weight: number): Promise<void> { await appDb.query( "UPDATE hedgehogs SET last_weight = $1, last_seen = NOW() WHERE tag_id = $2", [weight, tagId], ); }
After analytics owns its own schema; integration is an explicit consumer.
export async function recordObservation(event: HedgehogSpotted): Promise<void> { await analyticsDb.query( "INSERT INTO analytics.hedgehog_observations (tag_id, weight, seen_at)", "VALUES ($1, $2, $3)", [event.tagId, event.weight, event.observedAt], ); }
analytics/ subscriptions.tsthe application emits HedgehogSpotted on its outbox; analytics consumes it, with no cross-schema writesoutbox.subscribe("HedgehogSpotted", recordObservation);
Before analytics writes into the application's table. Two owners; both lose.
export async function recordObservation(tagId, weight) { await appDb.query( "UPDATE hedgehogs SET last_weight = $1, last_seen = NOW() WHERE tag_id = $2", [weight, tagId], ); }
After analytics owns its own schema; integration is an explicit consumer.
export async function recordObservation(event) { await analyticsDb.query( "INSERT INTO analytics.hedgehog_observations (tag_id, weight, seen_at)", "VALUES ($1, $2, $3)", [event.tagId, event.weight, event.observedAt], ); }
analytics/ subscriptions.jsthe application emits HedgehogSpotted on its outbox; analytics consumes it, with no cross-schema writesoutbox.subscribe("HedgehogSpotted", recordObservation);
Before analytics writes into the application's table. Two owners; both lose.
async def record_observation(tag_id: str, weight: float) -> None: await app_db.execute( "UPDATE hedgehogs SET last_weight = $1, last_seen = NOW() WHERE tag_id = $2", weight, tag_id, )
After analytics owns its own schema; integration is an explicit consumer.
async def record_observation(event: HedgehogSpotted) -> None: await analytics_db.execute( "INSERT INTO analytics.hedgehog_observations (tag_id, weight, seen_at)", "VALUES ($1, $2, $3)", event.tag_id, event.weight, event.observed_at, )
analytics/ subscriptions.pythe application emits HedgehogSpotted on its outbox; analytics consumes it, with no cross-schema writesoutbox.subscribe("HedgehogSpotted", record_observation)
Before analytics writes into the application's table. Two owners; both lose.
public void recordObservation(String tagId, double weight) { appDb.update( "UPDATE hedgehogs SET last_weight = ?, last_seen = NOW() WHERE tag_id = ?", weight, tagId ); }
After analytics owns its own schema; integration is an explicit consumer.
public void recordObservation(HedgehogSpotted event) { analyticsDb.update( "INSERT INTO analytics.hedgehog_observations (tag_id, weight, seen_at)", "VALUES (?, ?, ?)", event.tagId(), event.weight(), event.observedAt() ); }
analytics/ AnalyticsSubscriptions.javathe application emits HedgehogSpotted on its outbox; analytics consumes it, with no cross-schema writesoutbox.subscribe(HedgehogSpotted.class, recorder::recordObservation);
Before analytics writes into the application's table. Two owners; both lose.
public function recordObservation(string $tagId, float $weight): void { $this->appDb->execute( "UPDATE hedgehogs SET last_weight = :w, last_seen = NOW() WHERE tag_id = :id", ["w" => $weight, "id" => $tagId], ); }
After analytics owns its own schema; integration is an explicit consumer.
public function recordObservation(HedgehogSpotted $event): void { $this->analyticsDb->execute( "INSERT INTO analytics.hedgehog_observations (tag_id, weight, seen_at)", "VALUES (:tag, :w, :seen)", ["tag" => $event->tagId, "w" => $event->weight, "seen" => $event->observedAt], ); }
analytics/ AnalyticsSubscriptions.phpthe application emits HedgehogSpotted on its outbox; analytics consumes it, with no cross-schema writes$outbox->subscribe(HedgehogSpotted::class, $recorder->recordObservation(...));
Enforcement
Apply these rules in drizzle.config.ts. The full enforcement across every tenet lives on the implementation page.
| Rule | Tool | Catches |
|---|---|---|
| drizzle-kit generate / migrate | drizzle-kit | schema drift between the application’s declarative schema and the database. The kit refuses to generate when the database is ahead of the migrations. |
| schemaFilter (drizzle.config.ts) | drizzle-kit | migrations that touch a schema other than the one the application owns. Restricts every kit invocation to one schema name. |
| prisma migrate deploy | Prisma Migrate | the same forward-only discipline for Prisma shops. Schema-first declaration; migrations derived and version-controlled. |
| import/no-restricted-paths | eslint-plugin-import | cross-context db imports: src/contexts/application can’t reach into src/contexts/session/db. Same rule as A2 Three-Tier Hoisting, applied to schema boundaries. |
| dependency-cruiser custom rule | dependency-cruiser | the same upward-only direction expressed as a standalone CI step. Useful when ESLint is not the right surface (build scripts, monorepo boundary checks). |
drizzle.config.tsconfiguration snippet
import { defineConfig } from 'drizzle-kit';
export default defineConfig({
schema: './db/application/schema.ts',
out: './db/application/migrations',
dialect: 'postgresql',
dbCredentials: { url: process.env.DATABASE_URL! },
schemaFilter: ['application'],
verbose: true,
strict: true
});Apply these rules in drizzle.config.ts. The full enforcement across every tenet lives on the implementation page.
| Rule | Tool | Catches |
|---|---|---|
| drizzle-kit generate / migrate | drizzle-kit | schema drift between the application’s declarative schema and the database. The kit refuses to generate when the database is ahead of the migrations. |
| schemaFilter (drizzle.config.ts) | drizzle-kit | migrations that touch a schema other than the one the application owns. Restricts every kit invocation to one schema name. |
| prisma migrate deploy | Prisma Migrate | the same forward-only discipline for Prisma shops. Schema-first declaration; migrations derived and version-controlled. |
| import/no-restricted-paths | eslint-plugin-import | cross-context db imports: src/contexts/application can’t reach into src/contexts/session/db. Same rule as A2 Three-Tier Hoisting, applied to schema boundaries. |
| dependency-cruiser custom rule | dependency-cruiser | the same upward-only direction expressed as a standalone CI step. Useful when ESLint is not the right surface (build scripts, monorepo boundary checks). |
drizzle.config.tsconfiguration snippet
import { defineConfig } from 'drizzle-kit';
export default defineConfig({
schema: './db/application/schema.ts',
out: './db/application/migrations',
dialect: 'postgresql',
dbCredentials: { url: process.env.DATABASE_URL! },
schemaFilter: ['application'],
verbose: true,
strict: true
});Apply these rules in drizzle.config.ts. The full enforcement across every tenet lives on the implementation page.
| Rule | Tool | Catches |
|---|---|---|
| knex migrate:latest | Knex.js | the migration discipline for raw-SQL JS projects. Forward-only, numbered, run from the application’s deploy. |
| sequelize-cli db:migrate | Sequelize | the same forward-only discipline for Sequelize shops. Migrations are application code; the schema is the migration history. |
| dependency-cruiser forbidden | dependency-cruiser | cross-context db imports expressed as a CI rule. The standalone alternative when ESLint is not the right surface. |
| import/no-restricted-paths | eslint-plugin-import | cross-context db imports inside an ESLint config. |
drizzle.config.tsconfiguration snippet
import { defineConfig } from 'drizzle-kit';
export default defineConfig({
schema: './db/application/schema.ts',
out: './db/application/migrations',
dialect: 'postgresql',
dbCredentials: { url: process.env.DATABASE_URL! },
schemaFilter: ['application'],
verbose: true,
strict: true
});Apply these rules in .importlinter / alembic.ini. The full enforcement across every tenet lives on the implementation page.
| Rule | Tool | Catches |
|---|---|---|
| alembic upgrade head | Alembic | schema drift between the application’s declarative SQLAlchemy models and the database. Refuses to upgrade past unrecorded changes. |
| include_object filter | Alembic | autogenerated migrations that touch a schema the application does not own. The filter restricts the autogenerator to one schema. |
| forbidden contract (cross-context db) | import-linter | imports that cross context boundaries at the db layer: e.g., contexts.application.db reaching into contexts.session.db. |
| layers contract (acl-mediated cross-context) | import-linter | the rule that cross-context reads must go through the ACL package. Catches the silent direct-ORM use the architecture forbids. |
| yoyo-migrations migrate | yoyo-migrations | the migration discipline for raw-SQL Python projects. Useful when SQLAlchemy is not the data layer. |
.importlinter / alembic.iniconfiguration snippet
[importlinter]
root_packages =
myapp
[importlinter:contract:no-cross-context-db]
name = One application owns each schema; no cross-context db imports
type = forbidden
source_modules =
myapp.contexts.application.db
forbidden_modules =
myapp.contexts.session.db
myapp.contexts.billing.db
[importlinter:contract:acl-only-cross-context]
name = Cross-context reads must go through the ACL package
type = forbidden
source_modules =
myapp.contexts.application.domain
forbidden_modules =
myapp.contexts.session.db
myapp.contexts.billing.db
[tool.alembic]
script_location = db/application/migrations
sqlalchemy.url = ${DATABASE_URL}Apply these rules in src/test/java/com/example/archtests/SchemaSovereigntyTest.java. The full enforcement across every tenet lives on the implementation page.
| Rule | Tool | Catches |
|---|---|---|
| flyway migrate | Flyway | schema drift between the application’s SQL migrations and the database. Forward-only, version-numbered, refuses to apply out-of-order changes. |
| liquibase update | Liquibase | the same migration discipline expressed in YAML/XML/SQL changelogs. Useful when XML changelogs are the team’s convention. |
| noClasses().that().resideInAPackage() | ArchUnit | cross-context repository access: classes outside the owning context that touch a context’s repository tier. |
| @JsonTypeInfo entity boundary | Jackson | cross-context entity coupling at the JSON boundary. The discriminator-based deserialiser keeps shapes from one context from leaking into another. |
| schemaFilter (Hibernate) | Hibernate ORM | session-factory configuration that scans tables outside the owning schema. The filter restricts Hibernate to the schemas the application owns. |
| Multi-tenancy strategy = SCHEMA | Hibernate ORM | the operational form: one Hibernate session-factory per schema, with the per-tenant resolver enforcing the boundary at the connection layer. |
src/test/java/com/example/archtests/SchemaSovereigntyTest.javaconfiguration snippet
package com.example.archtests;
import com.tngtech.archunit.junit.AnalyzeClasses;
import com.tngtech.archunit.junit.ArchTest;
import com.tngtech.archunit.lang.ArchRule;
import static com.tngtech.archunit.lang.syntax.ArchRuleDefinition.noClasses;
@AnalyzeClasses(packages = "com.example")
public class SchemaSovereigntyTest {
@ArchTest
static final ArchRule no_cross_context_repository_access =
noClasses().that().resideInAPackage("com.example.contexts.application..")
.and().areNotAnnotatedWith("com.example.contexts.application.acl.AclOnly")
.should().dependOnClassesThat()
.resideInAnyPackage(
"com.example.contexts.session.repository..",
"com.example.contexts.billing.repository..");
@ArchTest
static final ArchRule no_external_writes_on_application_tables =
noClasses().that().resideOutsideOfPackage("com.example.contexts.application..")
.should().beAnnotatedWith("jakarta.persistence.Entity")
.andShould().dependOnClassesThat()
.resideInAPackage("com.example.contexts.application.entity..");
}Apply these rules in deptrac.yaml. The full enforcement across every tenet lives on the implementation page.
| Rule | Tool | Catches |
|---|---|---|
| doctrine:migrations:migrate | Doctrine Migrations | schema drift between Doctrine’s declarative schema and the database. Refuses to migrate past unrecorded changes. |
| phinx migrate | Phinx | the same migration discipline for non-Doctrine projects. Forward-only, numbered, run from CI. |
| layers + ruleset (cross-context db) | Deptrac | any class in one context’s db namespace that depends on another context’s db namespace: the cross-context-write anti-pattern. |
| directory collector (per schema) | Deptrac | namespaces that drift out of their assigned schema-context boundary: useful when the file path is the source of truth, not the namespace. |
| should-not-depend-on rules | PHPArkitect | the same cross-context rule expressed in PHP rather than YAML. Useful for repos that already lean fluent. |
| schema mapping (Doctrine) | Doctrine ORM | entity mappings that target tables outside the owning context’s schema. The schema attribute restricts Doctrine to the schemas the application owns. |
deptrac.yamlconfiguration snippet
deptrac:
paths:
- ./src
layers:
- name: ApplicationDb
collectors:
- type: directory
value: src/Contexts/Application/Db/.*
- name: SessionDb
collectors:
- type: directory
value: src/Contexts/Session/Db/.*
- name: ApplicationAcl
collectors:
- type: directory
value: src/Contexts/Application/Acl/.*
ruleset:
ApplicationDb: ~
SessionDb: ~
ApplicationAcl:
- SessionDb
formatters:
graphviz:
hidden_layers:
- ApplicationAclAI rules
.cursor/rules/t4-schema-sovereignty.mdc--- alwaysApply: true --- ## Prickles T4: Schema Sovereignty Give each schema exactly one owning application, and let only that application write to it. Everyone else reads through a defined contract. Schema changes go out as migrations from the owning application's repository. No DBA-side ALTER, no shared-schema convenience. External tools (analytics, replication, BI) read from their own tables, materialised views, or replicas: never the canonical write tables. The directory layout mirrors the schema. `db/<context>/` ↔ `<context>` schema. The same vocabulary runs from the table to the type to the function name. Cross-context reads go through an Anti-Corruption Layer. Cross-context writes are forbidden. The boundary is a published contract, not a JOIN.
Repo layout, CI, and ESLint wiring for these paths live on /implementation, not repeated on every tenet.
Counter-argument
The strongest steelman is Sam Newman's second-edition softening. The original “don't share databases” line in Building Microservices (2015) became “be careful with shared databases” in the second edition (2021), with explicit acknowledgement that database-per-service is operationally expensive and architecturally over-engineered for the team that does not need it yet.1 Martin Fowler's MonolithFirst argument extends the same line: when the bounded contexts cannot be drawn on a whiteboard with confidence, the shared database is a cheaper place to learn the boundaries than the wrong distributed split.2 The stronger steelman is the data-warehouse position: a single canonical schema where every business event lands is the cleanest way to answer cross-domain questions, and schema sovereignty by application boundary fragments the warehouse before the warehouse exists.
Counter-argument retort
Newman's softening is correct as a description and wrong as a doctrine. The second edition admits that database-per-service is operationally expensive. The first edition's load-bearing claim, that exactly one application owns the writes, survives the softening unchanged.1 Schema sovereignty is not database-per-service. A monolith with one schema and one writer is a sovereign-schema deployment. A monolith whose tables are written by a cron job, a Lambda and an in-database trigger is not. The rule is about ownership of writes rather than the count of databases.
The Fowler “monolith-first” counter is the right warning at the wrong target. Monolith-first is about service boundaries, not schema boundaries. A monolith should still have one writer per logical schema. A sub-domain that grows into its own service inherits its schema with it. The directory layout makes the inheritance trivial: db/session/ moves with the session service when you split it out. See A6 Bounded Contexts for the in-memory side of the same argument.
The data-warehouse counter answers itself. The warehouse is a downstream consumer that lives in its own schema, fed by extract / change-data-capture / replication. The warehouse’s schema is sovereign too: one owner, one writer, migration-controlled.3 The mistake is letting the warehouse read live application tables. The cure is the materialised view, the read replica or the CDC pipeline. None of those break schema sovereignty and all of them honour it.
The genuine residue is the small-team monolith where coordination is cheap and the schema changes once a month. There, the rule says: one writer is enough, you do not need database-per-service and you do need to know which application owns each table and to make every change as a migration from that application’s repo. The directory mirrors the schema, the same vocabulary runs from ls to the information_schema and the next developer reads the layout and knows the architecture.
In production code the shared schema is the comment that lies. The next reader trusts the table. The column has been written by three applications, one of them assuming it was a string and another an enum and a bug goes out. Migrate to one writer, one schema and one repo. The discipline is small. The cost of pretending you can share writes is large.
Notes
- [1]Sam Newman: Building Microservices, 2nd ed. (O’Reilly, 2021). The original “Don’t share databases” chapter title from 2015 became “Be careful with shared databases”. The one-owner-per-schema rule survives the softening.
- [2]Martin Fowler: MonolithFirst (martinfowler.com bliki, 2015). If you cannot draw the bounded contexts on a whiteboard, the shared database is a cheaper place to learn the boundaries than the wrong distributed split. The right warning at the wrong target for schema sovereignty.
- [3]Pramod Sadalage & Scott Ambler: Refactoring Databases: Evolutionary Database Design (Addison-Wesley, 2006). The canonical reference for migration discipline. The warehouse’s schema is sovereign too: one owner, one writer, migration-controlled.
- [4]Eric Evans: Domain-Driven Design (Addison-Wesley, 2003). Ch. 14 Bounded Context establishes the unit of ownership. Ch. 16 Anti-Corruption Layer establishes the cross-context translation pattern. The architectural form of the rule.
- [5]Greg Young: CQRS Documents (2010). The read model and the write model serve different consumers. Each owns its own schema. The seminal essay that sharpened the discipline.
- [6]Martin Fowler: PolyglotPersistence (martinfowler.com bliki, 2011). Different stores for different jobs, each owned by one bounded context. The operational case for one schema per writer.
- [7]Chris Richardson: Microservices Patterns (Manning, 2018), ch. 2. Database-per-service formalised as a pattern. Cross-service reads go through the API, never the join planner.
- [8]Robert C. Martin: Clean Architecture (Prentice Hall, 2017), ch. 30 The Database Is a Detail. The application owns the schema. The database is an implementation choice. The idea in plain English.