Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Cyborg)
  • No Skin
Collapse
Brand Logo

CIRCLE WITH A DOT

  1. Home
  2. Uncategorized
  3. ActivityPub specifications don't seem to provide a way to do Idempotent POSTs to your outbox.

ActivityPub specifications don't seem to provide a way to do Idempotent POSTs to your outbox.

Scheduled Pinned Locked Moved Uncategorized
activitypubactivitystreamsfedidev
3 Posts 2 Posters 1 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • reiver@mastodon.socialR This user is from outside of this forum
    reiver@mastodon.socialR This user is from outside of this forum
    reiver@mastodon.social
    wrote last edited by
    #1

    ActivityPub specifications don't seem to provide a way to do Idempotent POSTs to your outbox.

    That seems like a problem for C2S to me.

    Networks are unreliable. You cannot tell the difference between an unreceived request vs an unreceived response. You'll get unwanted identical duplicate activities.

    Although it isn't difficult to solve — a convention just needs to be picked.

    For example, a new Idempotency field could be added to the JSON-LD payload.

    #ActivityPub #ActivityStreams #FediDev

    nik@toot.teckids.orgN 1 Reply Last reply
    0
    • reiver@mastodon.socialR reiver@mastodon.social

      ActivityPub specifications don't seem to provide a way to do Idempotent POSTs to your outbox.

      That seems like a problem for C2S to me.

      Networks are unreliable. You cannot tell the difference between an unreceived request vs an unreceived response. You'll get unwanted identical duplicate activities.

      Although it isn't difficult to solve — a convention just needs to be picked.

      For example, a new Idempotency field could be added to the JSON-LD payload.

      #ActivityPub #ActivityStreams #FediDev

      nik@toot.teckids.orgN This user is from outside of this forum
      nik@toot.teckids.orgN This user is from outside of this forum
      nik@toot.teckids.org
      wrote last edited by
      #2

      @reiver

      Clients are allowed to generate an id themselves (which the server may or may not override). Shouldn't that be enough to de-duplicate?

      reiver@mastodon.socialR 1 Reply Last reply
      0
      • nik@toot.teckids.orgN nik@toot.teckids.org

        @reiver

        Clients are allowed to generate an id themselves (which the server may or may not override). Shouldn't that be enough to de-duplicate?

        reiver@mastodon.socialR This user is from outside of this forum
        reiver@mastodon.socialR This user is from outside of this forum
        reiver@mastodon.social
        wrote last edited by
        #3

        @nik

        1/

        I did consider that the activity ID could be the Idempotency field, but to me that has a lot of cons.

        ...

        1 Reply Last reply
        1
        0
        • R relay@relay.mycrowd.ca shared this topic
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups