khonsulabs / bonsaidb

A developer-friendly document database that grows with you, written in Rust
https://bonsaidb.io/
Apache License 2.0
1.01k stars 37 forks source link

Leverage tikv as KV store #202

Closed huiwenhan closed 2 years ago

huiwenhan commented 2 years ago

Why not leverage TIkv as the KV store to accelerate the bonsainDB development ? https://github.com/tikv/tikv

daxpedda commented 2 years ago

I don't believe TiKV aligns with BonsaiDBs goals. Please correct me if I'm wrong with any of my assumptions here, I never used TiKV and only have a very high-level undderstanding of it:

These are just some fundamentals that I believe don't align.

ecton commented 2 years ago

Additionally, TiKV requires a lot more than BonsaiDb. The biggest issue to me, aside from the ones that Daxpedda raised, is that there is no way to use TiKV in a non-networked mode or single-server, which is a fundamental feature that BonsaiDb supports.

BonsaiDb's clustering and replication are still to-be-developed. If you need a clustered key-value storage or key-value storage that is considered stable, use TiKV today. If you're looking for the best developer experience for developing and deploying a database that will eventually support clustering as well, BonsaiDb is a good option.

If you're looking for specific features that TiKV has that BonasiDb currently doesn't, please open up issues with specific feature requests.