Clear the local schema cache.
Useful when schemas may have been updated externally.
Get the latest schema version for a subject.
Subject name.
The latest registered schema.
Fetch a schema by its global ID.
Results are cached so repeated lookups for the same ID avoid HTTP calls.
Global schema ID.
The registered schema.
Get a specific schema version for a subject.
Subject name.
Version number.
The registered schema at the given version.
List all subjects in the registry.
Array of subject names.
Register a schema under a subject.
If the schema already exists, the existing ID is returned.
Subject name (e.g. "my-topic-value").
Schema definition string.
Schema type (default: "AVRO").
The global schema ID.
Confluent Schema Registry client.
Provides methods for registering and fetching schemas. Caches schemas by ID and by subject to minimise HTTP round-trips.
Example