The engineering event schema registry selection decision record: why the registry model you chose determines your schema contract enforcement ceiling and your cross-team schema discoverability surface
Schema registry selection is treated as an infrastructure convenience choice — Confluent Schema Registry because it's the first Google result for "Kafka schema registry", AWS Glue because the team is already on MSK, schema-in-git because a registry feels like operational overhead for a small team — not as a founding enforcement and discoverability decision whose consequences compound with every new event type and every new consumer team. The first registry selection decision propagates its enforcement model, its local development integration, its subject ownership rules, and its schema browsing surface to every subsequent producer team onboarding, every compliance audit, and every incident where a schema change was deployed without the registry being positioned to catch it. Three founding choices — the registry operational model, the subject ownership and access control model, and the local development integration model — determine how completely schema contract violations can be caught before production, how discoverable event schemas are to engineers who did not build the platform, and how much accidental damage a developer with correct credentials but incorrect intent can do to a shared schema subject.
A 23-person developer tools startup building a workflow automation platform adopted Apache Kafka as its inter-service event bus during a two-week infrastructure sprint eighteen months before the incident. The founding engineer evaluated two schema management options: Confluent Schema Registry (self-hosted, would require a dedicated instance and operational runbook) and schema-in-git (schemas stored as Avro files in a dedicated schemas/ subdirectory of the platform monorepo, with a JSON Schema validator and a custom Avro compatibility checker running as CI pipeline steps on any PR that modified a file in the schemas/ directory). The engineer chose schema-in-git: the team was six engineers across three services, the CI checker enforced Avro format validity, and the operational overhead of running a schema registry was disproportionate to the coordination benefit at that team size. The decision was noted in a Slack message in the #infrastructure channel and not documented elsewhere.
Eighteen months and four acquisition-triggered engineering hiring rounds later, the platform had grown to 47 microservices across 12 product teams, consuming or producing 120 distinct Avro event types from the central Kafka cluster. The schemas/ directory had accumulated 340 commits across 18 months. Each schema change had gone through the PR process — the CI Avro format validator ran on every change and had caught numerous malformed Avro files. The CI compatibility checker ran a diff between the new schema version and the previously committed schema version for the same event type. What the CI compatibility checker did not do was enforce backward compatibility rules: it compared schema files, flagged structural changes (field additions and removals), and printed warnings — but warnings were non-blocking. Engineers had learned that compatibility warnings in the CI output were routine and expected; no PR had been blocked by a compatibility warning since the schema-in-git system was introduced.
The compatibility warnings were non-blocking by design: the original compatibility checker was written to be informational, not gating, because the team at the time was six engineers who coordinated informally and treated schema changes as shared code changes reviewed by everyone involved. As the team grew to 47 services and 12 product teams, the original design assumption — that every schema change PR was reviewed by all affected consumer teams — became structurally false: a schema change PR in the schemas/ directory had a CODEOWNERS rule that required review from the @platform-team group, which had grown to twelve engineers with broad scope; the platform team reviewed for format validity and flagged obvious structural changes, but did not systematically identify and tag all consumer teams for each schema change. The platform team's review comment on schema PRs was typically "LGTM — Avro format valid, compatibility warning on removed_field_x is expected per the migration plan." Consumer teams were not tagged as required reviewers.
When the company's security team initiated a SOC 2 Type II readiness assessment fourteen months after the original schema-in-git decision, the assessment included a schema governance audit: an external auditor asked the platform team to demonstrate that all event schemas used in production were backward-compatible with the previous version and that schema changes were reviewed by all affected consumer teams before deployment. The platform team ran a systematic compatibility audit: for each of the 120 event types, they compared the current production schema (the latest commit in the schemas/ directory) against the previous version using a strict backward-compatibility checker that treated warnings as failures. Eleven event types had incompatible current-to-previous-version changes: five had field removals that had been executed as direct schema modifications rather than dual-write migrations, three had field renames (equivalent to field removal plus field addition), and three had type narrowing changes (nullable to non-nullable on fields that were still being populated as null by some producer service instances in staging). None of the eleven incompatibilities had produced consumer incidents — the consumers affected by the removed and renamed fields had been updated before or alongside the producer schema changes, so the incompatibility existed in the schema history but not in the production deployment. For the SOC 2 auditor, the existence of the incompatibility in the schema version history was the finding — the evidence showed that schema changes could be deployed that violated backward compatibility and the enforcement system would not block them. The remediation required migrating from schema-in-git to a Confluent Schema Registry with BACKWARD compatibility mode and implementing a consumer team acknowledgment requirement for all schema changes. The migration took eight weeks across all 120 event types.
A 41-person data platform company providing a business intelligence infrastructure product ran an event pipeline on Apache Kafka for real-time data synchronization between customer data sources and their analytics platform. The team had adopted Confluent Schema Registry (open-source, self-hosted) two years earlier when the platform grew from one team to three. The registry ran on a single t3.medium EC2 instance as a Docker container, managed by the platform team. When the registry was first deployed, the Confluent documentation recommended Zookeeper-based schema storage — schemas were stored in Zookeeper alongside the Kafka broker metadata. The registry had been in production for two years, managing schemas for 67 event types across 11 Kafka topics.
When Confluent deprecated Zookeeper-based schema storage in Confluent Schema Registry version 7.0 in favor of Kafka-based storage (storing schemas in a compacted internal _schemas Kafka topic), the platform team planned a storage migration. The migration was a one-way operation: once the registry was switched to Kafka-based storage, it could not be reverted to Zookeeper. The Confluent migration runbook required: (1) taking a full Zookeeper schema export, (2) stopping the schema registry, (3) updating the registry configuration to use Kafka-based storage with kafkastore.bootstrap.servers, (4) starting the registry, which would automatically migrate existing schemas from Zookeeper to the _schemas topic, and (5) verifying the migration by comparing the subject list and schema version counts before and after.
The platform team engineer executing the migration ran steps 1 through 4 on a Friday afternoon, targeting a low-traffic window. The registry started successfully and began the migration. During the migration, three producer services belonging to the reporting team happened to deploy new schema versions as part of their Friday afternoon release window — schema versions that were queued in the deployment pipeline and had not been held for the maintenance window. The registry's migration process was reading schema versions from Zookeeper and writing them to the _schemas topic; simultaneously, the three new schema registration calls from the reporting team's deployments were writing new versions directly to the _schemas topic (bypassing Zookeeper entirely, since the registry was now in Kafka storage mode). The write interleaving corrupted the schema version sequence for the three affected event types: the migration wrote version 4 of report.ReportGenerated to position 5 in the _schemas topic, but the reporting team's deployment had already written a new version to position 5. The _schemas compaction logic resolved the conflict by retaining the later write (the reporting team's new schema version), dropping the migrated version 4. The registry's subject version index showed version 4 as missing for report.ReportGenerated — the version gap caused all schema version range queries for that subject to return an error when traversing the history.
The platform team discovered the corruption the following Monday morning when the analytics consumer team reported that their Avro deserialization library was throwing a schema version not found error when attempting to process historical messages from the report.ReportGenerated topic. The analytics consumer used schema ID references in message headers (a Confluent schema ID embedded in the first five bytes of the Avro-serialized message) — a consumer reading a message with schema ID corresponding to version 4 of report.ReportGenerated requested that schema from the registry and received a 404. The registry could not return version 4 because the migration had not persisted it correctly. Three event types had the same gap: report.ReportGenerated (missing version 4), report.DataSourceSyncCompleted (missing version 2), and billing.InvoiceLineItemCalculated (missing version 3). The historical messages in those topics — messages that had been produced before the migration, with schema IDs referencing the missing versions — were unreadable by any consumer that used schema ID references for deserialization. The platform team estimated that approximately 2.1 million historical messages across the three topics referenced the missing schema versions. Those messages could not be reprocessed without schema reconstruction. The platform team spent two days reconstructing the missing schema versions from the Zookeeper export backup (step 1 of the migration runbook had been executed, so the export existed), manually registering the reconstructed versions with the correct schema IDs in the registry, and verifying that the registration restored the consumer's ability to deserialize historical messages. The remediation also included a post-migration runbook addition: schema registration calls from producer deployments must be deferred during storage migration windows, enforced via a migration mode flag in the registry that rejects all registration API calls during the migration phase.
A 58-person B2B SaaS company providing a customer success platform had run Apache Kafka on Amazon MSK for three years. When the data engineering team evaluated schema registry options for a new real-time customer health score pipeline, the team selected AWS Glue Schema Registry: the company was deeply invested in the AWS ecosystem, the platform team had no bandwidth to operate another self-hosted service, and AWS Glue Registry integrated directly with the MSK cluster without requiring any additional infrastructure. The selection was made in a team planning meeting and noted in the meeting minutes; no ADR was written. The integration was straightforward — the Avro serializer for MSK integrated with Glue Registry via the GlueSchemaRegistrySerializerConfig, and schema registration happened automatically at the first message production for each schema. Schema subjects were scoped by registry name and schema name; the company used three registry names: production, staging, and development.
AWS Glue Schema Registry has no local container option. Unlike Confluent Schema Registry (which has a Docker image for local development) or Apicurio (which also ships a container), Glue Registry is a cloud-managed service that requires AWS credentials and network access to the Glue API endpoint. Local development for the customer success platform required developers to run consumer services locally against a Kafka broker (also local, running in Docker), consuming messages from a local Kafka topic. The local consumer services needed schema definitions to deserialize incoming Avro messages. The team's solution was to configure local development to use the development Glue registry with AWS credentials sourced from a shared IAM user whose credentials were committed to the development team's local environment setup documentation in Confluence. The IAM user had write access to the development and staging Glue registries and read access to the production registry.
Three months after the Glue Registry adoption, a data engineer on the customer health score team was debugging a schema deserialization failure in their local environment. The engineer was running a local version of the health score consumer service against a local Kafka broker, consuming messages that had been captured from the staging environment and replayed locally. The consumer service's serialization configuration pointed to the staging Glue registry (the engineer had copied the staging environment's configuration block to their local application-local.yml without changing the registry name from staging to development). During the debugging session, the engineer modified the CustomerHealthScore Avro schema in their local branch — adding an experimental churnProbabilityV2 field they were testing — and ran the local producer to generate test messages. The MSK Avro serializer, configured to auto-register schemas on first production, registered the modified schema version against the staging Glue registry's CustomerHealthScore subject. The engineer did not notice the registration — the serializer logs the registration at DEBUG level, which was not configured for local console output.
The staging consumer CI pipeline ran nightly against the staging Glue registry. The next morning, the staging consumer CI for the CustomerHealthScore topic failed with a schema compatibility check error: the new schema version (registered from the engineer's local branch) had added a non-nullable field without a schema-level default, which violated the BACKWARD compatibility mode configured for the CustomerHealthScore subject in the staging registry. The CI pipeline's error message was: Schema being registered is incompatible with an earlier schema: BACKWARD incompatible: field churnProbabilityV2 added without a default. The staging pipeline did not block on registration — it ran a compatibility check as a separate step — but the compatibility check failure caused the staging consumer service deployment to be skipped, leaving the staging consumer running the previous version while the staging producer had deployed a new version that depended on the new field. The staging consumer began logging deserialization warnings for the new field. The staging data team investigated the registry compatibility failure and ran a Glue API query to identify which IAM user had registered the incompatible schema version. The registration audit log showed the shared development IAM user. The platform team spent three days tracing the registration back to the engineer's local debugging session, reverting the incompatible schema version from the staging registry (AWS Glue supports schema version deletion), and implementing subject-level write access controls: developer IAM users received write access only to the development registry; staging and production registry write access was restricted to CI service accounts. The IAM policy update was accompanied by a local development configuration standard that explicitly required developers to set registry.name=development in local configuration rather than copying staging or production configuration blocks.
Structural properties set by the schema registry selection decision
Two structural properties are determined by the founding decisions about registry operational model, subject ownership, and local development integration. Both are invisible during early development when the team is small, all schemas are owned by the same group of engineers, and the event bus is a convenience rather than a contract boundary. Both become visible when teams scale past informal coordination range, when schema changes are made by engineers who did not design the original schema, and when local development environments need to test against schema enforcement without touching production or staging subjects.
Property 1: Schema contract enforcement ceiling. The schema contract enforcement ceiling is the highest fidelity of schema contract enforcement that any producer team can achieve when registering a new schema version — the most reliable, most change-safe, least-surprise upgrade path — bounded by the properties of the registry model the team has selected. Three components. The enforcement point component: schema-in-git enforces schema correctness at PR review and CI check time, not at production deployment time; a CI compatibility check that passes on Monday when the PR is merged does not prevent the same engineer from deploying a hot-patch schema change on Thursday that bypasses the PR process during a production incident — and in multi-team environments under incident conditions, deployments that bypass the PR process are common; a schema registry that enforces at the registration API call catches the Thursday hot-patch because the registration call happens as part of the deployment pipeline regardless of the deployment path; the enforcement point determines whether schema contract enforcement can be bypassed through any deployment path that does not go through the PR process, and schema-in-git's enforcement ceiling is bounded by the team's PR process discipline under time pressure. Connect to the async message schema compatibility decision record: the compatibility mode selection decisions that determine which schema changes are permitted (BACKWARD, FORWARD, FULL, NONE) assume that the enforcement mechanism is a schema registry with API-time enforcement — a schema-in-git compatibility checker that treats compatibility warnings as non-blocking defeats the compatibility mode selection decision by allowing incompatible schema changes to be deployed through the PR-bypass path; the compatibility mode ADR and the registry selection ADR are co-dependent: the compatibility mode selection is only meaningful if the enforcement mechanism can enforce it uniformly across all deployment paths. The subject ownership model component: who can register a new schema version for a given event topic determines whether the enforcement point applies uniformly to all producer teams or selectively to teams with the least permission access; a schema registry with subject-level ACLs enforces ownership mechanically — the marketing team cannot register a new version of the payment events schema because they do not have write access to that subject; schema-in-git relies on CODEOWNERS or PR-review gatekeeping to enforce ownership, which requires that every PR changing a schema file is reviewed by the owning team before merge; under incident conditions, CODEOWNERS can be bypassed by repository administrators, and the registry's subject-level ACL is the only enforcement mechanism that cannot be bypassed without administrative access; the subject ownership model determines whether a schema change can be deployed under time pressure by a team that has production deployment access but not schema ownership — a gap that exists in almost every engineering organization and is exercised precisely during incidents when the pressure to unblock a deployment is highest. Connect to the secrets management decision record: the secrets management decisions that govern which credentials have write access to which production systems apply the same access control model that schema registry subject ownership requires — a shared IAM user with write access to multiple registry environments (development, staging, production) is the schema registry equivalent of a shared service account secret with cross-environment write access; both represent an access control scope that is too broad, both are created for developer convenience, and both produce incidents when a developer exercises the access in an environment that was not intended. The local development integration component: schema enforcement at registration time requires that local development environments can either register schemas against a real registry or run a local registry instance; a managed cloud registry that has no local container option forces developers to either use real cloud credentials in local development (creating accidental registration risk as demonstrated in the third failure pattern) or to disable schema enforcement in local environments (creating a gap between local and production enforcement that makes schema enforcement invisible to developers during local testing); the local development integration component determines how completely developers experience schema enforcement during local testing — and developers who have never seen a schema registration rejection locally will not understand what it means when they see it in CI, and will escalate it as an infrastructure error rather than a contract violation. Connect to the event-driven architecture decision record: the architecture decisions that determine the event topology (centralized event bus vs distributed point-to-point queues vs event mesh) affect where the schema enforcement is applied; a centralized event bus with a single schema registry provides a single enforcement point for all producer-consumer relationships on the bus; a distributed event topology where different producer-consumer pairs use different messaging systems may require different registry integrations per pair, producing an inconsistent enforcement surface where some pairs have registry enforcement and others rely on schema-in-git or informal coordination.
Property 2: Cross-team schema discoverability surface. The cross-team schema discoverability surface is the aggregate set of event schemas and version histories that any engineer at the company can discover, inspect, and understand without prior knowledge of which team owns which event type. Three components. The schema browsing model component: schema-in-git makes schemas discoverable only to engineers who know the git repository exists, know the directory structure where schemas are stored, know how to navigate the git history to find the version history of a specific schema, and understand Avro syntax well enough to read the schema file and infer what fields are available; the schema-in-git discoverability surface is bounded by the documentation quality of the repository README and the accessibility of git blame to non-git-expert team members — a data analyst who wants to understand what fields are available in the customer events stream must either find and read an Avro schema file or ask a senior engineer; a schema registry UI (Confluent Control Center, Apicurio Studio, or the Glue Schema Registry console) provides a browsable interface where any engineer can search by event type name, inspect the current schema version with field names and types rendered in a readable format, review the version history with dates and registering users, and understand the compatibility mode without reading a git log or Avro syntax; the discoverability surface determines how quickly a new engineer, a data analyst, or a product manager can understand what events the system produces and what fields are available, without asking a senior engineer to explain the schema ownership map — the schema registry UI is the event platform's API documentation surface. The multi-format consolidation component: a system that grows from a single team's Kafka cluster (Avro only) to a multi-team event mesh (Avro for domain events, JSON Schema for webhook events, Protobuf for high-throughput internal events) faces a discoverability consolidation problem if each format was introduced by a different team using a different schema management approach; Confluent Schema Registry and Apicurio support Avro, JSON Schema, and Protobuf under a single subject namespace with a single API surface — a single URL provides the complete schema inventory regardless of format; AWS Glue Schema Registry also supports all three formats; schema-in-git supports any format but provides no unified API for discovery across formats — each format may live in a different directory or repository with different tooling (Avro in schemas/avro/, Protobuf in proto/, JSON Schema in schemas/json/), requiring different tooling per format and no single discovery entry point; the multi-format consolidation component determines whether a new team onboarding to the event platform finds a single registry URL with all event schemas or a documentation page explaining which repository to look in for which format and which tooling to use. The version history preservation component: a schema registry that persists the full version history of every schema subject enables retrospective analysis — which team deployed schema version 7, when, what changed from version 6, and whether the change was backward-compatible; this history is the evidence surface for schema governance audits (the SOC 2 audit in the first failure pattern required exactly this evidence); schema-in-git provides the same history via git blame and git log if schema files are managed in a single commit per version, but the history is degraded when schema changes are bundled with application code changes in a single commit, when the git history is rewritten (force-push, squash merge), or when CODEOWNERS is not enforced and schema files are modified as a side-effect of non-schema PRs; the version history preservation component is a first-order input to any compliance audit of schema governance — teams that cannot demonstrate a complete, non-repudiated history of schema changes for compliance-sensitive event types will not pass the audit with schema-in-git if their commit discipline is imperfect.
The schema registry selection ADR: five sections
Section 1: Registry model selection. The registry model selection defines which schema management approach applies to which category of event topic, and the criteria for migrating between approaches as the team and event topology scale. Four tiers, applied per topic category. Schema-less (no schema definition, no enforcement, documentation-only): appropriate only for intra-team events where the producer and all consumers are in the same codebase, deployed as a single unit, and the event type is not used for data retention (the event is consumed and discarded, never read from an offset log); schema-less is not appropriate for any event type where a consumer team deploys independently of the producer, where the event is used for downstream analytics, or where the event carries compliance-sensitive data; schema-less topics must be explicitly marked in the topic registry with their applicability constraints. Schema-in-git (Avro, Protobuf, or JSON Schema files in a dedicated repository with CI compatibility checks): appropriate when the team has fewer than three inter-team event topics, all consumer teams have shared monorepo access and PR review authority over the schema directory, and the team has explicitly decided that the CI enforcement gap (no enforcement at deployment time) is acceptable given their deployment process discipline; schema-in-git requires that the CI compatibility check is fail-closed (a compatibility violation blocks the PR merge, not a warning that engineers learn to ignore) and that CODEOWNERS is enforced without bypass for all schema files; schema-in-git is a time-limited tier with a migration trigger: when the first event type gains three or more consumer teams with independent deployment schedules, that event type migrates to schema registry. Self-hosted registry (Confluent Schema Registry open-source, Apicurio): appropriate when the team requires subject-level ACL enforcement, local container support (Confluent and Apicurio both ship Docker images), or cannot use a managed service due to data residency requirements; self-hosted registry requires a high-availability deployment plan (minimum two registry instances behind a load balancer) with a schema backup and restoration runbook, and a storage migration runbook that includes a maintenance window specification preventing schema registration calls during the migration; the registry must be in the platform team's reliability monitoring, not treated as a stable appliance. Managed registry (Confluent Cloud, AWS Glue Schema Registry): appropriate when the platform team has no bandwidth to operate a self-hosted service, the team is not subject to data residency requirements that preclude cloud-managed services, and the managed service's pricing model is predictable at the team's schema registration volume; managed registry selection requires a local development integration plan that does not require developers to use production or staging registry credentials locally (see Section 3).
Section 2: Registry operational model. The registry operational model defines the reliability requirements for the schema registry, the storage backend configuration, and the registry maintenance procedures. Reliability requirements: the schema registry availability target must be explicitly scoped to its impact on producer deployments; if the producer deployment pipeline has a fail-closed schema registration step (the deployment fails if schema registration fails), the registry availability must meet the same SLA as the producer's deployment infrastructure; a schema registry that runs on a single instance without HA creates a single point of failure for all schema-change deployments; self-hosted registry deployments require: minimum two registry instances behind a load balancer, storage backend replication (Kafka-based storage with replication factor matching the Kafka cluster's replication factor), and health check integration with the deployment pipeline so that schema registration failures are distinguishable from registry availability failures. Storage backend selection: for Confluent Schema Registry, Kafka-based storage is the current recommended configuration; Zookeeper-based storage is deprecated and should not be used in new deployments; teams running Zookeeper-based storage must have a storage migration plan that includes: a migration window that prevents schema registration calls during the migration (registry maintenance mode flag or deployment pipeline hold), a Zookeeper schema export taken immediately before the migration as a backup, a post-migration verification step that compares subject lists and schema version counts between the export and the migrated registry, and a rollback runbook that describes how to restore from the Zookeeper export if the migration fails; the migration runbook must include an explicit instruction to block producer deployments during the migration window — the second failure pattern demonstrates that concurrent schema registrations during migration corrupt the schema version sequence. Registry version management: schema registry versions must be tracked alongside Kafka version upgrades in the platform team's upgrade planning; a schema registry running more than two major versions behind the current release accumulates upgrade path complexity; the platform team must maintain a maximum two-major-version lag policy with an annual registry version upgrade cycle; each major version upgrade must be tested in staging with a full subject list import before the production migration.
Section 3: Subject ownership and access control model. The subject ownership model defines which teams have write access to which schema subjects and what the approval process is for access changes. Per-team subject ownership: each schema subject is owned by the team that owns the event's producer service; producer ownership means that only the owning team's CI service account can register new schema versions for that subject; no other team has write access to the subject's schema versions, regardless of their role in the organization; the team's tech lead is the approver for any exception to the ownership model. Per-environment access segregation: schema registry instances are deployed per environment (production, staging, development); CI service accounts for production deployments have write access only to the production registry; CI service accounts for staging deployments have write access only to the staging registry; developer IAM users (or developer-bound registry API keys) have write access only to the development registry and read access to staging and production; the third failure pattern demonstrates the specific access control failure mode when developer credentials have write access to the staging registry — the access control model must be enforced at the IAM/RBAC level, not by convention; developers must not be able to accidentally register to staging or production regardless of their local configuration. Local development access policy: local development services use development registry credentials; the development registry may allow auto-registration (automatic schema registration on first message production without an explicit registration step) because development schema versions do not affect staging or production consumers; the staging and production registries must require explicit registration (not auto-registration) with the CI service account as the registration identity; the distinction between auto-registration (acceptable in development) and explicit-registration (required in staging and production) must be documented in the developer onboarding guide and enforced through IAM policy (auto-registration can only be performed by credentials with write access to the development registry). Connect to the secrets management decision record: the registry credentials — API keys for Confluent, IAM user credentials for AWS Glue, service account tokens for Apicurio — must be managed under the same secrets management policies as other service credentials; shared IAM users whose credentials are distributed in team documentation are equivalent to hardcoded secrets in source code; each environment's registry credentials must be scoped to that environment and rotated on the same schedule as other production credentials.
Section 4: Schema migration and format evolution model. The schema migration model defines how the team handles schema subject migrations, serialization format transitions, and schema history preservation requirements. Schema subject migration: when a topic requires a semver-major schema change (structural restructuring, serialization format change, envelope format change — per the breaking change classification in the async message schema compatibility ADR), the migration uses a new topic name (event_type_v2) rather than changing the compatibility mode of the existing topic's subject; the existing topic subject is deprecated with a minimum 90-day deprecation window; the new topic's first schema version is registered with BACKWARD or FULL compatibility mode from the start; the schema subject history of the deprecated topic is preserved in the registry for the full deprecation period plus 30 days before subject deletion. Schema-in-git to registry migration: teams migrating from schema-in-git to a registry must import all historical schema versions in correct version sequence order; the import must be performed by a CI-driven process that reads schema versions from the git history (oldest commit to newest), validates each version for Avro/JSON Schema/Protobuf format correctness, and registers each version in sequence with the same compatibility mode that will be used in production; the import process must produce a reconciliation report comparing the git-history version count per schema to the imported version count per subject in the registry, to detect any missing versions; a schema subject that has fewer versions in the registry than in the git history has a version gap that will cause consumer deserialization failures for messages produced against the missing schema versions. Schema history backup: regardless of registry type (self-hosted or managed), schema subjects must be backed up to an external store on a weekly schedule; the backup format is a JSON file per subject containing the subject name, compatibility mode, and ordered array of schema versions; the backup is used for registry restoration after a storage migration failure (as in the second failure pattern) or a registry data loss event; the backup restoration procedure must be tested annually by importing a subset of subjects from the backup to a development registry and verifying that schema IDs and version sequences are preserved.
Section 5: Registry as documentation standard. The registry as documentation standard defines how the schema registry becomes the single source of truth for schema discovery across all teams and what the developer experience looks like for schema browsing, consumer onboarding, and schema change communication. Single registry URL: each registry environment has a single canonical URL that is the entry point for all schema discovery; the URL is in the platform team's internal documentation, the developer onboarding guide, and the event platform README; there is one schema browser URL per environment and no alternative schema discovery surfaces (no separate Confluence pages with schema snapshots, no separate schema snapshot files in Slack); when a schema changes, the registry is the authoritative record — a Slack notification is supplementary, not primary. Connect to the API versioning decision record: the API versioning decisions that govern version communication and consumer notification apply the same framework to schema version changes — a schema version bump on a cross-team event type is equivalent to a minor or major API version bump and must follow the same communication pattern: a PR that includes the schema change links to the registry subject URL in its description, the PR description includes the breaking-change tier and the consumer team acknowledgment list, and the merge notification is sent to the #schema-changes channel with a direct link to the new schema version in the registry browser. Schema discoverability metrics: the platform team tracks schema discoverability via the registry's access logs — which subjects are queried most frequently, which consumer teams query the registry API in their local development (indicating that they are using the registry for schema discovery rather than relying on cached schemas), and which schema subjects have no registered consumer groups in the Kafka broker (indicating potential orphan topics or producer-only topics without active consumers); the discoverability metrics are reviewed quarterly and used to identify subjects that need documentation enrichment (subjects with high query volume and no Confluence page explanation of the event's business meaning) and subjects that may be candidates for deprecation (subjects with zero consumer group activity for more than 90 days).
FAQ
When does a team actually need a schema registry versus schema-in-git?
A team needs a schema registry (Confluent, Glue, Apicurio, or equivalent) rather than schema-in-git when any of the following conditions are true: the producer and consumer are owned by different teams with independent deployment schedules — schema-in-git can be enforced at PR time but cannot prevent a deployment from bypassing the PR process during an incident; a registry enforces at the registration API call, which happens as part of the deployment pipeline regardless of whether the change went through PR review. The event type carries compliance-sensitive data (payment events, PII events, audit events) that requires machine-enforceable schema change governance with a durable audit trail — schema-in-git provides a git history but not a registration audit trail that includes the registering service's identity. The number of event types has grown past the point where the team can manually track which consumer teams are using which versions — a schema registry provides a subjects list that maps event types to their current version and compatibility mode; schema-in-git requires a separate maintained consumer-to-schema-version mapping document that grows stale within weeks. The team has introduced multiple serialization formats and needs a single discovery surface — a schema registry with multi-format support provides one API for all schemas; schema-in-git with multi-format support requires navigating multiple directory structures and potentially multiple tools. Schema-in-git is appropriate when: the producer and consumer are in the same codebase deployed as a single unit, the team is small enough that informal schema coordination is reliable (typically fewer than 10 engineers across all teams using the event bus), and the CI compatibility check is fail-closed rather than warning-only. The migration from schema-in-git to a registry should be planned before the first inter-team event topic is configured, not after the first inter-team incompatibility incident — the first inter-team topic is the trigger for the registry selection decision.
What are the operational risks of self-hosting Confluent Schema Registry versus using a managed service?
Self-hosting Confluent Schema Registry introduces three categories of operational risk that managed services eliminate. Storage backend management: Confluent deprecated Zookeeper storage in favor of Kafka-based storage; teams running older schema registry versions face a storage migration that is a one-way operation — if the migration is interrupted while producer deployments are registering new schema versions concurrently, the schema version sequence can be corrupted, leaving schema version gaps that cause consumer deserialization failures for historical messages; self-hosting teams own this migration risk and the recovery path; Confluent Cloud and AWS Glue handle storage backend management transparently. Version migration risk: Confluent Schema Registry major version upgrades require rolling updates; self-hosting teams that skip registry version upgrades accumulate upgrade path complexity — a jump from version 5.5 to version 7.3 requires a multi-step migration rather than a single step; managed services handle version upgrades transparently. Reliability SLA ownership: the schema registry must be available whenever a producer service deploys a new schema version; a fail-closed schema registration step means that registry downtime blocks all producer deployments that include schema changes; a self-hosting team that runs the registry on a single instance without HA owns the reliability SLA for producer deployments; managed services provide multi-AZ availability by default. The corresponding risks of managed services: AWS Glue Schema Registry requires real AWS credentials in any environment that calls the registration API, including local development — there is no local container; a developer who copies staging credentials to their local configuration will have write access to the staging registry and can accidentally register development-branch schemas to the staging subject; Confluent Cloud is billed per schema registered per month, with pricing that is not predictable for systems with many short-lived schemas; both managed services introduce vendor lock-in at the schema registration API and serialization library level, making it harder to migrate to a different registry product later.
How should a team handle the local development registry problem?
The local development registry problem is that schema enforcement at registration time requires a registry to be reachable during local development — but developers running services locally do not want to depend on a cloud registry. Three approaches with different tradeoffs. First, local registry container: Confluent Schema Registry and Apicurio both have official Docker images; a docker-compose.yml that includes both a local Kafka broker and the schema registry allows developers to run the full local event stack with schema enforcement matching the production environment; developers experience registration rejections locally with the same error messages as production, making them familiar with the enforcement before they encounter it in CI; this is the right default for teams using self-hosted Confluent or Apicurio in production. Second, schema-in-code local bypass with CI enforcement: developers run services locally with schema validation disabled or using a local schema cache, and the CI pipeline runs against a development registry with full enforcement; acceptable when local development cycles are fast and CI runs within minutes; the risk is that developers who have never seen a schema registration rejection locally will misinterpret CI failures as infrastructure errors — requiring that the CI failure message explains the rejection clearly. Third, local schema compatibility checker as proxy: for teams using AWS Glue Registry or other cloud-only registries, a command-line tool that runs the same compatibility check logic as the registry provides a local enforcement proxy — not a registry (it does not persist schema versions or enforce subject ownership), but it catches common compatibility mistakes before the CI run; this approach is a reasonable intermediate step for teams migrating from schema-in-git to a managed registry. Regardless of approach: developer credentials must have write access only to a development registry, enforced at the IAM/RBAC level — not by convention — so that misconfigured local environments cannot accidentally pollute staging or production schema subjects.
How do schema registry selection decisions connect to AI chat sessions and decision preservation?
Schema registry selection decisions are made when the first inter-team Kafka topic is configured — the founding engineer evaluates registry options in an AI chat session, works through the tradeoffs between self-hosted and managed registries, decides whether schema-in-git is sufficient for the team's size and coordination model, and chooses a registry product — and that decision is almost universally made and immediately discarded as an implementation detail rather than recorded as a founding architectural decision. The reasoning in those sessions — the specific tradeoff between schema-in-git's operational simplicity and its enforcement gap at deployment time, the specific analysis of whether the team's CI pipeline coverage is sufficient to catch all schema changes without a registration-time registry, the specific evaluation of AWS Glue Schema Registry's managed-service convenience against its local development friction and accidental registration risk — is the substance of the registry selection design. It is almost universally made once and left unrecorded, leaving every engineer who joins the team afterward to infer the registry rationale from the CI pipeline configuration and the schema storage location rather than from a documented decision. The engineer who asks "why are we storing schemas in git instead of using a registry?" will get "that was the original setup" rather than the founding reasoning — unless the AI chat sessions that made the decision were run through the open-source extractor and the decision record was produced at the time the first event topic was configured. The decision record allows the engineer inheriting the schema management model to understand why schema-in-git was chosen instead of Confluent Schema Registry (at six services and two teams, the team's CI compatibility checks were reliable enough and the registry operational overhead was high relative to the coordination cost — the decision record flags the trigger for migrating to a registry: when any event type has three or more consumer teams with independent deployment schedules); why the team chose self-hosted Confluent over Confluent Cloud (data residency requirements precluded cloud-managed services — the decision record specifies which requirement must change before managed-service evaluation is appropriate); and why the team uses subject-level ACLs that restrict write access by team rather than by environment (after a developer accidentally registered a breaking schema to the staging subject during a local debugging session — the decision record captures the incident that motivated the ACL model so the team does not loosen ACLs later without understanding what the previous looseness cost them).