schema registry
Schema registry is recommended if you plan to use Avro for a data format because it can help you with:
with schema knowledge
./bin/schema-registry-start ./etc/schema-registry/schema-registry.properties
docker run -d \
--net=host \
--name=schema-registry \
-e SCHEMA_REGISTRY_KAFKASTORE_CONNECTION_URL=localhost:32181 \
-e SCHEMA_REGISTRY_HOST_NAME=localhost \
-e SCHEMA_REGISTRY_LISTENERS=http://localhost:8081 \
confluentinc/cp-schema-registry:4.0.0
create data with a schema. See Kafka - kafka-avro-console-producer utility
You can change the compatibility level of Schema Registry to allow incompatible schemas or other compatibility levels. There are two ways to do this:
The subjects have format of topic-key and topic-value where the topic is determined by topic.prefix config and table name.