mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-29 07:28:55 +03:00
dd71eb0f8a
Currently federation catchup will send the last *local* event that we failed to send to the remote. This can cause issues for large rooms where lots of servers have sent events while the remote server was down, as when it comes back up again it'll be flooded with events from various points in the DAG. Instead, let's make it so that all the servers send the most recent events, even if its not theirs. The remote should deduplicate the events, so there shouldn't be much overhead in doing this. Alternatively, the servers could only send local events if they were also extremities and hope that the other server will send the event over, but that is a bit risky.
1 line
164 B
Text
1 line
164 B
Text
Improve performance of federation catch up by sending events the latest events in the room to the remote, rather than just the last event sent by the local server.
|