Engineering notes / Part 2 · Distribution

One node pulls.
The other nine shouldn’t have to.

Content-addressed distribution, Bloom filters, and what happens to trust when the hash is the proof.

For years, image distribution looked like this:

N nodes. Same image. N independent pulls from the same registry.

We normalized it. Cache proxies. Pull-through mirrors. Rate-limit retries. Backoff. A whole layer of infrastructure added to absorb a question nobody asked:

If two machines already store the same content, why is a registry involved at all?

The default we stopped questioning

A registry is an origin, not a distribution protocol. But most clusters use it as both. Ten nodes need the same 2 GB image, so ten nodes pull 2 GB. The registry serves the same bytes ten times, the network carries them ten times, and the operator pays for the same transfer ten times.

Pull-through caches help. They move the duplication to a local cache, but they still make the cache the source for every node. The cache becomes another authority to operate, secure, and scale.

Content addressing suggests a different shape.

If content is identity, “what do you have?” is a set

In Pullrun, every image is a content-addressed DAG. A node’s inventory is a set of hashes, not a file listing.

Set comparison has a data structure: a Bloom filter.

The exchange is small:

  • Node A sends a Bloom filter of its digests — kilobytes, not gigabytes.
  • Node B computes the delta: only what A is missing.
  • A transfers the missing blocks.
  • Every received block is verified against its hash before acceptance.

The Bloom filter is probabilistic, so it can produce false positives. A false positive means A might be told it has something it does not; the protocol still has to handle that. The win is that the common case — most blocks already present — becomes a tiny message instead of a full transfer.

Trust becomes unnecessary — for the content

Distribution usually means trust. You trust the mirror. You trust the proxy. You trust the peer.

Here, the transport can lie and the content still cannot. A block is accepted only if its hash matches. A peer can send garbage; the receiver rejects it. A peer can claim to have a block; the receiver verifies.

A hash is not a promise. It is a proof.

That does not remove every trust decision. The registry is still an authority for the original manifest and for authenticity. The hash proves integrity, not that the image is one you intended to run. Signature policy and provenance still matter. The claim is narrower: you do not have to trust a peer for the bytes.

The registry changes job

The registry stops being the source of every byte. It becomes the seed, the origin, the fallback.

That is a different job, with different scaling properties. The first node in a cluster pulls from the registry. The rest sync the delta. The registry handles authority and cold start, not the steady-state fan-out.

The bill

P2P carries baggage, and I would rather state it than hide it.

  • Network reality. Port blocking and NAT traversal are real. Not every pair of nodes can talk directly.
  • Operational conversations. “Is this BitTorrent?” is a question security teams will ask. You need an answer before deployment.
  • Eventually consistent state. Gossip is not a transactional directory. Sometimes the delta is incomplete and the registry is the fallback.
  • LAN assumptions. mDNS discovery does not cross VLANs. LAN-first is a real constraint, not a footnote.
  • The registry is not gone. Content-addressed peers give you a cache hierarchy, not a replacement for authority.

This is why “kill the registry” is the wrong framing. The interesting question is where central pulling stops making sense, and who pays for that decision today.

The question

At what cluster size does centralized pulling stop making sense — and who pays for that decision today?

That is the direction I’m exploring with Pullrun.

DistributionP2PBloom filtersCloud native
All writing ↗

Run the runtime, not another stack.

Install Pullrun ↗
Mohammed Boukaba

AI infrastructure and systems engineer. Creator of Pullrun and Rune. Rust, Go, Firecracker, Kubernetes.

GitHub ↗