Zerodha 用 SQLite 自研分片存储 Blobasaur,替换 SSDB 支撑每秒数万次读写
📊 核心数据与事实(2026-11-19):
Zerodha 团队开源了用 Rust 编写、以 SQLite 为存储引擎的分片 blob 存储 Blobasaur,已在 Kite 交易平台生产环境替换 SSDB。
• 原文实测切片:Workload 1 shard 16 shards HSET only 7,740 ops/s, p99 10.7 ms 25,324 ops/s, p99 8.3 ms 50% HSET , 50% HGET 14,227 ops/s, p99 10.5 ms 29,538 ops/s, p99 8.5 ms HGET only 67,128 ops/s, p99 2.1 ms 70,884 ops/s, p99 2.3 ms With 16 shards, write…
• 原文实测切片:Here is the compression ratio across one hour of production HSET traffic: HSET payload Sent by the client Stored in SQLite Reduction Average 63.6 KiB 5.5 KiB about 11x p99 935 KiB 59.3 KiB about 16x With SQLite’s default 4 KiB pages, shrinking…
• 原文实测切片:With naive hash % num_shards , increasing from 4 to 5 shards moves ~80% of keys.
💡 对独立开发者的启发:
1/ Zerodha 团队公开了从 SSDB 迁移到自研 SQLite 分片存储的完整选型、压测与踩坑过程,可迁移到高吞吐小对象场景。
2/ 任何一次上线流量都会自然衰减;在动手写第二个工具之前,先给第一个产品建好可持续获客漏斗(SEO 长尾词、Reddit 真实复盘、社媒切片)。
3/ 把 80% 精力放分发和落地页首屏转化上:先靠单点高痛点工具跑出稳定现金流,再谈矩阵放大。
📅 日期:2026-11-19(北京时间)
📰 信息源出处:Lobsters · zerodha.tech via gowthamgts(zerodha.tech)
🔗 原文:https://zerodha.tech/blog/high-performance-distributed-blob-storage/
📡 归档:https://billionare.me/items/rcwp9nitdhetn2jdl1g69e8z3
社媒成稿工作台 · 一键复制
飞书同步推送 · 含数据/日期/出处/启发