Spacc BBS Spacc BBS
    • Categorie
    • Recenti
    • Tag
    • Popolare
    • Mondo
    • Utenti
    • Gruppi
    • Registrati
    • Accedi
    La nuova BBS è in fase Alpha. I post precedenti al 22 luglio 2024 potrebbero non essere trasferibili, ma rimarranno disponibili per la lettura su /old/.

    Fun with Federation: Lemmy edition

    Pianificato Fissato Bloccato Spostato Uncategorized
    nodebblemmyactivitypub
    5 Post 3 Autori 10 Visualizzazioni
    Caricamento altri post
    • Da Vecchi a Nuovi
    • Da Nuovi a Vecchi
    • Più Voti
    Rispondi
    • Topic risposta
    Effettua l'accesso per rispondere
    Questa discussione è stata eliminata. Solo gli utenti con diritti di gestione possono vederla.
    • julian@community.nodebb.orgJ Questo utente è esterno a questo forum
      julian@community.nodebb.org
      ultima modifica di

      It all started with a report about federation breaking between Lemmy and NodeBB. I was subconsciously aware that something was going on, but had chalked it up to network issues.

      Observed behaviour showed that some remote categories would be receiving content in spurts, with long gaps in between.

      I spent the next 3-4 days looking into it, but came up empty. Whatever was happening wasn't throwing any obvious errors, and along the way, I found what I thought was related (it was), but I wasn't sure why: against some Lemmy servers, the "follow"/"unfollow" mechanic would simply stop working, and this would often coincide with gaps in content. In some egregious cases, the flow of content stopped completely!

      Unable to make headway, I had to reach out to the folks at Lemmy to figure out what the issue was. NodeBB occasionally sends non-200 level responses depending on the activity. Specifically, the following scenarios:

      • A remote user upvoting more than 20 posts in a single day (a spam prevention tactic) causing NodeBB to throw an error, which was caught and returned an HTTP 500 Internal Server Error.
      • A Dislike activity, which is not currently handled by NodeBB. In these cases, NodeBB would send an HTTP 501 Not Implemented

      When encountering either of these responses, Lemmy would return the activity back to the queue for later delivery and mark a delivery failure. If enough of these (~40) happened within 24 hours, Lemmy would give the instance a time-out and pause delivery completely.

      That was it — a quick pair of code updates later, and we started working through Lemmy's backlog of 4.1M activities.

      As of 4am this morning, community.nodebb.org is no longer behind lemmy.world.

      d2b3dc1c-01f3-4203-b281-2406e949667d-image.png

      Fun week. Let's not do that again LOL.

      1 Risposta Ultima Risposta Rispondi Cita 0
      • kichae@wanderingadventure.partyK Questo utente è esterno a questo forum
        kichae@wanderingadventure.party
        ultima modifica di

        These little inter-platform quirks are fascinating, and I imagine quite frustrating.

        julian@community.nodebb.orgJ 1 Risposta Ultima Risposta Rispondi Cita 0
        • sabrew4k3@lazysoci.alS Questo utente è esterno a questo forum
          sabrew4k3@lazysoci.al
          ultima modifica di

          This is really cool. Thanks for sharing.

          1 Risposta Ultima Risposta Rispondi Cita 0
          • julian@community.nodebb.orgJ Questo utente è esterno a questo forum
            julian@community.nodebb.org @kichae@wanderingadventure.party
            ultima modifica di

            kichae@wanderingadventure.party I'm still at the point where seeing two-way federation working for real between instances is so exciting that it overrides the pain of federation 😅

            1 Risposta Ultima Risposta Rispondi Cita 0
            • julian@community.nodebb.orgJ Questo utente è esterno a questo forum
              julian@community.nodebb.org
              ultima modifica di

              nutomic@lemmy.ml let me know if I got any of the details wrong. Much thanks to your team for the assist in debugging!

              1 Risposta Ultima Risposta Rispondi Cita 0
              • Primo post
                Ultimo post