element-hq / synapse

Synapse: Matrix homeserver written in Python/Twisted.
https://element-hq.github.io/synapse
GNU Affero General Public License v3.0
963 stars 109 forks source link

Reduce device lists replication traffic. #17333

Closed erikjohnston closed 1 week ago

erikjohnston commented 1 week ago

Reduce the replication traffic of device lists, by not sending every destination that needs to be sent the device list update over replication. Instead a "hosts to send to have been calculated" notification over replication, and then federation senders read the destinations from the DB.

For non federation senders this should heavily reduce the impact of a user in many large rooms changing a device.