{"id":23459551,"url":"https://github.com/d-led/zeromq-pubsub-example","last_synced_at":"2025-04-11T21:37:51.485Z","repository":{"id":146620733,"uuid":"475168289","full_name":"d-led/zeromq-pubsub-example","owner":"d-led","description":null,"archived":false,"fork":false,"pushed_at":"2022-04-08T11:42:06.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-15T23:44:23.295Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/d-led.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2022-03-28T20:27:44.000Z","updated_at":"2022-03-28T20:27:50.000Z","dependencies_parsed_at":"2023-04-11T05:01:24.036Z","dependency_job_id":null,"html_url":"https://github.com/d-led/zeromq-pubsub-example","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/d-led%2Fzeromq-pubsub-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d-led%2Fzeromq-pubsub-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d-led%2Fzeromq-pubsub-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d-led%2Fzeromq-pubsub-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/d-led","download_url":"https://codeload.github.com/d-led/zeromq-pubsub-example/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248484942,"owners_count":21111751,"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":[],"created_at":"2024-12-24T06:15:39.336Z","updated_at":"2025-04-11T21:37:51.462Z","avatar_url":"https://github.com/d-led.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# zeromq-pubsub-example\n\nsee the demo output: [![Docker Demo](https://github.com/d-led/zeromq-pubsub-example/actions/workflows/docker-demo.yml/badge.svg)](https://github.com/d-led/zeromq-pubsub-example/actions/workflows/docker-demo.yml)\n\n## Running\n\nin separate consoles:\n\n- in `go-publisher`: `go run .`\n  - on Windows: install the dependencies as described below, and then `..\\scripts\\go_build.bat`\n    to build. Then, run `..\\scripts\\go_run.bat` to launch the compiled program.\n- in `go-subscriber`: `go run .` (more than one can be started)\n  - on Windows: same as for `go-publisher`\n- alternatively, start the python publisher in `py-publisher`:\n  - install the dependencies: `pip3 install -r requirements.txt`\n  - run: `python3 main.py`\n\n### In Docker\n\n```bash\ndocker-compose up --build --force-recreate\n```\n\n### Demo on Windows\n\n- install the dependencies as described below\n- run `demo.bat`, which starts two subscribers in the background\n  and the python publisher in the foreground\n\n## Dependencies\n\n### OSX\n\n- `brew install zeromq libsodium czmq`\n\n### Windows\n\n- install [vcpkg](https://github.com/microsoft/vcpkg#quick-start-windows)\n- set the environment variable `VCPKG_ROOT` to the bootstrapped vcpkg location \n- add the `VCPKG_ROOT` location to `PATH`\n- install MinGW: `choco install /y mingw`\n- [install](https://github.com/zeromq/goczmq/issues/229#issuecomment-1019070347) czmq: `vcpkg install --triplet=x64-windows czmq`\n  - rename `%VCPKG_ROOT%\\installed\\x64-windows\\lib\\libzmq-mt-4_3_4.lib` to `...\\libzmq.lib` for CGO to find it\n- install libsodium: `vcpkg install --triplet=x64-windows libsodium`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fd-led%2Fzeromq-pubsub-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fd-led%2Fzeromq-pubsub-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fd-led%2Fzeromq-pubsub-example/lists"}