Federation: Difference between revisions

From IM Wiki
Jump to navigation Jump to search
Matrix>Ari
No edit summary
Matrix>Ari
mNo edit summary
Line 1: Line 1:
[[Category:API]]
Federation in the Matrix protocol refers to the ability of independent servers (nodes, homeservers, etc.) to communicate with each other. Each server stores the history and state of each room (decentralized conversation unit) in which it participates in (such as when a user from your homeserver joins another homeserver's room), then it shares that information with other servers if required.
Federation in the Matrix protocol refers to the ability of independent servers (nodes, homeservers, etc.) to communicate with each other. Each server stores the history and state of each room (decentralized conversation unit) in which it participates in (such as when a user from your homeserver joins another homeserver's room), then it shares that information with other servers if required.



Revision as of 19:50, 19 January 2024

Federation in the Matrix protocol refers to the ability of independent servers (nodes, homeservers, etc.) to communicate with each other. Each server stores the history and state of each room (decentralized conversation unit) in which it participates in (such as when a user from your homeserver joins another homeserver's room), then it shares that information with other servers if required.

This helps to ensure that servers have all the required data and everyone in any given room has the ability to see the complete chat history, no matter what server they're connected to.

Matrix, being a decentralized protocol, makes use of this wherein even if one node goes offline the conversation can continue by connecting to another server, whereas a centralized system would just fail. Once the node goes back online it'll face backfill to sync the data the server missed out on and update its indexes, then the server is ready for normal federation again.