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.
  • evan@cosocial.caundefined evan@cosocial.ca

    @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 Questo utente è esterno a questo forum
    smallcircles@social.coopundefined Questo utente è esterno a questo forum
    smallcircles@social.coop
    scritto su ultima modifica di
    #81

    @evan @steve

    The way I see it, this has the wrong stakeholder name of "ActivityPub API client developer" i.e. spec implementer, and a Home Feed is something I may want as a "Solution developer" stakeholder. In other words that library or SDK that offers me the Social API should allow me to model that.

    The user story was also brought up by Mastodon, a Microblogging solution built on top of AP (ideally).

    evan@cosocial.caundefined 1 Risposta Ultima Risposta
    0
    • smallcircles@social.coopundefined smallcircles@social.coop

      @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 Questo utente è esterno a questo forum
      evan@cosocial.caundefined Questo utente è esterno a questo forum
      evan@cosocial.ca
      scritto su ultima modifica di
      #82

      @smallcircles @steve I know what an "event bus" is but I don't think it applies here. Usually it means a global data structure that attached processes can add events to and read events from. We don't have that in ActivityPub.

      I think it's fair to say that activities are like events.

      I also like the use cases and primer.

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

        @evan @steve

        The way I see it, this has the wrong stakeholder name of "ActivityPub API client developer" i.e. spec implementer, and a Home Feed is something I may want as a "Solution developer" stakeholder. In other words that library or SDK that offers me the Social API should allow me to model that.

        The user story was also brought up by Mastodon, a Microblogging solution built on top of AP (ideally).

        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
        #83

        @smallcircles @steve please comment on the issue!

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

          @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 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
          #84

          @mariusor @smallcircles @evan C2S has client-side and server-side aspects (different, but overlapping, behavioral requirements, etc.). Both sides consume *and* produce AP data (pull and push for S2S, currently only pull for C2S). Fetching AP data (URI dereferencing) is common to both C2S and S2S.

          mariusor@metalhead.clubundefined thisismissem@hachyderm.ioundefined 2 Risposte Ultima Risposta
          0
          • steve@social.technoetic.comundefined steve@social.technoetic.com

            @mariusor @smallcircles @evan C2S has client-side and server-side aspects (different, but overlapping, behavioral requirements, etc.). Both sides consume *and* produce AP data (pull and push for S2S, currently only pull for C2S). Fetching AP data (URI dereferencing) is common to both C2S and S2S.

            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
            #85

            @steve yes, but something dumb that only fetches a URL and converts the resulting ActivityPub into a valid other type of representation is a valid client in my opinion. That's what I mean, was that unclear?

            @smallcircles @evan

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

              @mariusor @smallcircles @evan C2S has client-side and server-side aspects (different, but overlapping, behavioral requirements, etc.). Both sides consume *and* produce AP data (pull and push for S2S, currently only pull for C2S). Fetching AP data (URI dereferencing) is common to both C2S and S2S.

              thisismissem@hachyderm.ioundefined Questo utente è esterno a questo forum
              thisismissem@hachyderm.ioundefined Questo utente è esterno a questo forum
              thisismissem@hachyderm.io
              scritto su ultima modifica di
              #86

              @steve @mariusor @smallcircles @evan this is a huge thread, but off-cuff comment: C2S will need a "proxy" where you can fetch a remote object **with** identity/authentication

              mariusor@metalhead.clubundefined benpate@mastodon.socialundefined 2 Risposte Ultima Risposta
              0
              • thisismissem@hachyderm.ioundefined thisismissem@hachyderm.io

                @steve @mariusor @smallcircles @evan this is a huge thread, but off-cuff comment: C2S will need a "proxy" where you can fetch a remote object **with** identity/authentication

                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
                #87

                @thisismissem I have just implemented that for the GoActivityPub servers and it's easier than it sounds.

                The only important step required is to convert the client authorization token (presumably an OAuth2 bearer token) to a valid actor and then further to a valid Private Key with which to sign the remote request. After that the only thing remaining is to pipe verbatim the received response to the client...

                @steve @smallcircles @evan

                thisismissem@hachyderm.ioundefined 1 Risposta Ultima Risposta
                0
                • evan@cosocial.caundefined evan@cosocial.ca

                  @smallcircles @steve I know what an "event bus" is but I don't think it applies here. Usually it means a global data structure that attached processes can add events to and read events from. We don't have that in ActivityPub.

                  I think it's fair to say that activities are like events.

                  I also like the use cases and primer.

                  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
                  #88

                  @evan @steve

                  Well, but a part of the specs can certainly be considered a message bus with channels conceptually.

                  Channel is the name that AsyncAPI uses, which maps to domain aggregates and actor streams.

                  But considering things purely event-based is stretching it, and may be better to discern between commands and events.

                  smallcircles@social.coopundefined evan@cosocial.caundefined 2 Risposte Ultima Risposta
                  0
                  • thisismissem@hachyderm.ioundefined thisismissem@hachyderm.io

                    @steve @mariusor @smallcircles @evan this is a huge thread, but off-cuff comment: C2S will need a "proxy" where you can fetch a remote object **with** identity/authentication

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

                    @thisismissem @steve @mariusor @smallcircles @evan

                    Just checking my memory.. this concept exists already, yes?

                    https://www.w3.org/wiki/ActivityPub/Primer/proxyUrl_endpoint

                    Are you just saying that the new API spec should include this? Or am I missing something?

                    evan@cosocial.caundefined thisismissem@hachyderm.ioundefined 2 Risposte Ultima Risposta
                    0
                    • mariusor@metalhead.clubundefined mariusor@metalhead.club

                      @steve yes, but something dumb that only fetches a URL and converts the resulting ActivityPub into a valid other type of representation is a valid client in my opinion. That's what I mean, was that unclear?

                      @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
                      #90

                      @mariusor @smallcircles @evan I *think* it’s
                      clear. I agree it’s a kind of “client”, just not necessarily a C2S client.

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

                        @evan @steve

                        Well, but a part of the specs can certainly be considered a message bus with channels conceptually.

                        Channel is the name that AsyncAPI uses, which maps to domain aggregates and actor streams.

                        But considering things purely event-based is stretching it, and may be better to discern between commands and events.

                        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
                        #91

                        @evan @steve

                        Btw, wrt fediverse we really live in a multiverse by all the different perspectives people have towards what the network should or should not provide. All having different physics.

                        Where ActivityPub is gravity, and fediverse is entropy and chaos, and universes have become inaccessible over time, past stations.

                        evan@cosocial.caundefined 1 Risposta Ultima Risposta
                        0
                        • benpate@mastodon.socialundefined benpate@mastodon.social

                          @thisismissem @steve @mariusor @smallcircles @evan

                          Just checking my memory.. this concept exists already, yes?

                          https://www.w3.org/wiki/ActivityPub/Primer/proxyUrl_endpoint

                          Are you just saying that the new API spec should include this? Or am I missing something?

                          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
                          #92

                          @benpate @thisismissem @steve @mariusor @smallcircles

                          Yes, proxyUrl already exists. There's a use case here:

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

                          The only other way I've seen this use case discussed is with client-side HTTP Signature keys. There's some kind of negotiation between the server and the client, and then the client can make requests to remote servers using HTTP Signature and a key it controls.

                          thisismissem@hachyderm.ioundefined 1 Risposta Ultima Risposta
                          0
                          • steve@social.technoetic.comundefined steve@social.technoetic.com

                            @mariusor @smallcircles @evan I *think* it’s
                            clear. I agree it’s a kind of “client”, just not necessarily a C2S client.

                            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
                            #93

                            @steve OK, but why?

                            I feel like I explained my position relatively clearly, I would like to understand yours, even though I feel some animosity has started to crop up.

                            @smallcircles @evan

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

                              @evan @steve

                              Well, but a part of the specs can certainly be considered a message bus with channels conceptually.

                              Channel is the name that AsyncAPI uses, which maps to domain aggregates and actor streams.

                              But considering things purely event-based is stretching it, and may be better to discern between commands and events.

                              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
                              #94

                              @smallcircles @steve maybe? I guess you could consider the `sharedInbox` to be like that.

                              I think that activities sent to the API by a client are kind of like commands, but they can also be events that happened on a different system.

                              If I got an achievement in a game, and that was sent as an activity to the API, it's more like an event notification than a command.

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

                                @evan @steve

                                Btw, wrt fediverse we really live in a multiverse by all the different perspectives people have towards what the network should or should not provide. All having different physics.

                                Where ActivityPub is gravity, and fediverse is entropy and chaos, and universes have become inaccessible over time, past stations.

                                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
                                #95

                                @smallcircles @steve I understand that people make their own metaphors for how AP works.

                                1 Risposta 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.

                                  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
                                  #96

                                  @steve @mariusor @smallcircles so, a client could send some kind of definition for the timeline ("only Create/Image or Create/Video activities from the inbox where the image is tagged 'caturday'") and then the server sorts data into that timeline? That sounds like a neat feature.

                                  However, I think there might be some definitions that are so common that we could just define them in a spec, like `notifications`.

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

                                    @steve OK, but why?

                                    I feel like I explained my position relatively clearly, I would like to understand yours, even though I feel some animosity has started to crop up.

                                    @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
                                    #97

                                    @mariusor @smallcircles @evan No animosity here. However, I’m not sure how to explain it more clearly. I’m referring to C2S as described in chapter 6 of the ActivityPub specification (and the conformance profiles in Section 2.1). It sounded to me like you’re using a more general definition of “client”, which is fine, just different in significant ways (if it only dereferences and renders AP data).

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

                                      @smallcircles @steve maybe? I guess you could consider the `sharedInbox` to be like that.

                                      I think that activities sent to the API by a client are kind of like commands, but they can also be events that happened on a different system.

                                      If I got an achievement in a game, and that was sent as an activity to the API, it's more like an event notification than a command.

                                      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
                                      #98

                                      @evan @steve

                                      Rather than sharedInbox I was more thinking that by implementing the HTTP API and msg exchanges in a well-prescribed manner, these would effectively model an event bus conceptually. After which you can talk about it as a higher abstraction that exists, and not get lost in the reeds of the impl details anymore.

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

                                        @mariusor @smallcircles @evan No animosity here. However, I’m not sure how to explain it more clearly. I’m referring to C2S as described in chapter 6 of the ActivityPub specification (and the conformance profiles in Section 2.1). It sounded to me like you’re using a more general definition of “client”, which is fine, just different in significant ways (if it only dereferences and renders AP data).

                                        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
                                        #99

                                        @steve @mariusor @evan

                                        He he, language is hard. A case of terminology overload and clashing terms. Domain driven design has the clearly defined bounded context here which is the scope within which terms are valid. Forming a consistency boundary. These context lines are blurred in fediverse talk. 😅

                                        evan@cosocial.caundefined 1 Risposta Ultima Risposta
                                        0
                                        • mariusor@metalhead.clubundefined mariusor@metalhead.club

                                          @thisismissem I have just implemented that for the GoActivityPub servers and it's easier than it sounds.

                                          The only important step required is to convert the client authorization token (presumably an OAuth2 bearer token) to a valid actor and then further to a valid Private Key with which to sign the remote request. After that the only thing remaining is to pipe verbatim the received response to the client...

                                          @steve @smallcircles @evan

                                          thisismissem@hachyderm.ioundefined Questo utente è esterno a questo forum
                                          thisismissem@hachyderm.ioundefined Questo utente è esterno a questo forum
                                          thisismissem@hachyderm.io
                                          scritto su ultima modifica di
                                          #100

                                          @mariusor @steve @smallcircles @evan well, your server *knows* it's access token to user mapping, so then you're just doing authorised fetch as that actor from server side

                                          mariusor@metalhead.clubundefined 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