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

#ActivityPub developers only please: how many items should be in a full collection page?

General Discussion
26 8 9

Gli ultimi otto messaggi ricevuti dalla Federazione
  • @evan@cosocial.ca remind me to change pagination size to 1 on April 1st

    read more

  • @macgirvin the 12-item page size is a real kick in the teeth.

    read more

  • Anyway, here's my thought: I think the advantages of embedded objects are offset by the problems with caching. I think we should make collection pages real, stable objects, with fixed contents and real modification dates. Return only references, not embedded objects. Do filtering, though. And make pages big -- 100 items or more.

    read more

  • Another thing is whether "pages" in your collection are real objects -- buckets that fill up with items as time goes on -- or just fixed-length offsets from the most recent item. I think having real pages is much better for caching and synchronization.

    read more

  • The other things is collection filtering. This is where you check each item in a page to see if the client can actually read it, and leaving it out if not. It's very important if you include embedded objects, and not that important if not. If you only include references, they can be checked when the client tries to fetch them.

    read more

  • There are a couple of other confounding factors.

    Adding embedded objects makes supporting HTTP Caching harder. The `ETag` header isn't too hard, but `Last-Modified` is difficult. You need to check not only what the collection page modification date is, but also each of the embedded objects (and take the max date!). It's a pain and most folks don't even implement it.

    read more

  • If you're not showing embedded objects, then filling up a collection page is usually just a couple of database queries. And adding more items to the page has very little extra cost.

    The bigger your pages are, the fewer requests a client has to make to get all the data.

    So, I think if you're not doing embedded objects, the pressure is towards bigger pages.

    read more

  • So, here's the trade-off: adding embedded objects can reduce the number of extra HTTP requests required to render the page of objects. For example, if showing a `followers` collection, adding each actor's name, avatar, and so on can be a real savings.

    However, it puts a lot of costs on the server -- looking up cached or local data about each object.

    Long story short: adding embedded objects is a pressure towards having smaller page sizes.

    read more
Post suggeriti
  • 0 Votes
    1 Posts
    17 Views
    Unlocking development with #ActivityPub Client to Server APIhttps://fosdem.org/2026/schedule/event/QK7XSV-activitypub-c2s/
  • 0 Votes
    1 Posts
    8 Views
    Short video isn't the villain, it’s just how we share our lives today. More people are capturing and sharing raw, human moments than ever before, and that’s beautiful ✨The problem isn't the format; it's the surveillance and toxicity built into the big platforms.We’re trying to keep the joy (sharing + remixing + community) and ditch the stuff that harms people (manipulative feeds, creepy tracking, lock-in). https://joinloops.org/why-loops-matters#Loops #TikTok #ActivityPub
  • 0 Votes
    1 Posts
    12 Views
    I could use some #FediHelp with some website traffic weirdness I have encountered.I use a #WordPress blog with the #ActivityPub plugin. This means that I get #Fediverse -based requests that look like this in the #Apache logs:"POST /wp-json/activitypub/1.0/actors/1/inbox HTTP/1.1"So far, so unspectacular. In the latest logs - spanning from 20/Nov/2025:01:49:32 to 21/Nov/2025:05:49:47 - I've had 2046 such requests. Most of these are one-time affairs.However, 1099 of these requests are from mastodon.sdf.org , which is very suspicious. They are very evenly spread, too - a new request comes every minute or two.This instance is on #Mastodon 4.1.25. Does this version have a known bug where it sends the same request over and over again?@SDF
  • 0 Votes
    1 Posts
    17 Views
    Week in Fediverse 2025-10-31Servers- Mitra v4.12.0- Manyfold v0.127.0- snac v2.84- Ktistec v3.1.2- Misskey v2025.10.2- Mastodon 4.5 for Developers- Atlas: A social mapping app that lets you post geolocated notes on the FediverseClients- Pachli v3.1.0- Mastodon for iOS v2025.07- NeoDB You v1.0.5- Thunder v0.8.0Tools and Plugins- feed2fedi v3.3.0- Poduptime v5.5.6For developers- NGI0 Progress report #0 (GoActivityPub)Articles- Fediverse instances on weird hardware, networks and operating systems- There is One Fediverse. There are a Million Pickleball Courts.- A Mastodon Migration From Bluesky Would Be Different- How *you* (librarians and those working in publishing, law, and government) should use ActivityPub and Why- Fediverse Report – #141-----#WeekInFediverse #Fediverse #ActivityPubPrevious edition: https://mitra.social/objects/019a17cf-e370-2278-c196-713c73e5cdea