OpenGithubs / OpenGithubs/weekly

【开源自荐】wedb_embed:纯 Rust 嵌入式 Redis 引擎,速度达 Redis 的 20~40 倍

Open
#146 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
No language data
Stars
1.7k
Forks
71
PR merge metrics
No merged PRs in 30d

Description

GitHub: https://github.com/webc-site/wedb_embed
示例代码: https://github.com/webc-site/wedb_embed/tree/main/examples
Crates.io: https://crates.io/crates/wedb_embed
Docs.rs: https://docs.rs/wedb_embed

wedb_embed vs Redis 性能与资源对比

项目简介:
wedb_embed 是一个以纯 Rust 实现的嵌入式 Redis 兼容 LSM 数据库引擎。无需部署独立的 Redis 服务进程或 Docker 容器,直接在进程内提供完整的 Redis 数据结构与操作接口,为 Rust 应用程序带来极速的本地持久化存取能力。

核心亮点:

  • 读写速度达 Redis 的 20~40 倍:通过进程内函数直调规避了网络 Socket、TCP 栈切换与 RESP 编解码开销,单点点查处于亚微秒与微秒区间。
  • 物理磁盘占用缩减 84%:5GB 数据集实测物理磁盘仅占用 1,179 MB(较 Redis AOF 的 7,531 MB 节省 84%),得益于 LZ4 块级压缩与大 Value 键值分离。
  • 常驻内存 RSS 降低 94%:同等数据量下常驻内存仅为 281 MB(较 Redis 的 4,800 MB 降低 94%),严格受限于配置的块缓存预算。
  • 零堆分配 Key 编码:采用 Order-Preserving Prefix Varint (OPPV) 与 64 字节栈缓冲区(SmallKey),消除了热点路径内存分配。
  • 16 种数据结构:支持 String、Hash(字段级 TTL HEXPIRE)、List、Set、Sorted Set、Bitmap、JSON(JSONPath)、Bloom/Cuckoo 过滤器、TimeSeries、Geo、HyperLogLog、TDigest、Streams、全文搜索以及 HNSW 向量检索。

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the linked wedb_embed repository, especially its README, examples, and Docs.rs page, to understand what is being proposed for inclusion. The issue does not name a file, test, or specific change in OpenGithubs/weekly, so first determine the weekly project's submission format and acceptance criteria. Done would mean a concrete decision and a defined location or format for adding the project.

Written by the indexing model from the issue text.

Assessment

Tech stack
redis, rust
Domain
content
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.