# Bluesky's one-hash bloom filter slashes deploy times from 90 to 15 minutes

Original title: One Hash Bloom Filters

> Hacker News story 50157865 · language: en · submitted 2026-10-19
> Web version: https://zeli.app/story/50157865
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 148 · by [jcalabro](<https://news.ycombinator.com/user?id=jcalabro>) · 💬 14
[original](<https://calabro.io/ohbf>) · [HN discussion](<https://news.ycombinator.com/item?id=50157865>)

## Summary

Jim Calabro explains how Bluesky's backend uses bloom filters to skip millions of database queries per second, then dives into a one-hash variant that splits the bit array into pairwise coprime partitions. His Go implementation, gloom, has run in production for nine months and powers the Jetstream sync service. Cache-line alignment, a single MUL instruction for block selection, and sharded atomic writes keep lookups to one cache miss.

## Key quote

> A single deploy used to take 90 minutes to roll out fully because of this!

## HN discussion (14 comments)

### [aappleby](<https://news.ycombinator.com/item?id=50160090>)

> You don't actually have to do this - you can stick with a power of 2 sized table and just gently mix the hash value to get each additional bit index.
>
> (source - I wrote MurmurHash/SMHasher and have used the above in my own bloom filters and cuckoo hash tables)

### [FreakLegion](<https://news.ycombinator.com/item?id=50159640>)

> NB: You're trading non-negligible space efficiency here, which gets worse as you lower the false positive rate. Partitioning means uneven occupancy rates across partitions, and either you accept low occupancy (increased filter size overall) or you're pretty much guaranteed to have hot blocks (increased false positive rate for specific partitions).

### [cperciva](<https://news.ycombinator.com/item?id=50160687>)

> While much cheaper than going to disk, computing k independent hashes per key is still a bit expensive for very high performance systems.
>
> Depends how big the bloom filter is.  Most hashes are big and their bits are independent.

---

## Cite

- Page: https://zeli.app/story/50157865
- Date: 2026-10-19
- Source: calabro.io (https://calabro.io/ohbf)
- Hacker News: https://news.ycombinator.com/item?id=50157865

## Other languages

- zh: https://zeli.app/zh/story/50157865 · markdown: https://zeli.app/zh/story/50157865.md
- ja: https://zeli.app/ja/story/50157865 · markdown: https://zeli.app/ja/story/50157865.md
- ko: https://zeli.app/ko/story/50157865 · markdown: https://zeli.app/ko/story/50157865.md
- de: https://zeli.app/de/story/50157865 · markdown: https://zeli.app/de/story/50157865.md
- es: https://zeli.app/es/story/50157865 · markdown: https://zeli.app/es/story/50157865.md
- ru: https://zeli.app/ru/story/50157865 · markdown: https://zeli.app/ru/story/50157865.md
