SQLite 上での分散高パフォーマンスオブジェクトストレージ
## Japanese Translation:
Blobasaur は、SQLite と Rust を用いて構築された、高性能なシャーディングされた Blob ストージードメインサーバーであり、Zerodha の Kite 取引プラットフォームを約 2000 万人のユーザーに提供しています。このシステムは、単一ノードのスケーリング制限、1 MB のサイズ上限、そして低いレイテンシという課題を抱えていた管理されていない SSDB バックエンドを成功裏に代替しました。「シャーディング」というアーキテクチャを実現するために、複数の SQLite ファイルに対してマルチプローブの一貫性のあるハッシュイングを採用することで、Blobasaur は書き込みスループットを **3.3 倍**(約 25k ops/s に達する)高めており、中央値レイテンシを約 8 ms から 3 ms 未満へと削減しています。
このシステムは、標準搭載の Zstd 圧縮を活用し、データペイロードを概ね **11 倍**に压缩することでストレージコストを大幅に低減するとともに、`blobs` テーブルと Redis 風のハッシュネームスペースを採用した独自スキーマを通じて、KB から MB までの多様なデータ種別を処理します。ScyllaDB、PostgreSQL、RocksDB、S3 といった代替案は、リソース使用量の多さ、バルク書き込み性能の不十分さ、あるいは複雑性などの理由により却下されましたが、Blobasaur は軽量な静的バイナリソリューションを提供します。現在このプロジェクトは AGPLv3 ライセンスの下で稼働しており、手動でのフェイルオーバー支援(ライブのリバランスおよび自動フェイルオーバーは将来の目標です)に対応したクラスター(3 ノード)上で動作しています。
## Text to translate
," I will generate one that retains the high-level narrative of the original while integrating the critical technical details (content types, specific comparisons, architecture specifics) from the list without making it overly dense.
---
### Output Results
**Missing elements:**
- Specific data types stored (user preferences, chart layouts, financial templates).
- Context of the user base (~20 million customers on the Kite platform).
- Detailed comparison of rejected technologies (specific names and reasons like CGo limitations, BYTEA performance, complexity).
- Technical architecture specifics (schema design with namespaces, WAL mode, dual-write migration strategy, specific licensing).
**Inferences / leaps:**
- None. The summary stays within the bounds of the provided text.
**Improved summary:**
> **Blobasaur** is a high-performance, sharded blob storage server built on SQLite and Rust to serve Zerodha's Kite trading platform for approximately 20 million users. It successfully replaced an unmaintained SSDB backend that was limited by single-node scaling, a 1 MB size cap, and poor latency. By implementing a "sharded" architecture using multi-probe consistent hashing across multiple SQLite files, Blobasaur achieves write throughput **3.3 times higher** (reaching ~25k ops/s) and reduces median latency from ~8 ms to under 3 ms.
>
> The system leverages built-in Zstd compression to shrink data payloads by roughly **11x**, significantly lowering storage costs, and utilizes a custom schema with `blobs` tables and Redis-style hash namespaces to handle various data types (from KBs to MBs). While alternative options like ScyllaDB, PostgreSQL, RocksDB, and S3 were evaluated and rejected for reasons such as high resource usage, suboptimal bulk write performance, or complexity, Blobasaur offers a lightweight static binary solution. The project is currently operational with manual failover support (live rebalancing and auto-failover are future goals) and runs on a cluster of three nodes under the AGPLv3 license.