anyway, a couple of years ago (2019) I designed a protocol called Rapunzel, which is an actor-oriented protocol that describes mutations to ring logs. it is basically "activitypub meets kafka": you can publish additions to a ring log (which can then b...
-
anyway, a couple of years ago (2019) I designed a protocol called Rapunzel, which is an actor-oriented protocol that describes mutations to ring logs. it is basically "activitypub meets kafka": you can publish additions to a ring log (which can then be iterated over with a cursor), and you can also subscribe to receive those additions via a websocket.
-
Ariadne Conill 🐰:therian:replied to Ariadne Conill 🐰:therian: last edited by
i am sure it is now fairly obvious where i am going with this, so...
-
kopper [according to whom?] :colon_three:replied to Ariadne Conill 🐰:therian: last edited by
@ariadne what do i need to search to get more info about what you call ring logs? searching for "ring log" does not seem to produce anything useful
-
Ariadne Conill 🐰:therian:replied to Ariadne Conill 🐰:therian: last edited by
the protocol itself is quite simple: you have activitypub actors (literally the same JSON-LD vocabulary), which POST new messages to be appended to a ring log.
if you GET the ring log, then you are given a JSON-LD ActivityStreams OrderedCollection.
if you GET the ring log with a WebSocket upgrade header and valid HTTP signature, you get a websocket that will receive new updates to the ring log and will also accept inbound updates.
that's it. that's the entire protocol.
-
Ariadne Conill 🐰:therian:replied to kopper [according to whom?] :colon_three: last edited by
@kopper it is just a sequence of entries that gets garbage collected by popping the oldest items
-
Ariadne Conill 🐰:therian:replied to Ariadne Conill 🐰:therian: last edited by
a key difference however verses activitypub is that there is no outer "activity container" (e.g. Create -> Note). this is mostly because those details are reflected in the protocol at HTTP level.
-
Oblomovreplied to Ariadne Conill 🐰:therian: last edited by
@ariadne so the actor just POSTs the text of the message? Where does the fact it's an AP actor come into play?
-
Ariadne Conill 🐰:therian:replied to Oblomov last edited by
@oblomov the actor signs the POST
-
Oblomovreplied to Ariadne Conill 🐰:therian: last edited by
@ariadne ah, so the body of the POST would be something like an AP signed Object, rather than the Create action?
-
Ariadne Conill 🐰:therian:replied to Oblomov last edited by
@oblomov yep