{"id":15035481,"url":"https://github.com/olivere/nats-streaming-server-example","last_synced_at":"2026-03-16T19:01:07.899Z","repository":{"id":57573272,"uuid":"195430537","full_name":"olivere/nats-streaming-server-example","owner":"olivere","description":"An example of using a local NATS Streaming Server cluster for pub/sub.","archived":false,"fork":false,"pushed_at":"2019-07-05T15:27:13.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-13T10:29:18.999Z","etag":null,"topics":["golang-examples","nats","nats-streaming-server","pubsub"],"latest_commit_sha":null,"homepage":"","language":"Go","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/olivere.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-07-05T15:22:21.000Z","updated_at":"2020-06-16T19:50:07.000Z","dependencies_parsed_at":"2022-09-18T04:10:30.672Z","dependency_job_id":null,"html_url":"https://github.com/olivere/nats-streaming-server-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/olivere/nats-streaming-server-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olivere%2Fnats-streaming-server-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olivere%2Fnats-streaming-server-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olivere%2Fnats-streaming-server-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olivere%2Fnats-streaming-server-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/olivere","download_url":"https://codeload.github.com/olivere/nats-streaming-server-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olivere%2Fnats-streaming-server-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28007017,"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-12-24T02:00:07.193Z","response_time":83,"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":["golang-examples","nats","nats-streaming-server","pubsub"],"created_at":"2024-09-24T20:28:47.260Z","updated_at":"2025-12-24T19:40:49.843Z","avatar_url":"https://github.com/olivere.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NATS Streaming Server example\n\nThis example illustrates how to run a local cluster of\nNATS streaming servers doing some pub/sub.\n\n## Prerequisites\n\nThe example has been tested with NATS streaming server 0.15.1\nand Go 1.11.6.\n\n## Nutshell\n\nOpen 1st console:\n\n```\n$ nats-streaming-server -c a.conf\n...\n```\n\nOpen 2nd console:\n\n```\n$ nats-streaming-server -c b.conf\n...\n```\n\nOpen 3rd console:\n\n```\n$ nats-streaming-server -c c.conf\n...\n```\n\nOpen 4th console to compile and run a producer of messages\nbeing sent to the cluster:\n\n```\n$ make\n$ ./pub\n...\n```\n\nOpen 5th console to run a first consumer of messages:\n\n```\n$ ./sub\n...\n```\n\nOpen 6th console to run a second consumer of messages:\n\n```\n$ ./sub\n...\n```\n\nAs the consumers work as a consumer group, only one of the\nconsumers gets a message. This is in contrast to a normal\nsubscription model where each consumer gets a copy of each\nmessage.\n\n# Licenses\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Folivere%2Fnats-streaming-server-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Folivere%2Fnats-streaming-server-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Folivere%2Fnats-streaming-server-example/lists"}