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

Elixir GenStage and Flow for computations #21

Open
Laymer opened this issue Aug 5, 2018 · 0 comments
Open

Elixir GenStage and Flow for computations #21

Laymer opened this issue Aug 5, 2018 · 0 comments
Assignees

Comments

@Laymer
Copy link
Member

Laymer commented Aug 5, 2018

Flow

Ability to partition workload seamlessly over multiple processes (uses all cores), if applicable to partitionning over nodes instead of cores would allow parallel computing on the edge.

GenStage

Producer - producer/consumer - consumer schemes based on gen_server wheee a consumer asks for specific amount of tasks, and the producer cannot overflow it. If multiple subscribers exist for a single producer, the fastest ones will sustain the heavier loads based on observed performance.

During the consumption, the consumers ask incrementally for more tasks from producers after some portion e.g. 50% of tasks are completed s.t. producers are never idle and keep sending tasks at adapted pace, hence there is continuous bidirectional communication and no waiting on any side.

@Laymer Laymer self-assigned this Aug 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant