Deal with response rate limiting #49
Labels
No Label
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: projectmoon/tenebrous-dicebot#49
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
If a response messages from the bot is rate-limited, the message will simply be dropped and the user will never get a response. An error is logged, but this is all. The solution is some kind of queue of unsent messages with exponential backoff. Sled's event watcher is a good candidate for this, as it allows us to store any unsent messages.
Possible solution:
With this solution we may under rare circumstances get responses sent twice on a bot restart, but it's better than losing the messages. We can work on not duplicating message sends after basic rate limit handling.
The SDK now has built-in support for handling server rate limiting. So this original issue isn't much of a problem anymore.