Salta al contenuto
0
  • Home
  • Piero Bosio
  • Blog
  • Mondo
  • Fediverso
  • News
  • Categorie
  • Old Web Site
  • Recenti
  • Popolare
  • Tag
  • Utenti
  • Home
  • Piero Bosio
  • Blog
  • Mondo
  • Fediverso
  • News
  • Categorie
  • Old Web Site
  • Recenti
  • Popolare
  • Tag
  • Utenti
Skin
  • Chiaro
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Scuro
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Predefinito (Cerulean)
  • Nessuna skin
Collassa

Piero Bosio Social Web Site Personale Logo Fediverso

Social Forum federato con il resto del mondo. Non contano le istanze, contano le persone
  1. Home
  2. Categorie
  3. Fediverso
  4. I think the #ActivityPub client-to-server API is extremely important and underrated.

I think the #ActivityPub client-to-server API is extremely important and underrated.

Pianificato Fissato Bloccato Spostato Fediverso
activitypubfediverse
133 Post 13 Autori 1.1k Visualizzazioni
  • Da Vecchi a Nuovi
  • Da Nuovi a Vecchi
  • Più Voti
Rispondi
  • Risposta alla discussione
Effettua l'accesso per rispondere
Questa discussione è stata eliminata. Solo gli utenti con diritti di gestione possono vederla.
  • julian@fietkau.socialundefined Questo utente è esterno a questo forum
    julian@fietkau.socialundefined Questo utente è esterno a questo forum
    julian@fietkau.social
    scritto su ultima modifica di
    #61

    @julian@activitypub.space I'm doing my best to realistically prioritize traffic load as well, yeah. The case of accepting an incoming reply will be frequent, whereas the one where you first accept a reply, then change your mind and revoke the acceptance, would be expected to be relatively rare.

    The easy way out for me would be to just not touch that part of the spec, leave it as Accept(Note), and see what implementers do with it.

    @rimu

    1 Risposta Ultima Risposta
    0
    • julian@fietkau.socialundefined julian@fietkau.social

      @trwnh The GTS implementation comes with a vocabulary extension, so adding another activity type would be an option.

      I guess the reason they didn't do that for this case (I wasn't around for the decision) is that the Accept(Note) thing is itself a backward compatibility hack that they hoped to be able to drop eventually, when more servers would send ReplyRequests (which can be Accept-ed directly), and adding a new type would have felt too much like “enshrining” it.

      @evan @julian@activitypub.space @smallcircles

      trwnh@mastodon.socialundefined Questo utente è esterno a questo forum
      trwnh@mastodon.socialundefined Questo utente è esterno a questo forum
      trwnh@mastodon.social
      scritto su ultima modifica di
      #62

      @julian i think mastodon handles multityping in certain code paths but most other projects don't. it could have been a compatibility thing?

      julian@fietkau.socialundefined 1 Risposta Ultima Risposta
      0
      • trwnh@mastodon.socialundefined trwnh@mastodon.social

        @julian i think mastodon handles multityping in certain code paths but most other projects don't. it could have been a compatibility thing?

        julian@fietkau.socialundefined Questo utente è esterno a questo forum
        julian@fietkau.socialundefined Questo utente è esterno a questo forum
        julian@fietkau.social
        scritto su ultima modifica di
        #63

        @trwnh Maybe. I have no idea if GTS itself can handle activities with multiple types.

        1 Risposta Ultima Risposta
        0
        • smallcircles@social.coopundefined smallcircles@social.coop

          @evan @julian @deadsuperhero

          Except when they are called other names instead ;p

          A timeline is a different thing than a collection imho. And an AS collection has some very particular functionality, which if I model a timeline in my app may not supported (e.g. reverse ordering).

          Collection / 'timeline' is one of those words where sometimes they indicate an app domain, and sometimes a core protocol mechanism. Same is true with 'follow' which is sometimes a user action, sometimes indicates low-level publish/subscribe.

          For core capabilities that must be part of the specs, in 'protocol space' it may be better to use terminology that is more common in messaging architectures and all the various architecture patterns that are involved. Perhaps idk we deal with a time-ordered event log or something like that.

          steve@social.technoetic.comundefined Questo utente è esterno a questo forum
          steve@social.technoetic.comundefined Questo utente è esterno a questo forum
          steve@social.technoetic.com
          scritto su ultima modifica di
          #64

          @smallcircles @evan An AS2 Collection cannot be a timeline (in general). It’s not even ordered. An AS2 OrderedCollection (a subtype of Collection) might be ordered by time or not, so it’s also not a timeline (in general). When they are ordered by some time value (unspecified in AP) they are often called “streams” in the spec. The Mastodon content timelines are not the same as AP activity streams although a filtered AP stream can be transformed to a content timeline.

          mariusor@metalhead.clubundefined evan@cosocial.caundefined 2 Risposte Ultima Risposta
          0
          • steve@social.technoetic.comundefined steve@social.technoetic.com

            @smallcircles @evan An AS2 Collection cannot be a timeline (in general). It’s not even ordered. An AS2 OrderedCollection (a subtype of Collection) might be ordered by time or not, so it’s also not a timeline (in general). When they are ordered by some time value (unspecified in AP) they are often called “streams” in the spec. The Mastodon content timelines are not the same as AP activity streams although a filtered AP stream can be transformed to a content timeline.

            mariusor@metalhead.clubundefined Questo utente è esterno a questo forum
            mariusor@metalhead.clubundefined Questo utente è esterno a questo forum
            mariusor@metalhead.club
            scritto su ultima modifica di
            #65

            @steve I think
            we need to emphasize that timelines can be built from regular collections, even unordered ones, by using some intermediate representations specific to the type of timeline that a client wants to render.

            The fact that the specification does not directly support a mapping between a collection and a responsive timeline, *DOES NOT MEAN* one can't be built from it, only that it requires a little more effort on the client side.

            My goto example is how rich mail clients allow responsive mailbox representations on top of a much less expressive collection method that IMAP provides compared to ActivityPub.

            @smallcircles @evan

            steve@social.technoetic.comundefined 1 Risposta Ultima Risposta
            0
            • mariusor@metalhead.clubundefined mariusor@metalhead.club

              @steve I think
              we need to emphasize that timelines can be built from regular collections, even unordered ones, by using some intermediate representations specific to the type of timeline that a client wants to render.

              The fact that the specification does not directly support a mapping between a collection and a responsive timeline, *DOES NOT MEAN* one can't be built from it, only that it requires a little more effort on the client side.

              My goto example is how rich mail clients allow responsive mailbox representations on top of a much less expressive collection method that IMAP provides compared to ActivityPub.

              @smallcircles @evan

              steve@social.technoetic.comundefined Questo utente è esterno a questo forum
              steve@social.technoetic.comundefined Questo utente è esterno a questo forum
              steve@social.technoetic.com
              scritto su ultima modifica di
              #66

              @mariusor @smallcircles @evan I’m not sure I completely follow. A timeline is ordered by time. I agree that an unordered collection could be sorted by time to create a timeline. The AP OrderedCollection “stream” is a kind of rigid presorting that anticipates what an AP client would want. However, I also agree that even those could be reordered (by time or otherwise) and/or filtered in the client to provide custom views of the activity stream.

              mariusor@metalhead.clubundefined 1 Risposta Ultima Risposta
              0
              • steve@social.technoetic.comundefined steve@social.technoetic.com

                @mariusor @smallcircles @evan I’m not sure I completely follow. A timeline is ordered by time. I agree that an unordered collection could be sorted by time to create a timeline. The AP OrderedCollection “stream” is a kind of rigid presorting that anticipates what an AP client would want. However, I also agree that even those could be reordered (by time or otherwise) and/or filtered in the client to provide custom views of the activity stream.

                mariusor@metalhead.clubundefined Questo utente è esterno a questo forum
                mariusor@metalhead.clubundefined Questo utente è esterno a questo forum
                mariusor@metalhead.club
                scritto su ultima modifica di
                #67

                @steve yes, that's how I meant it. A client fetches as much of the collection as it can, then applies whatever rules it wants to transform the result into a "timeline" when the user asks for it.

                This however most likely requires local caching of the collection to have decent latency.

                @smallcircles @evan

                steve@social.technoetic.comundefined 1 Risposta Ultima Risposta
                0
                • mariusor@metalhead.clubundefined mariusor@metalhead.club

                  @steve yes, that's how I meant it. A client fetches as much of the collection as it can, then applies whatever rules it wants to transform the result into a "timeline" when the user asks for it.

                  This however most likely requires local caching of the collection to have decent latency.

                  @smallcircles @evan

                  steve@social.technoetic.comundefined Questo utente è esterno a questo forum
                  steve@social.technoetic.comundefined Questo utente è esterno a questo forum
                  steve@social.technoetic.com
                  scritto su ultima modifica di
                  #68

                  @mariusor @smallcircles @evan Yes, it can be done in the client or the server, or both. I’d like to see an interoperable way to define custom timelines (a kind of user-defined timeline algo) that the server maintains. A Mastodon account list timeline is a super simple version of it, but AP could provide something much more powerful (advanced filtering, merging, ranking, …). Ideally, these could be shared and customized further on the client side.

                  mariusor@metalhead.clubundefined 1 Risposta Ultima Risposta
                  0
                  • steve@social.technoetic.comundefined steve@social.technoetic.com

                    @mariusor @smallcircles @evan Yes, it can be done in the client or the server, or both. I’d like to see an interoperable way to define custom timelines (a kind of user-defined timeline algo) that the server maintains. A Mastodon account list timeline is a super simple version of it, but AP could provide something much more powerful (advanced filtering, merging, ranking, …). Ideally, these could be shared and customized further on the client side.

                    mariusor@metalhead.clubundefined Questo utente è esterno a questo forum
                    mariusor@metalhead.clubundefined Questo utente è esterno a questo forum
                    mariusor@metalhead.club
                    scritto su ultima modifica di
                    #69

                    @steve frankly I disagree with this point. Servers should be simple. We need to move away from the paradigm of custom purpose ActivityPub servers that Mastodon pushed where the client and server are the same service.

                    Timelines should be orthogonal to the ActivityPub specification and, in my opinion, kept well away from it.

                    What's the benefit for my client application to know what your server's preferred timeline representation is?

                    Let's not go down the path where everything looks like a nail because we really like hammers.

                    @smallcircles @evan

                    mariusor@metalhead.clubundefined steve@social.technoetic.comundefined 2 Risposte Ultima Risposta
                    0
                    • mariusor@metalhead.clubundefined mariusor@metalhead.club

                      @steve frankly I disagree with this point. Servers should be simple. We need to move away from the paradigm of custom purpose ActivityPub servers that Mastodon pushed where the client and server are the same service.

                      Timelines should be orthogonal to the ActivityPub specification and, in my opinion, kept well away from it.

                      What's the benefit for my client application to know what your server's preferred timeline representation is?

                      Let's not go down the path where everything looks like a nail because we really like hammers.

                      @smallcircles @evan

                      mariusor@metalhead.clubundefined Questo utente è esterno a questo forum
                      mariusor@metalhead.clubundefined Questo utente è esterno a questo forum
                      mariusor@metalhead.club
                      scritto su ultima modifica di
                      #70

                      @steve my reasoning about the ActivityPub client/server model is that the servers form just a just a dumb pipeline to dispatch content from clients to other clients.

                      When servers are just storage, then everything can be much more flexible. Clients can be as expressive as they want and make whichever assumptions about what "good data" looks like, while servers are just dumb pipes that accept and dispatch everything that's a valid JSON-LD document.

                      @smallcircles @evan

                      1 Risposta Ultima Risposta
                      0
                      • mariusor@metalhead.clubundefined mariusor@metalhead.club

                        @steve frankly I disagree with this point. Servers should be simple. We need to move away from the paradigm of custom purpose ActivityPub servers that Mastodon pushed where the client and server are the same service.

                        Timelines should be orthogonal to the ActivityPub specification and, in my opinion, kept well away from it.

                        What's the benefit for my client application to know what your server's preferred timeline representation is?

                        Let's not go down the path where everything looks like a nail because we really like hammers.

                        @smallcircles @evan

                        steve@social.technoetic.comundefined Questo utente è esterno a questo forum
                        steve@social.technoetic.comundefined Questo utente è esterno a questo forum
                        steve@social.technoetic.com
                        scritto su ultima modifica di
                        #71

                        @mariusor @smallcircles @evan I think you read something other than what I wrote. 😀. I’m describing *user-defined* timelines where the heavy lifting is done in a server. That server would be (or could be) *general purpose* and not specific to an activity domain. I definitely wasn’t suggesting a monolithic, tightly-coupled client/server architecture. I want my timeline definitions to be portable and interoperable.

                        mariusor@metalhead.clubundefined evan@cosocial.caundefined 2 Risposte Ultima Risposta
                        0
                        • steve@social.technoetic.comundefined steve@social.technoetic.com

                          @mariusor @smallcircles @evan I think you read something other than what I wrote. 😀. I’m describing *user-defined* timelines where the heavy lifting is done in a server. That server would be (or could be) *general purpose* and not specific to an activity domain. I definitely wasn’t suggesting a monolithic, tightly-coupled client/server architecture. I want my timeline definitions to be portable and interoperable.

                          mariusor@metalhead.clubundefined Questo utente è esterno a questo forum
                          mariusor@metalhead.clubundefined Questo utente è esterno a questo forum
                          mariusor@metalhead.club
                          scritto su ultima modifica di
                          #72

                          @steve apologies, I take "server" in the context of ActivityPub discussion to be an "ActivityPub server", not all the other web-servers involved in the process.

                          And when I say "client", I mean a "consumer of ActivityPub", which as you say, many times is also a web server.

                          @smallcircles @evan

                          smallcircles@social.coopundefined 1 Risposta Ultima Risposta
                          0
                          • mariusor@metalhead.clubundefined mariusor@metalhead.club

                            @steve apologies, I take "server" in the context of ActivityPub discussion to be an "ActivityPub server", not all the other web-servers involved in the process.

                            And when I say "client", I mean a "consumer of ActivityPub", which as you say, many times is also a web server.

                            @smallcircles @evan

                            smallcircles@social.coopundefined Questo utente è esterno a questo forum
                            smallcircles@social.coopundefined Questo utente è esterno a questo forum
                            smallcircles@social.coop
                            scritto su ultima modifica di
                            #73

                            @mariusor @steve @evan

                            > And when I say "client", I mean a "consumer of ActivityPub", which as you say, many times is also a web server.

                            Indeed. Another term that I see people use in different meaning, also when talking about C2S.

                            In one meaning the user device is referred to, that you might need to hole-punch with to have a full AP server, or which depends on a server relay.

                            And the other meaning as role. As in client/server roles, pure conceptual, and which might swap too.

                            steve@social.technoetic.comundefined 1 Risposta Ultima Risposta
                            0
                            • smallcircles@social.coopundefined smallcircles@social.coop

                              @mariusor @steve @evan

                              > And when I say "client", I mean a "consumer of ActivityPub", which as you say, many times is also a web server.

                              Indeed. Another term that I see people use in different meaning, also when talking about C2S.

                              In one meaning the user device is referred to, that you might need to hole-punch with to have a full AP server, or which depends on a server relay.

                              And the other meaning as role. As in client/server roles, pure conceptual, and which might swap too.

                              steve@social.technoetic.comundefined Questo utente è esterno a questo forum
                              steve@social.technoetic.comundefined Questo utente è esterno a questo forum
                              steve@social.technoetic.com
                              scritto su ultima modifica di
                              #74

                              @smallcircles @mariusor @evan C2S is described (too loosely, but…) in the ActivityPub spec. There is a client and server aspect to C2S. A C2S client is software that uses that protocol/API to interact with an ActivityPub C2S-capable server (general or domain-specific). When I refer to an ActivityPub Client, I mean software using C2S rather than consumers of ActivityPub-related data in general.

                              mariusor@metalhead.clubundefined 1 Risposta Ultima Risposta
                              0
                              • steve@social.technoetic.comundefined steve@social.technoetic.com

                                @smallcircles @evan An AS2 Collection cannot be a timeline (in general). It’s not even ordered. An AS2 OrderedCollection (a subtype of Collection) might be ordered by time or not, so it’s also not a timeline (in general). When they are ordered by some time value (unspecified in AP) they are often called “streams” in the spec. The Mastodon content timelines are not the same as AP activity streams although a filtered AP stream can be transformed to a content timeline.

                                evan@cosocial.caundefined Questo utente è esterno a questo forum
                                evan@cosocial.caundefined Questo utente è esterno a questo forum
                                evan@cosocial.ca
                                scritto su ultima modifica di
                                #75

                                @steve @smallcircles The `inbox` and `outbox` are both sequences ordered by time. I think that should meet your requirements for a 'timeline'?

                                I think it's fair to call the outbox the actor's 'feed'? It is a feed of all their activities.

                                evan@cosocial.caundefined 1 Risposta Ultima Risposta
                                0
                                • evan@cosocial.caundefined evan@cosocial.ca

                                  @steve @smallcircles The `inbox` and `outbox` are both sequences ordered by time. I think that should meet your requirements for a 'timeline'?

                                  I think it's fair to call the outbox the actor's 'feed'? It is a feed of all their activities.

                                  evan@cosocial.caundefined Questo utente è esterno a questo forum
                                  evan@cosocial.caundefined Questo utente è esterno a questo forum
                                  evan@cosocial.ca
                                  scritto su ultima modifica di
                                  #76

                                  @steve @smallcircles I also agree that activities are more primary than content objects like notes and images in ActivityPub. That is by design and reflected in the name of the data format, API and federation protocol.

                                  smallcircles@social.coopundefined evan@cosocial.caundefined 2 Risposte Ultima Risposta
                                  0
                                  • evan@cosocial.caundefined evan@cosocial.ca

                                    @steve @smallcircles I also agree that activities are more primary than content objects like notes and images in ActivityPub. That is by design and reflected in the name of the data format, API and federation protocol.

                                    smallcircles@social.coopundefined Questo utente è esterno a questo forum
                                    smallcircles@social.coopundefined Questo utente è esterno a questo forum
                                    smallcircles@social.coop
                                    scritto su ultima modifica di
                                    #77

                                    @evan @steve

                                    > I think it's fair to call the outbox the actor's 'feed'?

                                    The actor's event bus in a pure event based approach. 😃

                                    Does that break AP? Current fediverse?
                                    Can AP be considered an event-driven architecture of sorts (or restrained as such in a solution design)?

                                    I really like the Motivating use cases section of the AS specs, and the primer that sits on the W3C wiki to that. Those might be further formalized so they are applied consistently.

                                    evan@cosocial.caundefined 1 Risposta Ultima Risposta
                                    0
                                    • evan@cosocial.caundefined evan@cosocial.ca

                                      @steve @smallcircles I also agree that activities are more primary than content objects like notes and images in ActivityPub. That is by design and reflected in the name of the data format, API and federation protocol.

                                      evan@cosocial.caundefined Questo utente è esterno a questo forum
                                      evan@cosocial.caundefined Questo utente è esterno a questo forum
                                      evan@cosocial.ca
                                      scritto su ultima modifica di
                                      #78

                                      @steve @smallcircles

                                      That said, I think it would be great to have reverse chronological ordered collections of objects created by the actor.

                                      It would be nice to use `streams` like `endpoints`, as an object, and define properties like `notes`, `images`, `places` and so on off of it.

                                      Unfortunately the loose definition and lack of examples for `streams` makes it hard to use. It's probably better just to define them as top-level properties of the actor.

                                      evan@cosocial.caundefined 1 Risposta Ultima Risposta
                                      0
                                      • steve@social.technoetic.comundefined steve@social.technoetic.com

                                        @smallcircles @mariusor @evan C2S is described (too loosely, but…) in the ActivityPub spec. There is a client and server aspect to C2S. A C2S client is software that uses that protocol/API to interact with an ActivityPub C2S-capable server (general or domain-specific). When I refer to an ActivityPub Client, I mean software using C2S rather than consumers of ActivityPub-related data in general.

                                        mariusor@metalhead.clubundefined Questo utente è esterno a questo forum
                                        mariusor@metalhead.clubundefined Questo utente è esterno a questo forum
                                        mariusor@metalhead.club
                                        scritto su ultima modifica di
                                        #79

                                        @steve out of curiousity why do you make a difference between a consumer of AcitvityPub (assumedly you mean something that fetches ActivityPub using HTTP GET) and a C2S client?

                                        My assumption is that if something fetches ActivityPub objects and is capable of rendering it to another representation for its users, that's a client to server client.

                                        Client to server has two sections: consumer and producer and I think anything that fulfills any of those can be called a C2S client...

                                        @smallcircles @evan

                                        steve@social.technoetic.comundefined 1 Risposta Ultima Risposta
                                        0
                                        • evan@cosocial.caundefined evan@cosocial.ca

                                          @steve @smallcircles

                                          That said, I think it would be great to have reverse chronological ordered collections of objects created by the actor.

                                          It would be nice to use `streams` like `endpoints`, as an object, and define properties like `notes`, `images`, `places` and so on off of it.

                                          Unfortunately the loose definition and lack of examples for `streams` makes it hard to use. It's probably better just to define them as top-level properties of the actor.

                                          evan@cosocial.caundefined Questo utente è esterno a questo forum
                                          evan@cosocial.caundefined Questo utente è esterno a questo forum
                                          evan@cosocial.ca
                                          scritto su ultima modifica di
                                          #80

                                          @steve @smallcircles I also agree that having a separate "home timeline" and "notifications timeline" makes sense. There's an open user story for that:

                                          https://github.com/swicg/activitypub-api/issues/21

                                          smallcircles@social.coopundefined 1 Risposta Ultima Risposta
                                          0

                                          Ciao! Sembra che tu sia interessato a questa conversazione, ma non hai ancora un account.

                                          Stanco di dover scorrere gli stessi post a ogni visita? Quando registri un account, tornerai sempre esattamente dove eri rimasto e potrai scegliere di essere avvisato delle nuove risposte (tramite email o notifica push). Potrai anche salvare segnalibri e votare i post per mostrare il tuo apprezzamento agli altri membri della comunità.

                                          Con il tuo contributo, questo post potrebbe essere ancora migliore 💗

                                          Registrati Accedi
                                          Rispondi
                                          • Risposta alla discussione
                                          Effettua l'accesso per rispondere
                                          • Da Vecchi a Nuovi
                                          • Da Nuovi a Vecchi
                                          • Più Voti


                                          • 1
                                          • 2
                                          • 3
                                          • 4
                                          • 5
                                          • 6
                                          • 7
                                          Feed RSS
                                          I think the #ActivityPub client-to-server API is extremely important and underrated.
                                          @pierobosio@soc.bosio.info
                                          V4.10.1 Contributors
                                          • Accedi

                                          • Accedi o registrati per effettuare la ricerca.
                                          • Primo post
                                            Ultimo post