{"id":48680765,"url":"https://github.com/3kuai/hanbo-db","last_synced_at":"2026-04-26T20:00:45.134Z","repository":{"id":48183505,"uuid":"96400827","full_name":"3kuai/hanbo-db","owner":"3kuai","description":"hanboDB is a high available,low latency memory database system","archived":true,"fork":false,"pushed_at":"2023-04-04T01:46:43.000Z","size":421,"stargazers_count":37,"open_issues_count":0,"forks_count":22,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-17T03:31:01.103Z","etag":null,"topics":["java","message-queue","netty4","pubsub","redis-server"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/3kuai.png","metadata":{"files":{"readme":"README-cn.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":"2017-07-06T07:21:18.000Z","updated_at":"2025-04-16T13:05:19.000Z","dependencies_parsed_at":"2022-09-22T05:32:04.032Z","dependency_job_id":null,"html_url":"https://github.com/3kuai/hanbo-db","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/3kuai/hanbo-db","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3kuai%2Fhanbo-db","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3kuai%2Fhanbo-db/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3kuai%2Fhanbo-db/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3kuai%2Fhanbo-db/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/3kuai","download_url":"https://codeload.github.com/3kuai/hanbo-db/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3kuai%2Fhanbo-db/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32310804,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T19:15:34.056Z","status":"ssl_error","status_checked_at":"2026-04-26T19:15:15.467Z","response_time":129,"last_error":"SSL_read: 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":["java","message-queue","netty4","pubsub","redis-server"],"created_at":"2026-04-11T01:00:36.062Z","updated_at":"2026-04-26T20:00:45.128Z","avatar_url":"https://github.com/3kuai.png","language":"Java","funding_links":[],"categories":["数据库"],"sub_categories":["Spring Cloud框架"],"readme":"# HanboDB\nhanboDB是一个高性能低延迟的内存数据库，源码：https://github.com/3kuai/jredis\n\n## 特征\n支持数据动态扩容  \n支持所有redis原生协议\n\n    1.set get\n    2.lpush rpush lrange blpop brpop llen\n    3.hset hget hgetall hscan\n    4.pub sub\n    5.select keys scan expire del\n    6.multi exec discard\n    7.incr incrby\n    8.slaveof\n    ....\n    \n## 客户端\n    兼容jedis，spring-data-redis\n    redis桌面版0.9+\n    \n## 架构\n使用fastUtil库(Object2List、Object2Map)，具有非常好的读/写能力\n\n仅key占用JVM堆内存空间，value使用堆外内存（内存文件映射）\n\n![存储设计](https://github.com/lmx1989219/jredis/blob/master/storage-design.png)\n\n![buffer结构](https://github.com/lmx1989219/jredis/blob/master/buffer-structure.png)\n\n![主从复制](https://github.com/lmx1989219/jredis/blob/master/replication.png)\n\n### 线性存储\n    1.头四个字节（存储offset）存放buffer最后的写入位置，后续的单元（数据内容）格式为TLV格式（flag+length+valueBytes）\n    2.k/v数据独立存储\n    3.超过阀值会自动扩容为原始空间的2倍大小\n### 构建\n    cd jredis \u0026\u0026 mvn clean install -Dmaven.test.skip=true\n### 运行\n    java -jar jredis-{version}.jar\n    \n### 高可用配置\n支持一主多从，不过仅支持手动切换主从关系，计划未来实现哨兵机制    \n#### 主节点\n自动发现从节点\n    \n    replication.mode=master\n    \n#### 从节点\n主动注册从节点\n    \n    replication.mode=slave\n    slaver.of=127.0.0.1:16379\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F3kuai%2Fhanbo-db","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F3kuai%2Fhanbo-db","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F3kuai%2Fhanbo-db/lists"}