{"id":18909728,"url":"https://github.com/oothan/go-nsq-test","last_synced_at":"2026-03-07T02:30:22.848Z","repository":{"id":133839580,"uuid":"533597692","full_name":"oothan/go-nsq-test","owner":"oothan","description":null,"archived":false,"fork":false,"pushed_at":"2022-09-07T07:58:14.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-12-31T12:37:20.246Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oothan.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":"2022-09-07T04:00:23.000Z","updated_at":"2022-09-07T08:06:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"3f2d4fe5-7b35-4e5c-aa47-cf0d31a1eccb","html_url":"https://github.com/oothan/go-nsq-test","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/oothan%2Fgo-nsq-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oothan%2Fgo-nsq-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oothan%2Fgo-nsq-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oothan%2Fgo-nsq-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oothan","download_url":"https://codeload.github.com/oothan/go-nsq-test/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239897162,"owners_count":19715169,"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-11-08T09:34:58.354Z","updated_at":"2026-03-07T02:30:22.789Z","avatar_url":"https://github.com/oothan.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\nNSQ demo repo to try out messaging with NSQ \u0026 Go\n\n## Run NSQ with Docker Compose\n\nStart NSQ (the patterns below will integrate with this cluster)\n\n\tdocker-compose -f docker-compose-nsq.yml up\n\nBrowse to the admin UI: http://localhost:4171/\n\n\n## Examples\n    \nbuild a docker container with our consumer app in it\n    \n    docker build -t nsq-consumer -f Dockerfile-consumer .\n\n### Worker\n\nStart the docker compose example with 2 subscribers to the foo channel\n\n    docker-compose -f docker-compose-worker.yml up\n\nPublish a few messages:\n\n\tgo run cmd/producer/producer.go -topic email -message \"hello world\"\n\tgo run cmd/producer/producer.go -topic email -message \"hello world\"\n\tgo run cmd/producer/producer.go -topic email -message \"hello world\"\n\tgo run cmd/producer/producer.go -topic email -message \"hello world\"\n\nEach message gets processed by one or the other consumer, but is only received once.\n\n### Pub Sub\n\nStart the docker compose example with 2 subscribers to the foo channel, and 2 to the bar channel\n\n    docker-compose -f docker-compose-pub-sub.yml up\n    \nPublish a few messages:\n\n\tgo run cmd/producer/producer.go -topic orders_placed -message \"order 123\"\n\tgo run cmd/producer/producer.go -topic orders_placed -message \"order 124\"\n\tgo run cmd/producer/producer.go -topic orders_placed -message \"order 125\"\n\tgo run cmd/producer/producer.go -topic orders_placed -message \"order 126\"\n\n\nEach channel gets its own copy of each message, but is only delivered to one consumer for each channel\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foothan%2Fgo-nsq-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foothan%2Fgo-nsq-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foothan%2Fgo-nsq-test/lists"}