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

feat: batch processing #20

Open
Rushaway opened this issue Jan 17, 2025 · 1 comment
Open

feat: batch processing #20

Rushaway opened this issue Jan 17, 2025 · 1 comment

Comments

@Rushaway
Copy link
Member

Advantages of Batch Processing with Queue for Announcer:

  1. Reduced Saturation: Grouping 4-5 requests at a time prevents overwhelming the database and server during peak player connections.
  2. Optimized Data Fetching: Fetching data for multiple players in batches ensures most of the data is retrieved simultaneously, minimizing potential lag spikes.
  3. Smooth Performance: Queuing avoids executing requests immediately upon connection, spreading the load over time and improving overall stability.
  4. Less native calls in the same time

Implementation Plan:
Introduce a queue system that processes groups of players in intervals or when a batch size (e.g., 4-5) is reached. This balances server load and reduces connection-induced lag.

@Rushaway
Copy link
Member Author

What's your point of view on this @maxime1907 ?

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

No branches or pull requests

1 participant