{"id":37111706,"url":"https://github.com/linfangrong/carrier","last_synced_at":"2026-01-14T13:13:59.977Z","repository":{"id":79744829,"uuid":"44438643","full_name":"linfangrong/carrier","owner":"linfangrong","description":"Redis Cluster Proxy for Redis 3.0 ","archived":false,"fork":false,"pushed_at":"2020-04-21T04:02:19.000Z","size":143,"stargazers_count":19,"open_issues_count":1,"forks_count":7,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-04-30T07:16:47.746Z","etag":null,"topics":["go","golang","redis-cluster","redis-proxy"],"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/linfangrong.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-10-17T13:44:50.000Z","updated_at":"2024-06-19T10:13:29.949Z","dependencies_parsed_at":null,"dependency_job_id":"6544e169-aa54-4cc4-8272-955f35dff11a","html_url":"https://github.com/linfangrong/carrier","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/linfangrong/carrier","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linfangrong%2Fcarrier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linfangrong%2Fcarrier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linfangrong%2Fcarrier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linfangrong%2Fcarrier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/linfangrong","download_url":"https://codeload.github.com/linfangrong/carrier/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linfangrong%2Fcarrier/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28420885,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T10:47:48.104Z","status":"ssl_error","status_checked_at":"2026-01-14T10:46:19.031Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["go","golang","redis-cluster","redis-proxy"],"created_at":"2026-01-14T13:13:59.353Z","updated_at":"2026-01-14T13:13:59.964Z","avatar_url":"https://github.com/linfangrong.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# carrier\n\n通过carrier + redis cluster 替换 twemproxy(nutcracker) + redis standalone方式。\n[redis cluster](http://redis.io/topics/cluster-tutorial)集群的代理。\n\n\n## 和twemproxy差别\n+ twemproxy不支持动态扩容和缩容。redis cluster支持了动态扩容和缩容，通过carrier屏蔽。\n+ twemproxy是单进程单线程。carrier则通过go的协程多并发处理，效率较高。\n+ 支持读取命令从slave节点读取。\n+ 支持的命令略多。\n\n## 安装\nsh install.sh\n\n## 支持命令如下(大部分是多key，还有管理命令)\n+ String: 不支持BITOP、MSETNX。\n+ Lists: 不支持BLPOP、BRPOP、BRPOPLPUSH、RPOPLPUSH。\n+ Connection: 不支持AUTH、QUIT。(SELECT对于redis cluster无意义，故永远返回OK)\n+ Server: 全部不支持。(包括BGREWRITEAOF、BGSAVE、CLIENT、COMMAND、CONFIG、DBSIZE、DEBUG、FLUSHALL、FLUSHDB、INFO、LASTSAVE、MONITOR、ROLE、SAVE、SHUTDOWN、SLAVEOF、SYNC、TIME)。\n+ Cluster: 全部不支持。(没有必要)。\n+ Keys: 不支持KEYS、MIGRATE、MOVE、OBJECT、RANDOMKEY、RENAME、RENAMENX、SCAN、WAIT。(EXISTS暂时只支持单key)。\n+ Transactions: 全部不支持。(包括DISCARD、EXEC、MULTI、UNWATCH、WATCH)。\n+ Scripting: 全部不支持。(包括EVAL、EVALSHA、SCRIPT)。\n+ Geo: 支持。\n+ Hashes: 支持。\n+ HyperLogLog: 不支持PFMERGE。(PFCOUNT只支持单key返回)。\n+ Pub/Sub: 由于集群模式pub/sub实现相当于广播，暂不考虑支持。(可用第三方消息队列，如beanstalk、rabbitmq)。\n+ Sets: 不支持SDIFF、SDIFFSTORE、SINTER、SINTERSTORE、SMOVE、SUNION、SUNIONSTORE。\n+ Sorted Sets: 不支持ZINTERSTORE、ZUNIONSTORE。\n\n\n## 感谢\n+ https://github.com/3xian\n+ https://github.com/samuelduann\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinfangrong%2Fcarrier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flinfangrong%2Fcarrier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinfangrong%2Fcarrier/lists"}