Elektrine lite

← Feed

@reiver@mastodon.social

Post #1940138

2026-05-03 17:20 UTC

There is a comparison that can be made between ActivityPub and Event-Sourcing. 3/ With ActivityPub, Activities are often applied to an object. That object gets assigned an ID in the form of a URL. (And, by URL I mean URL, URI, IRI, etc.) One doesn't have to read through all the Activities in an inbox, outbox, etc to get the final state of an object. One can just get the JSON-LD document from the object's ID URL to get the final state. #ActivityPub #ActivityStreams #EventSourcing #FediDev

Replies (2)

  • @steve@social.technoetic.com 2026-05-04 03:54

    @reiver@mastodon.social There's a rough analogy to event sourcing, with several significant differences. Inboxes and outboxes are prepend-only. In a sense, they are a projection of the logical time-ordered event sequence (activity stream). The boxes may not contain all events (see spec wrt outbox), so accurate projections may not be possible. I agree that it's not necessary to read the whole box to get the current state of an object. However, note that transient objects are not required to have IDs.

    Open ##1940137

  • @reiver@mastodon.social 2026-05-03 17:34

    RE: https://mastodon.social/@reiver/114002434643920102 4/ Related (in quote-boost). #ActivityPub #ActivityStreams #FediDev

    Open ##2935250