based on PR cloudevents/spec#337, we could introduce a kafka module here, that helps to encode/decode the CloudEvent class over Kafka, using Headers for the attributes, and using the key/value of the message for the CloudEvents data
We did already do some prototype a couple of month ago:
https://github.com/rh-event-flow/jcloudevents/blob/master/kafka/src/main/java/io/streamzi/cloudevents/kafka/util/KafkaHeaderUtil.java#L42
based on PR cloudevents/spec#337, we could introduce a
kafkamodule here, that helps to encode/decode theCloudEventclass over Kafka, using Headers for the attributes, and using thekey/valueof the message for the CloudEventsdataWe did already do some prototype a couple of month ago:
https://github.com/rh-event-flow/jcloudevents/blob/master/kafka/src/main/java/io/streamzi/cloudevents/kafka/util/KafkaHeaderUtil.java#L42