What it is
A schema registry is two pieces working together:- A REST service that stores schemas, assigns each one an ID and a version under a named subject, and runs the compatibility checks.
- Serializers and deserializers inside your Kafka clients. On the way out, the serializer registers or looks up the schema and prefixes each record with its schema ID. On the way in, the deserializer reads that ID, fetches the matching schema, and decodes the payload.
Supported formats
The registry supports three schema formats:GET /schemas/types returns exactly ["AVRO", "JSON", "PROTOBUF"].
Where it runs
A Pulsar cluster also has the Pulsar Schema Registry built
into its brokers. The two are separate systems and are not interoperable. See
Data governance overview.
Configurable compatibility modes
Each subject has a compatibility mode that determines how the registry compares a new schema against the versions already registered. A schema gets a unique ID and version 1 when it’s first registered; each subsequent version that passes the check gets a new ID and an incremented version number. The default mode isBACKWARD.
For what each mode permits, which side you upgrade first, and how to set the mode on a subject, see
Schema evolution and compatibility.
REST API
The registry exposes a subset of the Confluent Schema Registry REST API. For the full list of supported endpoints and their query parameters, the endpoints that aren’t implemented, and the behavior differences you need to know about, see Confluent API compatibility.Next steps
Connect
Find the endpoint and configure client authentication.
Confluent compatibility
What’s supported, what isn’t, and where behavior differs.
Schema ID validation
Reject records that don’t carry a registered schema ID.
Replicate schemas
Set up active-standby replication with Universal Linking.