Elektrine lite

← Feed

@innocentzero@social.tchncs.de

2026-06-20 06:15 UTC

@ricci@discuss.systems Ah, that makes sense, I was thinking more along the lines of relays collecting all that data and then aggregating it (do relays do it?) Also, I have this eternal confusion on whether relays pull from PDSes or PDSes push to relays. If it's the latter, how do new relays advertise themselves to the PDSes?

Replies (2)

  • @ricci@discuss.systems 2026-06-20 06:24

    @innocentzero@social.tchncs.de It's probably better to think of them as streaming rather than push or pull; a relay connects to a PDS, says "hey what's going on", and from that point on, every record created on the PDS (posts, likes, etc.) gets sent along that stream. You *can* do what's called backfill, where the relay fetches older stuff too, so that the relay's clients can get that older data straight from the relay. However, this is expensive. Real expensive. So expensive that even the official Bluesky relays don't support it anymore. This is one point of common misunderstanding; back when this was the way relays worked, they were up in the ream of VC-money-required. However, this is no longer the case. People still do backfill for some purposes. However, now, they do it by contacting the PDSes directly.

    Open ##5120048

  • @ricci@discuss.systems 2026-06-20 06:32

    @innocentzero@social.tchncs.de Relays do relatively little work, in the sense that they "just" take in records from a bunch of PDS streams on one side, and spit them out on a single stream on the other side. (Actually, they spit out multiple streams, one per client; but the basic work is the same.) Something to be aware of is that in addition to relays, there are jetstreams; these are services that *filter* the events for you. So, if you want to run a small app, one that doesn't care about all the Bluesky posts the relay is sending you, or that only wants events for a few users, or whatever, a jetstream consumes the output of a relay, and outputs just the subset you asked for. These services have more work to do, because they have to output a different stream for every client. They also do some things that make developers' lives easier, like convert the CBOR binary format to plain JSON, and check a bunch of the crypto for you. At current scales? Jetstreams are still not too expensive, especially if you have few clients. If you think that the atproto network is approximately done growing, all is good. If you think it's the future of all social applications, good luck running community ones in that future.

    Open ##5120049