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

fix(core): reduce spam using a threshold system #138

Merged
merged 1 commit into from
Sep 3, 2024
Merged

Conversation

ayuhito
Copy link
Member

@ayuhito ayuhito commented Sep 3, 2024

This introduces a new bot threshold counter where if there are two "Unknown" request elements, we'll drop it as a bot request. This seemed to be the case with most bot requests with our current real world data.

This also slightly reduces memory allocations and usage by using a single map for timezone --> country instead of the previous timezone --> country code --> country since we previously relied on the codes for compression.

@ayuhito ayuhito changed the title fix(core): reduce spam through using a threshold system fix(core): reduce spam using a threshold system Sep 3, 2024
@ayuhito ayuhito merged commit b0be574 into main Sep 3, 2024
2 checks passed
@ayuhito ayuhito deleted the chore/update-deps branch September 3, 2024 18:58
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.

1 participant