https://github.com/pcmarks/gen_stage_example_3
https://github.com/pcmarks/gen_stage_example_3
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/pcmarks/gen_stage_example_3
- Owner: pcmarks
- Created: 2016-08-18T13:48:42.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-08-18T14:51:14.000Z (over 9 years ago)
- Last Synced: 2025-03-24T12:56:17.552Z (10 months ago)
- Language: Elixir
- Size: 2.93 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GenstageExample3
This GenStage example is meant to illustrate the splitting of an output flow of
events - a list of integers - to more than one stage. This is accomplished by
using the PartitionDispatcher dispatcher and a "hash" function that shunts
even integers to one partition and odd integers to another partition. For a more
detailed explanation, please see this blog [post](www.elixirfbp.com)
## To run:
1. cd genstage_example_3
2. mix deps.get
3. mix run lib/genstage_example_3.exs