Get the latest tech news

Jetstream: Shrinking the AT Protocol Firehose by >99%


Jetstream is a streaming service that consumes an AT Proto Sync Firehose and converts it into lightweight, filterable, friendly JSON, allowing us to live tail all posts on Bluesky for as little as ~850 MB/day

Since repos are represented as Merkle Search Trees, each firehose event contains an update to the user’s MST which includes all the changed blocks (nodes in the path from the root to the modified leaf). Jetstream converts the CBOR-encoded MST blocks produced by the AT Proto firehose and translates them into JSON objects that are easier to interface with using standard tooling available in programming languages. Since Jetstream emits marshalled JSON through the websocket for developer-friendliness, I figured it might be a neat idea to see if we could get further bandwidth reduction by employing zstd to compress events we send to consumers.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of protocol

protocol

Photo of Firehose

Firehose

Photo of jetstream

jetstream

Related news:

News photo

The four changes in Thread 1.4 that could fix the protocol

News photo

TR-069, a protocol that made broadband manageable, turns 20. What's coming next?

News photo

SecureDrop Protocol