I read the documentation and I did not find any way to use different strategies, that is, TopicNameStrategy, RecordNameStrategy or TopicRecordNameStrategy, for the key and the value in the same topic.
I also tried the following configurations but them failed while deploying:
First attempt - Add two topics entries (one for the value and another for the key)
Exception in thread "main" java.lang.IllegalArgumentException: com.purbon.kafka.topology.exceptions.ValidationException: Missing required value.schema.file on schemas for topic xxx-customer-v1
Second attempt: Duplicate the topic entry and set RecordNameStrategy for the value (first entry) and TopicNameStrategy for the key (second entry).
Hi everyone :)
I read the documentation and I did not find any way to use different strategies, that is,
TopicNameStrategy
,RecordNameStrategy
orTopicRecordNameStrategy
, for the key and the value in the same topic.I also tried the following configurations but them failed while deploying:
First attempt - Add two topics entries (one for the value and another for the key)
Exception in thread "main" java.lang.IllegalArgumentException: com.purbon.kafka.topology.exceptions.ValidationException: Missing required value.schema.file on schemas for topic xxx-customer-v1
Second attempt: Duplicate the topic entry and set
RecordNameStrategy
for the value (first entry) andTopicNameStrategy
for the key (second entry).Exception in thread "main" java.lang.IllegalStateException: Duplicate key xxx-customer-v1