I have a kafka producer that uses confluent schema registry. I know that there is an algorithm based on which the KafkaAvroSerializer finds out the matching schemaId from the confluent schema registry (or gets it after registering the schema) so that it includes it as part of the wire format.
Is there a way that I can access the specific schema id that is added by the producer to the messages?
You can use
CachedSchemaRegistryClientclass to do HTTP lookups to get an ID.Otherwise, you can use ByteBuffer