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

[Kafka] Refactor the way we handle Kafka connections #789

Merged
merged 4 commits into from
Jul 11, 2024

Conversation

Tang8330
Copy link
Contributor

@Tang8330 Tang8330 commented Jul 9, 2024

This PR creates a Connection struct that can be turned into a Dialer and Writer.

This will remove the boilerplate in our dashboard and Reader.

@Tang8330 Tang8330 marked this pull request as ready for review July 9, 2024 21:52
return dialer, nil
}

func (c Connection) Transport() (*kafka.Transport, error) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this used anywhere yet?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, I want to use it here though: https://github.com/artie-labs/reader/pull/434

Copy link
Contributor

@danafallon danafallon left a comment

Choose a reason for hiding this comment

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

Just one question, but looks good

@Tang8330 Tang8330 merged commit 4036e76 into master Jul 11, 2024
3 checks passed
@Tang8330 Tang8330 deleted the refactor-kafka-lib branch July 11, 2024 18:30
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