Oriel — AI & technology worth noticing, every day.

Distributed, high-performance blob storage on SQLite

Web page · https://zerodha.tech/blog/high-performance-distributed-blob-storage

First seen by Oriel on .

AI summary

This engineering post presents Blobasaur, an open-source Rust blob server using sharded SQLite and Redis protocols to deliver high-throughput, low-latency storage for Zerodha’s JSON preferences.

  • Each shard has a dedicated writer queue using batched BEGIN IMMEDIATE transactions, while read-only connection pools serve concurrent reads.
  • In benchmarks, 16 shards reached 25,324 HSET operations per second versus 7,740 for one shard, with median write latency falling from 8.2 to 2.1 milliseconds.
  • Production zstd compression reduced average HSET payloads from 63.6 KiB to 5.5 KiB and p99 payloads from 935 KiB to 59.3 KiB.
  • Redis Cluster routing distributes keys across machines, but slot assignment is static and live rebalancing and automatic failover are not implemented.
  • WAL mode with synchronous = NORMAL accepts possible recent-write loss, while async_write lowers latency further for non-critical UI preferences; resharding remains offline.

#sqlite #rust #redis cluster #blob storage

Generated by gpt-5.6-sol. Check the original for details.

Metric trends

Last 30 days · Up to 120 recorded samples per source and metric, with reposts kept separate · First and latest retained

Points

Score reported by the source.

  • Hacker News: 282, latest observation ; +278 over observed period since
  • Lobsters: 30, latest observation ; +29 over observed period since

Comments

Comment count reported by the source.

  • Hacker News: 72, latest observation ; +72 over observed period since
  • Lobsters: 3, latest observation ; +3 over observed period since

Aliases

SourceExternal IDURL
Hacker News50557537https://zerodha.tech/blog/high-performance-distributed-blob-storage/ Read discussion
Lobstersbk5nfshttps://zerodha.tech/blog/high-performance-distributed-blob-storage/ Read discussion