Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Send device messages over federation #1074

Merged
merged 11 commits into from
Sep 8, 2016

Conversation

NegativeMjark
Copy link
Contributor

@NegativeMjark NegativeMjark commented Sep 6, 2016

TODO:

  • Delete messages if too many pile up the federation outbox.
  • Delete entries from the federation inbox when we think that the remote server won't try to send us that message again.

Mark Haines added 4 commits September 6, 2016 11:26
Returns:
Deferred ([dict], int): List of messages for the device and where
in the stream the messages got to.
"""
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This probably wants to be behind a stream change cache to avoid hitting the DB for every TXN we want to send.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. We send a lot of transactions, so this needs to be optimised.

Copy link
Contributor Author

@NegativeMjark NegativeMjark Sep 7, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done 31a07d2 and cb98ac2

@NegativeMjark
Copy link
Contributor Author

@erikjohnston This PR might have become non-awful enough to actually land PTAL.

@erikjohnston
Copy link
Member

LGTM

@NegativeMjark NegativeMjark merged commit 2117c40 into develop Sep 8, 2016
@richvdh richvdh deleted the markjh/direct_to_device_federation branch December 1, 2016 14:09
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants