Creating a subject
Written by
Updated at December 20, 2024
You can create a subject:
- On the Subjects tab, independently from a schema.
- When uploading a new schema.
Creating a subject independently from a schema
Management console
- In the management console
, select the folder where you want to create a subject. - Select Yandex MetaData Hub.
- In the left-hand panel, select
Schema Registry. - Select the namespace you want to create a subject in.
- In the left-hand panel, select
Subjects. - In the top-right corner, click Create subject.
- Specify the following parameters:
- Subject name and description.
- Compatibility check level:
BACKWARD
: (Default) Consumers using the new schema can read data written by producers using the latest registered schema.BACKWARD_TRANSITIVE
: Consumers using the new schema can read data written by producers using all previously registered schemas.FORWARD
: Consumers using the latest registered schema can read data written by producers using the new schema.FORWARD_TRANSITIVE
: Consumers using all previously registered schemas can read data written by producers using the new schema.FULL
: New schema is forward and backward compatible with the latest registered schema.FULL_TRANSITIVE
: New schema is forward and backward compatible with all previously registered schemas.NONE
: Schema compatibility checks are disabled.
For more information about schema compatibility types, see the Confluent documentation .
- Under Schema:
- Set the schema format to Protobuf
, Avro , or JSON Schema and attach the file. - If a schema references another schema, in the References section, click
and enter the reference name, the subject name the schema is registered under for linking, and the registered subject's schema version. - To apply data schema normalization
, enable the Normalization setting. - If you want to skip schema compatibility checking, enable the relevant option.
- Set the schema format to Protobuf
- Click Create.
Creating a subject when uploading a schema
To create a subject when uploading a schema, select New in the Subject field and specify the subject parameters: name, description, and compatibility check level. For more information on how to creatie a subject when uploading a schema, see this guide.