Skip to main content

Guides

A brief introduction of Schema Registry and how to use Schema Registry from Control Plane.

Schemas​

A schema is identified by its format, version, revision and name, in that order. The Schema Registry API takes them as the last tokens of its subjects, for example $SR.v1.UPDATE.jsonschema.1.1.Person.

  • Format is the schema's format, such as jsonschema.
  • Version is the version of the schema. It always starts from 1.
  • Revision is incremented each time a schema is updated starting from 1.
  • Name is the user assigned schema name. It is not editable once a schema has been created.

Schemas are scoped to an account, so a schema name only needs to be unique within its account.

note

Only jsonschema is supported.

Versions and revisions​

note

All schemas are at version 1.

A schema's format and name cannot be changed once it has been created but version (see above note) and revision can.

When a schema is created it always starts with version and revision set to 1. Each Update to a schema will increment the revision by 1 resulting in the following, assuming we've updated our Person schema twice since creation.

  • jsonschema.1.1.Person - Initial schema
  • jsonschema.1.2.Person - Updated, incremented by 1
  • jsonschema.1.3.Person - Updated, incremented by 1
warning

Revisions cannot be edited once they are created, only deleted.

Prerequisites​

Schema Registry will need to be set up and running as a Platform Component. Follow the deployment steps if you haven't already.

Schemas are scoped by account so it's also important to select the appropriate account for your needs. If you create a schema in the wrong account, don't worry, deleting schemas is simple as we'll demonstrate in these guides.

Dashboard​

Once the Schema Registry is running, you will be able to navigate to, and start interacting with, it's dashboard.

The initial dashboard should look like the following.

initial-dashboard.png

And, a schema's detail view page will look something like this.

detail-view.png

The table on the right-hand side allows for viewing other versions and revisions by clicking the link in the first column.

Now that everything is configured and running we can get started with creating, updating and deleting schemas in the following sections within the guide.