Distributed, high-performance blob storage on SQLite(zerodha.tech)
285 points by ghostfoxgod 10 days ago | 72 comments
tl;dr: Zerodha built Blobasaur, an open-source Rust-based blob store that speaks the Redis protocol and uses sharded SQLite files as its storage engine, to replace the unmaintained SSDB for storing user UI preferences and chart layouts. It uses consistent hashing across SQLite shards (each with a dedicated writer and group commit), zstd compression (~11x reduction), and Redis Cluster protocol for multi-node scaling, achieving ~25k writes/sec with single-digit ms p99 latency on commodity hardware. It runs in production as a 3-node cluster serving Kite's ~20M users, with relaxed durability (WAL + synchronous=NORMAL) acceptable for non-critical preference data.
HN Discussion:
  • ↓SQLite is fundamentally unsuited for this blob storage use case due to commit overhead
  • ↓Project is reinventing the wheel when existing solutions like Ceph scale better
  • ~Questioning missing details on replication, fault tolerance, and consistency model
  • ~Suggesting alternative approaches like storing JSON schemas in SQL or using diffs
  • ~Questioning whether alternatives were fairly evaluated (e.g., other DBs with compression)