{"id":17219498,"url":"https://github.com/kelindar/emitter-share","last_synced_at":"2025-03-25T14:42:11.673Z","repository":{"id":80099542,"uuid":"173398408","full_name":"kelindar/emitter-share","owner":"kelindar","description":"How to use shared subscriptions (subscription groups) with Emitter","archived":false,"fork":false,"pushed_at":"2019-03-02T03:40:09.000Z","size":583,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-24T01:51:11.206Z","etag":null,"topics":["consumer-group","emitter","load-balancing","subscriber-group","subscriptions"],"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/kelindar.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":"2019-03-02T03:26:11.000Z","updated_at":"2020-06-27T15:09:10.000Z","dependencies_parsed_at":"2023-09-20T14:15:07.695Z","dependency_job_id":null,"html_url":"https://github.com/kelindar/emitter-share","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/kelindar%2Femitter-share","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kelindar%2Femitter-share/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kelindar%2Femitter-share/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kelindar%2Femitter-share/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kelindar","download_url":"https://codeload.github.com/kelindar/emitter-share/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245484811,"owners_count":20623141,"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":["consumer-group","emitter","load-balancing","subscriber-group","subscriptions"],"created_at":"2024-10-15T03:50:00.382Z","updated_at":"2025-03-25T14:42:11.646Z","avatar_url":"https://github.com/kelindar.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Shared Subscription Groups with Emitter\n\nA shared subscription is a mechanism for distributing messages to a set of subscribers to shared subscription topic, such that each message is received by only one subscriber. This contrasts with normal subscriptions where each subscriber will receive a copy of the published message.\n\nA shared subscription is on the form $share/sharename/channel and subscribers to this topic will receive messages published to the channel. The messages will be distributed according to the defined distribution policy.\n\n[![shared subscription](https://s3.amazonaws.com/cdn.misakai.com/www-emitter/thumb/emitter-share.png)](https://www.youtube.com/watch?v=Vl7iGKEQrTg)\n\n![Shared Subscriptions](img.png \"Shared Subscriptions\")\n\n\n## Example Output\n\n```\naircon 1 started\naircon 2 started\naircon 3 started\nsensor started\naircon 1 received 37 degrees\naircon 3 received 13 degrees\naircon 1 received 33 degrees\naircon 3 received 8 degrees\naircon 1 received 9 degrees\naircon 2 received 16 degrees\naircon 1 received 32 degrees\naircon 2 received 7 degrees\naircon 1 received 26 degrees\naircon 2 received 28 degrees\naircon 1 received 33 degrees\naircon 2 received 19 degrees\naircon 1 received 6 degrees\naircon 2 received 15 degrees\naircon 1 received 24 degrees\naircon 2 received 10 degrees\naircon 1 received 30 degrees\naircon 2 received 38 degrees\naircon 1 received 0 degrees\naircon 2 received 15 degrees\naircon 1 received 26 degrees\naircon 2 received 30 degrees\naircon 1 received 11 degrees\naircon 2 received 19 degrees\naircon 1 received 22 degrees\naircon 2 received 37 degrees\naircon 1 received 35 degrees\naircon 3 received 1 degrees\naircon 2 received 9 degrees\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkelindar%2Femitter-share","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkelindar%2Femitter-share","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkelindar%2Femitter-share/lists"}