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

Support request priority queuing #1

Open
GregHib opened this issue Jan 19, 2021 · 0 comments
Open

Support request priority queuing #1

GregHib opened this issue Jan 19, 2021 · 0 comments
Labels
question Further information is requested

Comments

@GregHib
Copy link
Owner

GregHib commented Jan 19, 2021

Currently all requests are served in the order they are received. Currently if the server is under heavy load and the client has sent prefetch requests in the login screen, when the player logs in the client will have to wait until the prefetch requests are fulfilled before it receives the priority request files.

How imporant is this feature?

What is the maximum amount of files a client can request in a set timeframe? Will that amount ever exceed the server's throughput even if it's at 125% capacity? (2.5k connections)

Solution

Read X amount of requests per client and serve the priority requests first

Side-effects

Request limits, back-pressure and load balancing will have to be handled more manually rather than leaving it to suspending io and coroutines.

@GregHib GregHib added the question Further information is requested label Jan 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant