{"id":21031536,"url":"https://github.com/slaveofcode/nsq-multi-subscriber","last_synced_at":"2025-08-02T05:10:14.891Z","repository":{"id":41789509,"uuid":"191744032","full_name":"slaveofcode/nsq-multi-subscriber","owner":"slaveofcode","description":"Prove of concept NSQ with multiple worker subscriber","archived":false,"fork":false,"pushed_at":"2022-12-10T18:59:52.000Z","size":915,"stargazers_count":0,"open_issues_count":6,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-30T08:33:03.542Z","etag":null,"topics":["express","expressjs","node","nodejs","nsq","nsqjs","publish","pubsub","subscribe"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/slaveofcode.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}},"created_at":"2019-06-13T10:43:41.000Z","updated_at":"2019-06-14T11:15:55.000Z","dependencies_parsed_at":"2023-01-26T06:15:33.890Z","dependency_job_id":null,"html_url":"https://github.com/slaveofcode/nsq-multi-subscriber","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/slaveofcode/nsq-multi-subscriber","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slaveofcode%2Fnsq-multi-subscriber","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slaveofcode%2Fnsq-multi-subscriber/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slaveofcode%2Fnsq-multi-subscriber/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slaveofcode%2Fnsq-multi-subscriber/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/slaveofcode","download_url":"https://codeload.github.com/slaveofcode/nsq-multi-subscriber/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slaveofcode%2Fnsq-multi-subscriber/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268338285,"owners_count":24234540,"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","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["express","expressjs","node","nodejs","nsq","nsqjs","publish","pubsub","subscribe"],"created_at":"2024-11-19T12:29:11.822Z","updated_at":"2025-08-02T05:10:14.874Z","avatar_url":"https://github.com/slaveofcode.png","language":"JavaScript","readme":"# NSQ Subscriber Simulation\n\nThis is a simple project which simulate the process of multiple NSQ subscribers. The project is based on Express framework (NodeJs), and prepared with simple subscriber \u0026 publisher.\n\n\n## Installation\n1. Run the `nsqd` \u0026 `nsqlookupd` daemon process on your machine (see: [nsq.io](https://nsq.io))\n2. Clone this project and run `npm i` or `npm install` to install module dependencies\n3. Make copy of `.env.example` with a new name called `.env` then configure the environment variables inside, for the nsqlookupd address(es).\n4. Run the server by execute `npm run server1` to start **server1**\n5. Open new console/terminal then execute `npm run server2` to start **server2**\n6. Now you have 2 different running process, which is subscribed to `MESSAGE` topic in NSQ.\n\n## Start simulation\nAfter you see both process server running on these 2 console/terminals, you can start simulation of publishing message by executing the script inside `tool` folder.\n\n    \u003e\u003e node tool/publisher_simulator.js \u003cNSQ_HOST\u003e \u003cNSQ_PORT_TCP\u003e\n\n## Example Demo\n\n\u003cimg src=\"https://raw.github.com/slaveofcode/nsq-multi-subscriber/master/example.gif\" align=\"center\" /\u003e\n\n\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslaveofcode%2Fnsq-multi-subscriber","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fslaveofcode%2Fnsq-multi-subscriber","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslaveofcode%2Fnsq-multi-subscriber/lists"}