-
Notifications
You must be signed in to change notification settings - Fork 157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kafka transport #5
Comments
API ProposalImplement some util, containg method for:
Below is some pseudo code that could be part of the "API" util: public ProducerRecord createProducerRecord(final CloudEvent<?> e);
public ConsumerRecord createConsomerRecord(final CloudEvent<?> e);
public Headers extractRecordHeaders(final CloudEvent<?> ce);
public <K, V> CloudEvent<Map<K, V>> fromConsumerRecord(final ConsumerRecord<K, V>);
public <K, V> CloudEvent<Map<K, V>> fromProducerRecord(final ProducerRecord<K, V> record); |
Done the PR #49 Let's close this? |
/close
…On Wed, Sep 25, 2019 at 8:26 PM Fabio José ***@***.***> wrote:
Done the PR #49 <#49>
Let's close this?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#5?email_source=notifications&email_token=AABGPTQ7QEMJQVHHD757TM3QLOUNZA5CNFSM4GCJTQ5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7S4E5A#issuecomment-535151220>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABGPTRVNRE6X3EF5HEZF4TQLOUNZANCNFSM4GCJTQ5A>
.
--
Matthias Wessendorf
github: https://github.com/matzew
twitter: http://twitter.com/mwessendorf
|
This is the docs about Kafka Transport Binding: https://github.com/cloudevents/sdk-java/blob/master/kafka/README.md |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
based on PR cloudevents/spec#337, we could introduce a
kafka
module here, that helps to encode/decode theCloudEvent
class over Kafka, using Headers for the attributes, and using thekey/value
of the message for the CloudEventsdata
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
The text was updated successfully, but these errors were encountered: