https://github.com/mgwidmann/elixir-producer_consumer
An example of a producer consumer system in Elixir.
https://github.com/mgwidmann/elixir-producer_consumer
Last synced: 9 months ago
JSON representation
An example of a producer consumer system in Elixir.
- Host: GitHub
- URL: https://github.com/mgwidmann/elixir-producer_consumer
- Owner: mgwidmann
- Created: 2015-03-10T03:28:25.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-03-12T18:50:36.000Z (over 11 years ago)
- Last Synced: 2025-06-01T09:25:00.462Z (about 1 year ago)
- Language: Elixir
- Size: 121 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
ProducerConsumer
================
Install Elixir
brew install elixir
Running tests:
mix test
Running producer/consumer on multiple machines:
iex --name "foo@127.0.0.1" --cookie prodcon -S mix
Be sure to replace `"foo@127.0.0.1"` with a unique name and your ip address (or leave it as 127.0.0.1 for local only connection). All running users must have the same cookie or connections will be denied.
Once the console is up, connect to other users in the network
Node.connect :"foo@127.0.0.1"
Once connected, anyone in the cluster may type the following to kick things off:
Manager.start