Skip to content
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

Use Key for Kafka Publishing #112

Merged
merged 3 commits into from
Jan 14, 2024

Conversation

arsulegai
Copy link
Member

No description provided.

@arsulegai arsulegai requested a review from a team as a code owner December 19, 2023 22:17
@arsulegai arsulegai changed the title Kafka key Use Key for Kafka Publishing Dec 19, 2023
@arsulegai arsulegai linked an issue Dec 19, 2023 that may be closed by this pull request
ProducerRecord<String, String> producerRecord =
new ProducerRecord<>(topicName, String.valueOf(payload.hashCode()), payload);
new ProducerRecord<>(kafkaProperties.getEventListener().getTopic(), key, payload);
Copy link
Contributor

@nithin-pankaj nithin-pankaj Dec 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't we re-assign payload as payload=standardCCEvent.getEvent() just after line#100 ?

Signed-off-by: S m, Aruna <aruna.mohan@walmart.com>
The SDK contains the connector's common models that
the chaincode developers can utilize. If the connector's
flag is set to parse the events, the events will be
parsed for common structure and utilized for Kafka
publishing.

The SDK can be later reused for other purposes.

Signed-off-by: S m, Aruna <aruna.mohan@walmart.com>
@arsulegai arsulegai force-pushed the kafka-key branch 2 times, most recently from 04164a3 to e2af5ef Compare January 4, 2024 15:21
@arsulegai arsulegai marked this pull request as ready for review January 4, 2024 15:22
@arsulegai arsulegai requested a review from a team January 4, 2024 18:47
Dependency updates for package version

Signed-off-by: S m, Aruna <aruna.mohan@walmart.com>
@arsulegai arsulegai force-pushed the kafka-key branch 2 times, most recently from 37fa8ac to 9ce4149 Compare January 4, 2024 22:07
@nithin-pankaj nithin-pankaj merged commit bf9c8a8 into hyperledger-labs:main Jan 14, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Standard event to utilize the Kafka Key partitioning
2 participants