{"id":17949470,"url":"https://github.com/camirmas/distributed_messages","last_synced_at":"2025-08-30T17:41:23.996Z","repository":{"id":87740349,"uuid":"97441189","full_name":"camirmas/distributed_messages","owner":"camirmas","description":":love_letter: Learning about distributed messaging in Elixir","archived":false,"fork":false,"pushed_at":"2017-07-19T06:02:16.000Z","size":11,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-09T04:26:21.123Z","etag":null,"topics":["distributed-systems","elixir","elixir-lang","otp"],"latest_commit_sha":null,"homepage":"","language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/camirmas.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-07-17T06:12:07.000Z","updated_at":"2018-04-15T04:35:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"d9663c88-704d-4c91-a51f-81f59360e190","html_url":"https://github.com/camirmas/distributed_messages","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/camirmas%2Fdistributed_messages","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/camirmas%2Fdistributed_messages/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/camirmas%2Fdistributed_messages/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/camirmas%2Fdistributed_messages/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/camirmas","download_url":"https://codeload.github.com/camirmas/distributed_messages/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247029871,"owners_count":20871986,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["distributed-systems","elixir","elixir-lang","otp"],"created_at":"2024-10-29T09:17:03.001Z","updated_at":"2025-04-03T15:41:17.122Z","avatar_url":"https://github.com/camirmas.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Distributed Messages\n\n\u003e :love_letter: Learning about distributed messaging in Elixir\n\n## Getting started\n\n- `git clone git@github.com:camirmas/distributed_messages.git`\n- `cd distributed_messages`\n\n### Terminal\n\n- In one terminal window, `iex --sname [your_name] -S mix`. This will create a node whose name takes the form `your_name@hostname`, e.g. `cam@cam-pc`.\n- In another terminal window, `iex --sname [different_name] -S mix`. This will create another node.\n- `DistributedMessages.connect(\"name@hostname\")`, specifying the node in the other terminal window.\n- `DistributedMessages.send_message(\"different_name\", \"hello friend\")`. You do not need to specify the entire node name, just whatever comes before the `@`.\n\n### Separate Machines\n\nThe main difference here is that you need to use your ip address when starting up the app. A quick `ifconfig` should do the trick.\n\n- On one machine, `iex --name [name@ip_address] -S mix`.\n- On another machine, `iex --name [another_name@ip_address] -S mix`.\n- `DistributedMessages.connect(\"name@ip_address\")`, specifying the node on the other machine.\n- `DistributedMessages.send_message(\"different_name\", \"hello friend\")`. You do not need to specify the entire node name, just whatever comes before the `@`.\n\n## Running the Tests\n\n`mix test` will only run non-distributed tests. In order to run the full test suite, you'll need to start up an app with `iex --sname test -S mix` in one\nterminal window, and `elixir --sname [name] -S mix test` in another.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcamirmas%2Fdistributed_messages","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcamirmas%2Fdistributed_messages","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcamirmas%2Fdistributed_messages/lists"}