raw

Every Reliable Channel message carries a ~18.75 KB bloom filter

TL;DR

With the defaults in liblogosdelivery, every message sent over an SDS Reliable Channel carries the sender's whole bloom filter of messages it has seen. That's about 18.75 KB per message, whether the payload is 200 B or 200 KB, and whether the channel has seen 3 messages or 10,000. For apps that send many small messages, more than 90% of what goes on the wire is the filter.

Apps can't change this: SdsHandler.new doesn't pass the bloom parameters through, so nim-sds uses its defaults.

Where it comes from (source refs)

Checked against nim-sds b12f5ee and logos-delivery master 9473a7e (2026-10-20).

What we saw

We run Scala, a shared calendar on Loam/Logos Delivery: each change is a small sealed event, and peers catch up on missed events through an app-level reconciliation.

Why it matters beyond us

Possible fixes (roughly cheapest first)

  1. Expose bloomFilterCapacity / bloomFilterErrorRate (and maxMessageHistory) in SdsConfig and pass them to ReliabilityConfig.init. Apps with small channels could then choose, for example, 500 @ 0.01 (about 600 B).
  2. Don't attach the filter to every message.
    • Attach it every Nth message, on a timer, or only to sync or repair messages.
    • Between those, rely on causal history (maxCausalHistory, which is already sent).
  3. Compress or encode it sparsely. A mostly empty fixed-size bit array compresses very well. Alternatively, send a run-length encoding or a fixed-size top-N of recent IDs while the channel is young.
  4. Size it to the channel: start small and grow it (a scalable bloom filter), so cost tracks the messages the channel has actually seen.

Our ask: at least (1), so apps can pick a size that fits their channel. We'd be happy to test any change against Scala and Qaku.