Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle high-frequency editing/logs #48

Open
Dinoguy1000 opened this issue Jun 4, 2023 · 0 comments
Open

Handle high-frequency editing/logs #48

Dinoguy1000 opened this issue Jun 4, 2023 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@Dinoguy1000
Copy link
Contributor

Discord rate-limits individual channels to 5 messages a second (though the documentation says to use API headers instead of hard-coding assumptions about rate limits); when a wiki is experiencing action rates greater than this (e.g. if $wgDiscordNoBots is set to false, and a few bots are running simultaneously (or one really high-rate bot is running)), messages will fail to send. Possible solutions are to retry sending on receiving an error (reasonable for sudden transient spikes) or collecting multiple actions into a single message (would be required for longer durations of high-frequency actions). Dropping messages should probably be avoided unless explicitly opted-in (maybe accompanied by dropping an extra message to be able to send a "X messages dropped, see recent changes on-wiki" notification).

@jayktaylor jayktaylor added enhancement New feature or request help wanted Extra attention is needed labels Jun 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants