Catching up messages after hub + link-bot downtime #11

Open
opened 2018-06-24 02:25:52 +00:00 by mappu04 · 0 comments
Owner

If the hub and link-bot goes down for whatever reason, when they come back up, the linkbot will (A) reconnect to the hub, and (B) suddenly receive all TG messages at once.

This means that

  • there is a race condition, if the hub connection has not completed before the link bot wants to post something to it; leading to Couldn't sync message '...' because: Not connected error messages posted back in TG; and
  • if there were more than ~5 posts by a single user, they would hit a hub-side rate limit (same as #6).
If the hub and link-bot goes down for whatever reason, when they come back up, the linkbot will (A) reconnect to the hub, and (B) suddenly receive all TG messages at once. This means that - there is a race condition, if the hub connection has not completed before the link bot wants to post something to it; leading to `Couldn't sync message '...' because: Not connected` error messages posted back in TG; and - if there were more than ~5 posts by a single user, they would hit a hub-side rate limit (same as #6).
Sign in to join this conversation.
No Label
bug
wishlist
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: code.ivysaur.me/nmdc-telegramfrontend#11
No description provided.