{"id":18544108,"url":"https://github.com/tokeshu/telegrams","last_synced_at":"2026-05-01T04:38:09.641Z","repository":{"id":6478355,"uuid":"7718468","full_name":"tOkeshu/telegrams","owner":"tOkeshu","description":"A simple cluster message bus","archived":false,"fork":false,"pushed_at":"2013-03-13T22:32:41.000Z","size":168,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-17T09:15:18.903Z","etag":null,"topics":["erlang"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tOkeshu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-01-20T16:24:00.000Z","updated_at":"2014-09-11T14:17:15.000Z","dependencies_parsed_at":"2022-08-29T16:22:22.732Z","dependency_job_id":null,"html_url":"https://github.com/tOkeshu/telegrams","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/tOkeshu%2Ftelegrams","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tOkeshu%2Ftelegrams/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tOkeshu%2Ftelegrams/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tOkeshu%2Ftelegrams/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tOkeshu","download_url":"https://codeload.github.com/tOkeshu/telegrams/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254281846,"owners_count":22045033,"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":["erlang"],"created_at":"2024-11-06T20:15:23.062Z","updated_at":"2026-05-01T04:38:04.609Z","avatar_url":"https://github.com/tOkeshu.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"Telegrams\n=========\n\nTelegrams is a clustered message bus.\n\n## Getting Started\n\n### Requirements\n\n  * [Erlang](http://www.erlang.org/download.html) (R15B01 or later)\n  * [Rebar](https://github.com/basho/rebar)\n\nYou will need `rebar` installed in your `$PATH`.\n\nPlease see the [rebar repository](https://github.com/basho/rebar) for\ndownloading and building instructions.\n\n### Install the project\n\n    $ git clone https://github.com/tOkeshu/telegrams.git\n    $ cd telegrams\n    $ make app\n\nThese commands should pull the Erlang dependencies via Rebar and build\na release.\n\n### Start a node\n\n    $ ./rel/telegrams/bin/telegrams start # listening on 8353\n    $ curl http://localhost:8353/my/chan/nel -N\n\nin another terminal\n\n    $ curl -X POST http://localhost:8353/my/chan/nel --data-binary \"hello\"\n    $ curl -X POST http://localhost:8353/my/chan/nel --data-binary \" world!\"\n\nand see the data appears in the first terminal.\n\n## Cluster\n\nTelegrams can work as a cluster. For this you need to configure multiple nodes.\n\n### Same machine\n\nFor tests purpose it could be relevant to launch multiple nodes on the same machine.\nTo do this, edit `vm.args` and `sys.config` in `rel/files`:\n\n    $ vim rel/files/vm.args rel/files/sys.config\n    $ grep sname rel/files/vm.args\n    -sname telegrams1@host1\n    $ grep port rel/files/sys.config\n     {telegrams, [{port, 8353}]},\n\nBuild the application and copy the release to a specific directory:\n\n    $ make app \u0026\u0026 cp rel/telegrams rel/telegrams1\n\nDo the same for the second node but with a different `sname` and `port`:\n\n    $ vim rel/files/vm.args rel/files/sys.config\n    $ grep sname rel/files/vm.args\n    -sname telegrams2@host1\n    $ grep port rel/files/sys.config\n     {telegrams, [{port, 8354}]},\n    $ make app \u0026\u0026 cp rel/telegrams rel/telegrams2\n\nNow start the two nodes and listen from one of them:\n\n    $ ./rel/telegrams1/bin/telegrams start\n    $ ./rel/telegrams2/bin/telegrams start\n    $ curl http://localhost:8353/my/chan/nel -N # also works with 8354\n\nin another terminal\n\n    $ curl -X POST http://localhost:8353/my/chan/nel --data-binary \"from first node \"\n    $ curl -X POST http://localhost:8354/my/chan/nel --data-binary \"from second node\"\n\nNow play with it, grab a beer and chill...\n\n### Different machines\n\nWith different machines, you need to edit `hosts` in `rel/files/hosts`:\n\n    $ cat rel/files/hosts\n    'host1'.\n    'host2'.\n\n    $ # don't forget the newline at the end\n\nThen you need to reproduce the same steps as for one machine, except\nyou don't need to create a specific directory and can use the same\nport everywhere.\n\n## License\n\nTelegrams are released under the terms of the\n[GNU Affero General Public License v3](http://www.gnu.org/licenses/agpl-3.0.html)\nor later.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftokeshu%2Ftelegrams","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftokeshu%2Ftelegrams","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftokeshu%2Ftelegrams/lists"}