Skip to content

feat: Example of produce and consume from Kafka#2805

Open
akainth015 wants to merge 1 commit intohydro-project:mainfrom
akainth015:feat/kafka-example
Open

feat: Example of produce and consume from Kafka#2805
akainth015 wants to merge 1 commit intohydro-project:mainfrom
akainth015:feat/kafka-example

Conversation

@akainth015
Copy link
Copy Markdown

@akainth015 akainth015 commented Apr 23, 2026

This creates a Kafka example that can do produce and/or consume and print basic throughput information. The performance is not perfect yet, but we'll make changes to the Hydro API that let us do even better.

@akainth015 akainth015 force-pushed the feat/kafka-example branch 6 times, most recently from 0873fbe to ff3c338 Compare April 29, 2026 22:08
@Benjscho Benjscho self-requested a review April 29, 2026 22:27
@akainth015 akainth015 force-pushed the feat/kafka-example branch 7 times, most recently from 82d91db to 9427980 Compare May 1, 2026 17:30
- Add hydro_test/src/kafka/mod.rs with kafka_producer, kafka_consumer,
  dest_kafka, and setup_topic helpers following the SQS PR hydro-project#2746 pattern
- Complete hydro_test/examples/kafka.rs: leader produces 1M financial
  transactions, consumer cluster computes per-account balances
- Add 'kafka' feature flag gating rdkafka and futures-util as optional
  deps
- Add llvm-tools component to rust-toolchain.toml for rust-lld
@akainth015 akainth015 changed the title Kafka example Example of produce and consume from Kafka May 1, 2026
@akainth015 akainth015 marked this pull request as ready for review May 1, 2026 18:10
@akainth015 akainth015 requested a review from a team May 1, 2026 18:10
@akainth015 akainth015 force-pushed the feat/kafka-example branch from 9427980 to d05a2d3 Compare May 1, 2026 18:11
@akainth015 akainth015 changed the title Example of produce and consume from Kafka feat: Example of produce and consume from Kafka May 1, 2026
Comment thread hydro_test/Cargo.toml
# https://github.com/GitoxideLabs/cargo-smart-release/issues/36
example_test = { path = "../example_test", version = "^0.0.0", optional = true }
hydro_build_utils = { path = "../hydro_build_utils", version = "^0.0.1", optional = true }
rdkafka = { version = "0.39.0", optional = true, features = ["cmake-build", "ssl-vendored"] }
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is there an option to use aws-lc-sys here? Then wouldn't need to install libcurl?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Shadaj found this open PR to fix the issue, but it hasn't gotten traction. That's the reason we're seeing the issue with curl.h even though we're not using curl

Comment thread rust-toolchain.toml
"clippy",
# https://github.com/dtolnay/trybuild?tab=readme-ov-file#troubleshooting
"rust-src",
"llvm-tools",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

What is this needed for?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Linker tools for the statically-linked libraries that get pulled in by my changes

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.

2 participants