kronotop/kronotop
Distributed, transactional document database backed by FoundationDB.
What it solves
Kronotop 是一个分布式、事务性文档数据库,旨在提供高隔离性和可扩展性。它特别针对 AI agent 和多租户应用需要在一个集群内拥有各自逻辑数据库(命名空间)的需求,允许在没有显著开销的情况下创建数百万个隔离的环境。
How it works
Kronotop 基于 FoundationDB 构建,利用 FoundationDB 的目录层来实现命名空间作为 key prefix。它提供两种主要的数据模型:用于 BSON 文档和具有查询语言 (BQL) 及向量搜索能力的 "Bucket",以及用于有序键值对的 "ZMap"。它使用 RESP2 和 RESP3 协议,使其与现有的 Redis-like 客户端兼容。文档内容存储在名为 Volume 的分段式存储引擎中,而元数据和 ZMap 数据直接存储在 FoundationDB 中。
Who it’s for
它适用于构建 AI agent 上下文存储、水平可扩展的事务性文档存储,以及需要基于租约的锁或原子性变更的分布式协调系统。开发者。
Highlights
Massive Multi-tenancy: Supports millions of isolated namespaces in a single cluster.
ACID Transactions: Inherits strictly serializable transactions from FoundationDB, supporting atomic commits across multiple namespaces.
RESP Compatibility: Works with
redis-cliandvalkey-cliwithout requiring new drivers.Vector Search: Integrated approximate nearest neighbor (ANN) search using HNSW and Product Quantization for AI embeddings.
Hybrid Storage: Creates combines a document store (Bucket) with an ordered key-value store (ZMap).