How to
Schema registry can be used in various scenarios. In this page, the configurations for different use-cases are listed.
You can find the related parameters that you need the use in the configurations from Upstash Console.
Scroll down to the REST API
section to find the values you need:
UPSTASH_KAFKA_REST_URL
UPSTASH_KAFKA_REST_USERNAME
UPSTASH_KAFKA_REST_PASSWORD
Producer/Consumer
Producer
If you need to configure your producers to use the schema registry, add the following properties to producer properties in addition to the broker configurations. Note that the selected deserializer needs to be schema-registry aware.
Consumer
If you need to configure your consumers to use the schema registry, add the following properties to consumer properties in addition to the broker configurations. Note that the selected deserializer needs to be schema-registry aware.
Connectors
Some connectors forces you to use a STRUCT as key/value which means that you need a schema and a schema aware convertor to use with the connector. For this case, you can add the following configurations to your connector.
The config above is the shorther version of the following.
Thirdy party UI tools
You can use third-party UI tools to use the schema registry with.
We have schema registry configuration examples in our Monitoring
section.
SchemaRegistryClient
SchemaRegistryClient can be used to access the schema registry programmatically. In this case, you can configure it as following:
Was this page helpful?