Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
Split out federation transaction sending to a worker #1635
Conversation
erikjohnston
added some commits
Nov 4, 2016
erikjohnston
changed the title from
Erikj/split out fed txn
to
Split out federation transaction sending to a worker
Nov 21, 2016
erikjohnston
added some commits
Nov 21, 2016
erikjohnston
assigned
NegativeMjark
Nov 21, 2016
This was referenced Nov 21, 2016
| + | ||
| + # There should be only one reader, so lets delete everything its | ||
| + # acknowledged its seen. | ||
| + self._clear_queue_before_pos(token) |
NegativeMjark
Nov 21, 2016
Contributor
Might be worth trying to use a separate parameter for controlling the acks. For example there's a script in scripts-dev that tails all replication rows, if you ran it againtst synapse it might inadvertently delete all the federation queues. That could be awkward.
If you used a separate parameter for acknowledging like ack_federation or something and didn't report it in the list of streams then I don't think this would be such a problem.
Although it might be that case that we are better off not exposing the federation in the list of streams.
| + else: | ||
| + self.edus[pos] = edu | ||
| + | ||
| + def send_presence(self, destination, states): |
NegativeMjark
Nov 21, 2016
Contributor
I wonder if we send lots of identical messages to multiple dests. I wonder if it might be possible to reduce the duplication here if that is the case.
erikjohnston
added some commits
Nov 22, 2016
|
@NegativeMjark PTAL |
erikjohnston commentedNov 21, 2016
•
edited
No description provided.