Skip to content

Piero Bosio Social Web Site Personale Logo Fediverso

Social Forum federato con il resto del mondo. Non contano le istanze, contano le persone

One regret I have about ActivityPub is that navigating reverse chronological collections is really error-prone.

Technical Discussion
5 3 0

Gli ultimi otto messaggi ricevuti dalla Federazione
  • read more

  • I've been thinking lately about flow control. That's a feature of some networks where a receiver can tell a sender to slow down its sending rate to match the receiver's processing rate.

    In TCP flow control, the receiving host returns a receiving buffer size in its acknowledgement segment, so the sending host know how much data it can send without overflowing the buffer.

    I wonder if there are ways that a receiving ActivityPub protocol server could tell the sending server to slow down? Maybe we could reuse some of the RateLimit headers.

    Another option would be a special header that says how big your incoming activity queue is. "I have a very long processing queue right now, please keep stuff in your outgoing queue for a while."

    read more

  • @flancian It's an egregiously backwards-incompatible change, so probably no.

    read more

  • @julian Pages should be real containers, not slices of the collection like "last 25 items".

    read more

  • evan@cosocial.ca what about after? Using paginated collections is easy, but could be problematic if the set changes while you are navigating.

    Using after is a little more complicated but much more reliable in terms of getting exactly the next set of items.

    read more

  • @evan could this be fixed by a future version? Or given that the set is not overlapping I guess they could be provided concurrently for compatibility?

    read more

  • One regret I have about ActivityPub is that navigating reverse chronological collections is really error-prone. "first", "last", "next" and "prev" mean the opposite of what you think they mean, so it's easy to get mixed up and navigate things the wrong way.

    It's too late to change now, but I could see adding some synonyms for these properties, like "newest", "oldest", "older" and "newer", to make it easier to do the navigation code.

    read more

  • @thisismissem@activitypub.space Ah, I seem to have misread the code. I was confused by Mastodon serving its own instance actor from /actor. Thanks for the clarification!

    read more
Post suggeriti