Get the latest tech news

Jetrelay: A high-performance ATproto relay in 500 LOC


kernel do the work! Tricks for implementing a pub/sub server This post explains the design of jetrelay, a pub/sub server compatible with Bluesky’s “jetstream” data feed. Using a few pertinent Linux kernel features, it avoids doing almost any work itself.

The clients will connect to jetrelay over the loopback interface; this means no actual network traffic will hit my NIC (which is good since I’m on wi-fi). Presumably the NIC was the bottleneck in the 9k client test; but on the other hand, jetrelay wasn’t exactly short of processing power: this machine has 50 CPU cores! Backfill on startup (jetrelay starts with an empty file) Be a better websocket citizen (respond to pings, send close frames, etc.)

Get the Android app

Or read this on Hacker News

Read more on:

Photo of LOC

LOC

Photo of ATProto

ATProto

Photo of Jetrelay

Jetrelay

Related news:

News photo

Show HN: A motherfucking app (does one thing, under 300 LOC)

News photo

Show HN: HNSW index for vector embeddings in approx 500 LOC

News photo

What’s next for ATProto, the protocol powering Bluesky and other apps