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

chore(dfir_rs)!: switch transducer -> process (fix #1572) #1684

Merged
merged 4 commits into from
Jan 29, 2025

Conversation

MingweiSamuel
Copy link
Member

@MingweiSamuel MingweiSamuel commented Jan 29, 2025

From #1635. fix #1572.

BREAKING CHANGE: Renames TransducerBuilderContext to ProcessBuilderContext

@MingweiSamuel MingweiSamuel changed the title chore: switch transducer -> process (fix #1572) chore(dfir_rs)!: switch transducer -> process (fix #1572) Jan 29, 2025

To start, we set up a new module in `src/first_ten_cluster.rs` with a dataflow program that takes in a `Process` for a leader and `Cluster` for a set of workers.

<CodeBlock language="rust" title="src/first_ten_cluster.rs">{getLines(firstTenClusterSrc, 1, 6)}</CodeBlock>

We start by materializing a stream of numbers on the `leader`, as before. But rather than sending the stream to a single process, we will instead _distribute_ the data to each member of the cluster using `round_robin_bincode`. This API places data on a `cluster` in a round-robin fashion by using the order of elements to determine which cluster member each element is sent to.
We start by materializing a stream of numbers on the `leader`, as before. But rather than sending the stream to a single process, we will instead _distribute_ the data to each member of the cluster using `round_robin_bincode`. This API partitions (shards) data across a `cluster` in a round-robin fashion by using the order of elements to determine which cluster member each element is sent to.
Copy link
Member Author

Choose a reason for hiding this comment

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

Any objection to this phrasing @shadaj?

@MingweiSamuel MingweiSamuel merged commit dc51d94 into hydro-project:main Jan 29, 2025
13 checks passed
@MingweiSamuel MingweiSamuel deleted the pr-1635 branch January 29, 2025 18:09
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.

replace *transducer* with *process*
2 participants