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.)
Or read this on Hacker News