A service that stores, retrieves, and versions data schemas and may validate compatibility between versions.
Avro encodes messages without field identifiers, so a consumer needs the writer schema to deserialize them. A schema registry stores schemas and versions centrally, letting producers and consumers evolve independently. section 8.1.6section 8.1.6
A typical message flow works as follows:
The producer registers a schema and includes its registry-assigned identifier in the message header. section 8.1.6
The consumer uses that identifier to retrieve the writer schema, then resolves it against its reader schema; missing fields can receive reader-schema defaults. section 8.1.6
Build-tool API checks can enforce compatibility when new schemas are registered, supporting safe evolution while retaining compact binary encoding. section 8.1.6
How Microservices Patterns, Second Edition covers it
Kafka Streams in Action, Second EditionSchema Registry is a service for storing and validating schemas so that serialized records remain compatible between producers and consumers.
Kafka for ArchitectsA schema registry is a service that centrally stores, versions, and validates schemas for structured data exchanged between producers and consumers.
RESTuses · REST is an architectural style for distributed systems that organizes interactions around identifiable resources and their representations, using a uniform interface and constraints such as statelessness and cacheability.
Gradle pluginused by · A Gradle plugin is an extension that adds project configuration, tasks, or integrations to the Gradle build system.
backward compatibilityuses · Backward compatibility is the property of a newer or changed system remaining usable by existing clients, code, data, or integrations that depend on earlier interfaces or behavior.
schemauses · A data schema is a formal specification of the structure, fields, types, relationships, and constraints of data.
Apache Kafkauses · Apache Kafka is a distributed event-streaming platform for publishing, storing, and processing streams of records.
Avrouses · A language-independent data serialization system that uses schemas to encode structured data, commonly in a compact binary format.
This explainer was generated by Manning's knowledge graph from the text of Microservices Patterns, Second Edition. The section links point to the parts of the book it draws on.