I’ve been thinking of self hosting a mastodon (gotosocial, more specifically) + a matrix server on an old computer I have, but sometimes I might need to turn it off for 2 days or more (not to mention some energy or internet outages that might happen here)

I suppose with the mastodon part the server will properly sync and download whatever’s been missing, but I’m not entirely sure that’ll be the case with matrix. If anyone sent me a DM on there while my server was down, would it get through after it was back up?

  • Chewy@discuss.tchncs.de
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    3 days ago

    Matrix won’t necessarily download all state/messages automatically, but if your client requests a non-available message your matrix server will query other matrix servers for it (backfilling).

    E.g. if you scroll up to older messages, it might take a a few seconds but your client should eventually show them.

    Matrix server use a back-off for servers sending messages, so if your server is offline for many hours, it might take a day for your servers to get messages pushed to by other servers again.

  • F04118F@feddit.nl
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    3 days ago

    Took a look at the specification, this is what I found:

    For federated servers performing delivery to a third party server, delivery SHOULD be performed asynchronously, and SHOULD additionally retry delivery to recipients if it fails due to network error.

    So they should retry. Note that should is not the same as must. So there is no obligation. There is no timeline in the spec about for how long or how often retries should be done. The wording says network error.

    My interpretation: the spec leaves a lot of room for implementations to differ. Network problems don’t normally last for days though. I’d guess that if your server is down for 5 minutes, you’ll still receive most or everything you’d normally receive. I wouldn’t trust on that if your server is offline for more than a day.

  • roofuskit@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    3 days ago

    No. There’s nothing for people to connect to when it’s shutdown. And requests or submissions would just get bounced back by the server not existing.