返回首页

一周热榜

2作者: whispem4 天前原帖
嗨,HN, 我是Emilie,我有文学背景(这也解释了文档写得很好!),在过去几个月里,我通过构建minikv来学习Rust和分布式系统。最近,这个项目在《Programmez!》杂志上被报道了:<a href="https://www.programmez.com/actualites/minikv-un-key-value-store-distribue-en-rust-construit-en-public-38861" rel="nofollow">https://www.programmez.com/actualites/minikv-un-key-value-st...</a> minikv是一个开源的分布式存储引擎,旨在用于学习、实验和自托管设置。它结合了一个强一致性的键值数据库(Raft)、兼容S3的对象存储以及基本的多租户功能。 功能/亮点: - Raft共识,带有自动故障转移和分片 - 兼容S3的HTTP API(以及REST/gRPC API) - 可插拔的存储后端:内存、RocksDB、Sled - 多租户:每个租户的命名空间、基于角色的访问控制、配额和审计 - 指标(Prometheus)、TLS、基于JWT的API密钥 - 易于部署(单个二进制文件,支持Docker/Kubernetes) 快速演示(单节点): ```bash git clone <a href="https://github.com/whispem/minikv.git" rel="nofollow">https://github.com/whispem/minikv.git</a> cd minikv cargo run --release -- --config config.example.toml curl localhost:8080/health/ready ``` # S3上传 + 读取 ```bash curl -X PUT localhost:8080/s3/mybucket/hello -d "hi HN" curl localhost:8080/s3/mybucket/hello ``` 文档、集群设置和架构细节都在代码库中。期待听到大家的反馈、问题、想法,或者你们在Rust中运行分布式基础设施的故事! 代码库:<a href="https://github.com/whispem/minikv" rel="nofollow">https://github.com/whispem/minikv</a> 库:<a href="https://crates.io/crates/minikv" rel="nofollow">https://crates.io/crates/minikv</a>
2作者: ahacop4 天前原帖
Erwin Brandstetter是一位PostgreSQL顾问,在Stack Overflow上拥有约67万的声誉和约7000个回答。<p>多年来,我已经记不清自己在Stack Overflow上搜索Postgres问题时,有多少次最终找到的答案都是Erwin Brandstetter提供的,这些答案异常详尽且清晰。通过学习他的回答,我成为了一个更优秀的开发者。<p>ErwinDB让你可以离线浏览Erwin Brandstetter的回答,并通过文本用户界面(TUI)快速搜索。它包括语义搜索、语法高亮、单键在外部浏览器中打开链接,以及一个“Erwin模式”,该模式会突出显示他的帖子。