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

Port KafkaSinkSingle to Connection #1544

Merged
merged 2 commits into from
Mar 22, 2024

Conversation

rukai
Copy link
Member

@rukai rukai commented Mar 21, 2024

This ended up a bit involved since I needed to add dummy response generation to the Connection type in order to get kafka working.
The connection logic used by cluster_connection_pool.rs already has this implemented https://github.com/shotover/shotover-proxy/blob/main/shotover/src/transforms/util/cluster_connection_pool.rs#L290 and many transforms rely on this.
The new implementation in Connection is more robust though, the one in cluster_connection_pool.rs has issues with cancel safety and a possible race condition.

The actual porting of KafkaSinkSingle to Connection is pretty straightforward, is very similar to RedisSinkSingle

windsock benchmarks show no regressions.

@rukai rukai force-pushed the port_kafka_single_to_connection branch 2 times, most recently from 72c6749 to fc1af6c Compare March 21, 2024 04:29
@rukai rukai force-pushed the port_kafka_single_to_connection branch from fc1af6c to 8efc4e5 Compare March 21, 2024 04:36
@rukai rukai marked this pull request as ready for review March 21, 2024 05:08
@rukai rukai requested a review from conorbros March 21, 2024 05:27
@rukai rukai merged commit c8dacd3 into shotover:main Mar 22, 2024
40 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.

3 participants