this post was submitted on 13 Jun 2023
18 points (100.0% liked)

Fediverse

17671 readers
25 users here now

A community dedicated to fediverse news and discussion.

Fediverse is a portmanteau of "federation" and "universe".

Getting started on Fediverse;

founded 4 years ago
MODERATORS
 

Can anyone recommend a good article or video explaining how ActivityPub works on a technical level? I understand the concept, but I'm interested how the protocol actually works (I am studying CS for context).

top 5 comments
sorted by: hot top controversial new old
[–] [email protected] 5 points 1 year ago

I'd imagine your best bet is reading through the w3c spec if you want protocol details. I think reading it directly is probably approachable enough for a CS student and should be a good exercise.

[–] [email protected] 3 points 1 year ago

TL;DR, each user is an Actor, which has an inbox for receiving objects and activities, and an outbox for sending them. The objects are essentially structured metadata that various actions can be performed on. When you respond to a status, for example, your Actor is performing a Reply activity and sends out a Note object. Following another Actor, on the other hand, would be your Actor sending another Actor a Follow activity.

This implementor's guide might be helpful to understand some of what's going on underneath the hood: https://socialhub.activitypub.rocks/pub/guide-for-new-activitypub-implementers

Some useful specs can be found here:

[–] [email protected] 2 points 1 year ago (1 children)

Activitypub uses ordinary web protocols like https to make requests between servers. It's all quite simple.

This document is quite detailed: https://www.w3.org/TR/activitypub/

[–] [email protected] 2 points 1 year ago (1 children)

Thanks, it is indeed quite simple. I guess the part that confused me was how lemmy communities are modeled. Apparently, they are just actors of type group and submitting a post is simply sending an activity to the group and its followers. So, the email comparison makes sense after all.

[–] [email protected] 2 points 1 year ago

Yeah I think it's beautiful. And because of the simplicity, I think the fediverse will take off and many new apps will come. Probably used by techies in the beginning but as soon as some big company makes something, everyone will start to use it.