{"id":27966664,"url":"https://github.com/aravindbaskaran/redis-pubsub","last_synced_at":"2025-08-22T05:07:31.638Z","repository":{"id":62431708,"uuid":"132225664","full_name":"aravindbaskaran/redis-pubsub","owner":"aravindbaskaran","description":"A redis pubsub client with keep-alive heart beats on top of the awesome com.taoensso/carmine library","archived":false,"fork":false,"pushed_at":"2018-05-05T08:49:47.000Z","size":15,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-02T22:16:48.667Z","etag":null,"topics":["clojure","pubsub","redis"],"latest_commit_sha":null,"homepage":null,"language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"epl-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aravindbaskaran.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2018-05-05T07:35:49.000Z","updated_at":"2021-04-22T18:51:39.000Z","dependencies_parsed_at":"2022-11-01T20:46:29.974Z","dependency_job_id":null,"html_url":"https://github.com/aravindbaskaran/redis-pubsub","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/aravindbaskaran/redis-pubsub","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aravindbaskaran%2Fredis-pubsub","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aravindbaskaran%2Fredis-pubsub/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aravindbaskaran%2Fredis-pubsub/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aravindbaskaran%2Fredis-pubsub/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aravindbaskaran","download_url":"https://codeload.github.com/aravindbaskaran/redis-pubsub/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aravindbaskaran%2Fredis-pubsub/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271588743,"owners_count":24785751,"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-22T02:00:08.480Z","response_time":65,"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":["clojure","pubsub","redis"],"created_at":"2025-05-07T20:55:47.144Z","updated_at":"2025-08-22T05:07:31.617Z","avatar_url":"https://github.com/aravindbaskaran.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"```clojure\n[com.aravindbaskaran/redis-pubsub \"0.1.1\"] ; See CHANGELOG for details\n```\n\n[![Clojars Project](https://img.shields.io/clojars/v/com.aravindbaskaran/redis-pubsub.svg)](https://clojars.org/com.aravindbaskaran/redis-pubsub)\n\n# redis-pubsub\n\nA redis pubsub client with keep-alive heart beats on top of the awesome \u003ca href=\"https://github.com/ptaoussanis/carmine\" \u003ecom.taoensso/carmine library\u003c/a\u003e.\n\nThe main purpose of this library is to address the dead connections on redis pubsub clients with no way to re-subscribe or keep alive.\n\nRelated GH Issue - https://github.com/ptaoussanis/carmine/issues/15\n\nExisting PR - https://github.com/ptaoussanis/carmine/pull/207\n\nSo until this gets merged into the main carmine library in some format, the world keeps spinning and the connections keep dying, this library has use.\n\n## Features\n * Keeps pubsub clients **ALIVE** :)\n * Very tiny Clojure library\n * **Documented**, base macros and direct subscribe API with support for Redis 3.2+\n * **Tested** for connection failures because of socket read timeout, hard disconnects and stale/old connects\n * **Awesome underlying All-Clojure redis library** in \u003ca href=\"https://github.com/ptaoussanis/carmine\"\u003ecom.taoensso/carmine redis client\u003c/a\u003e\n\n\n## Usage\n\n### with-new-keepalive-pubsub-listener macro\n```clojure\n(require '[redis-pubsub.core :as pubsub])\n(require '[taoensso.carmine :as car])\n(pubsub/with-new-keepalive-pubsub-listener {}\n  {\n   \"ps-foo\" #(println %) ;handle channel ps-foo, arguments passed [\"message\" channel-name message-string]\n   \"ps-baz\" #(println %) ;handle channel ps-baz, arguments passed [\"message\" channel-name message-string]\n   \"pubsub:ping\" #(println %) ;callback on ping, arguments passed [\"pong\" \"pubsub:ping\"]\n   \"pubsub:listener:fail\" #(println %) ;callback on listener failures, arguments passed [\"pubsub:error\" \"pubsub:listener:fail\" exception-obj]\n  }\n  ; subsrcibe to required channels\n  (car/subscribe \"ps-foo\" \"ps-baz\"))\n\n```\n### subscribe API\n\n```clojure\n(require '[redis-pubsub.core :as pubsub])\n(pubsub/subscribe\n  {}\n  \"ps-foo\"\n  #(println %) ;handle channel ps-foo, arguments passed [\"message\" channel-name message-string]\n  )\n\n```\n\n\u003ca href=\"https://github.com/ptaoussanis/carmine#listeners--pubsub\"\u003eBroader documentation of underlying carmine interfaces\u003c/a\u003e\n\n## License\n\nDistributed under the [EPL v1.0] \\(same as Clojure).  \nCopyright \u0026copy; 2018- [Aravind Baskaran].\n\n\n\u003c!--- Standard links --\u003e\n[EPL v1.0]: https://raw.githubusercontent.com/ptaoussanis/carmine/master/LICENSE\n[Aravind Baskaran]: https://github.com/aravindbaskaran/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faravindbaskaran%2Fredis-pubsub","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faravindbaskaran%2Fredis-pubsub","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faravindbaskaran%2Fredis-pubsub/lists"}