{"id":18403700,"url":"https://github.com/russellluo/rpubsub","last_synced_at":"2025-04-07T07:32:46.001Z","repository":{"id":57484637,"uuid":"161250654","full_name":"RussellLuo/rpubsub","owner":"RussellLuo","description":"Reliable implementation of Publish–subscribe messaging pattern backed by Redis Streams.","archived":false,"fork":false,"pushed_at":"2019-03-08T05:55:00.000Z","size":27,"stargazers_count":20,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-22T14:41:32.811Z","etag":null,"topics":["go","pubsub","redis"],"latest_commit_sha":null,"homepage":"","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/RussellLuo.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}},"created_at":"2018-12-10T23:37:14.000Z","updated_at":"2023-04-15T10:44:12.000Z","dependencies_parsed_at":"2022-09-02T00:01:41.372Z","dependency_job_id":null,"html_url":"https://github.com/RussellLuo/rpubsub","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/RussellLuo%2Frpubsub","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RussellLuo%2Frpubsub/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RussellLuo%2Frpubsub/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RussellLuo%2Frpubsub/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RussellLuo","download_url":"https://codeload.github.com/RussellLuo/rpubsub/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247612507,"owners_count":20966768,"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":["go","pubsub","redis"],"created_at":"2024-11-06T02:47:58.286Z","updated_at":"2025-04-07T07:32:43.939Z","avatar_url":"https://github.com/RussellLuo.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rpubsub\n\nReliable implementation of [Publish–subscribe messaging pattern][1] backed by [Redis Streams][2].\n\n\n## Installation\n\n\n```bash\n$ go get -u github.com/RussellLuo/rpubsub\n```\n\n\n## Motivation\n\n- Learn [Redis Streams][2] by doing.\n- Implement a more reliable Publish–subscribe messaging mechanism than [Pub/Sub][3].\n\n\n## Design \u0026 Implementation\n\n- Publishing\n    + Just use [XADD][4] directly.\n- Subscribing\n    + API (inspired by [Principles of designing Go APIs with channels][5]).\n    + [Blocking][6] instead of polling (which means one goroutine per topic).\n- Snapshotting\n    + Built-in snapshotters ([NilSnapshotter][7] and [RedisSnapshotter][8]).\n    + Save point (inspired by Redis's [RDB persistence][9]).\n\n\n## Documentation\n\nCheck out the [Godoc][10].\n\n\n## License\n\n[MIT][11]\n\n\n[1]: https://en.wikipedia.org/wiki/Publish–subscribe_pattern\n[2]: https://redis.io/topics/streams-intro\n[3]: https://redis.io/topics/pubsub\n[4]: https://redis.io/commands/xadd\n[5]: https://inconshreveable.com/07-08-2014/principles-of-designing-go-apis-with-channels/\n[6]: https://redis.io/commands/xread#blocking-for-data\n[7]: https://godoc.org/github.com/RussellLuo/rpubsub#NilSnapshotter\n[8]: https://godoc.org/github.com/RussellLuo/rpubsub#RedisSnapshotter\n[9]: https://redis.io/topics/persistence#snapshotting\n[10]: https://godoc.org/github.com/RussellLuo/rpubsub\n[11]: http://opensource.org/licenses/MIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frussellluo%2Frpubsub","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frussellluo%2Frpubsub","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frussellluo%2Frpubsub/lists"}