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

refactor: Asyncify Source #2329

Merged
merged 2 commits into from
Jan 18, 2024
Merged

refactor: Asyncify Source #2329

merged 2 commits into from
Jan 18, 2024

Conversation

chubei
Copy link
Contributor

@chubei chubei commented Jan 17, 2024

In this PR we change Source::start to async and feed it a tokio channel instead of a crossbeam channel. The immediate benefit is the simplified implementation of ConnectorSource and the merge of SourceSenderNode and SourceListenerNode into one SourceNode, and one less channel in the pipeline for each source. The ultimate goal of this refactor is to receive all sources' data in one thread and coordinate the commits there.

Copy link
Contributor

@Jesse-Bakker Jesse-Bakker left a comment

Choose a reason for hiding this comment

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

Makes a lot of sense. I'm not sure what the performance differences might be between crossbeam channels and tokio channels, so we might want to benchmark that.

@chubei chubei added this pull request to the merge queue Jan 18, 2024
Merged via the queue into getdozer:main with commit 85467c1 Jan 18, 2024
6 checks passed
@chubei chubei deleted the refactor/async branch January 18, 2024 13:31
This pull request was closed.
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