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

Update configuration for Discord integration #1731

Merged
merged 1 commit into from
Oct 19, 2023

Conversation

garrrikkotua
Copy link
Contributor

@garrrikkotua garrrikkotua commented Oct 19, 2023

Changes proposed ✍️

What

🤖 Generated by Copilot at 90187df

Increased the parameters and constants related to the Discord API requests and reduced the frequency of fetching the Discord data. These changes improve the performance and reliability of the Discord integration.

🤖 Generated by Copilot at 90187df

To make the Discord integration faster
We tweaked some parameters and factors
We increased perPage
And DISCORD_RATE_LIMIT's gauge
And reduced the checkEvery factor

Why

How

🤖 Generated by Copilot at 90187df

  • Increase the Discord API rate limit and the time window to avoid errors and improve performance (DISCORD_RATE_LIMIT, DISCORD_RATE_LIMIT_TIME, link)
  • Reduce the frequency of fetching the Discord members and channels data to optimize resource usage (checkEvery, link)
  • Increase the number of members and channels data per request to reduce pagination overhead (perPage, link, link)

Checklist ✅

  • Label appropriately with Feature, Improvement, or Bug.
  • Add screenshots to the PR description for relevant FE changes
  • New backend functionality has been unit-tested.
  • API documentation has been updated (if necessary) (see docs on API documentation).
  • Quality standards are met.

@garrrikkotua garrrikkotua merged commit b5c6d24 into main Oct 19, 2023
6 checks passed
@garrrikkotua garrrikkotua deleted the improve/adjust-discord branch October 19, 2023 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant