ID ranges in Schema Registry

In case your deployment has many Schema Registry instances in different clusters, you might want to ensure that each Schema Registry operates in a preset ID range so that there are no overlapping IDs. To achieve this, you need to set an ID range.

When an ID range is set, all Schema Registry entities (schema metadata, branches, versions, and so on) are created with an ID that falls within the configured range. Configuring a range can simplify schema export and import between Schema Registry instances where conflicting IDs can cause the import process to fail.

Consequently, having non-overlapping ID ranges allocated to each Schema Registry makes data replication easier when schema IDs are embedded in the data. This is important because replicated data can only be deserialized with compatible schemas on the replication target site.

When IDs reach the range maximum value, adding more schema fails until a new ID range is configured. A new range must be larger than the current one. The new range must also not overlap with any other ranges.