-
Notifications
You must be signed in to change notification settings - Fork 751
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
Load balancing for long running tasks #946
Comments
Hello, i had similar problem few years ago so i have made it in a different way. serverFront = new RouterSocket(); than i have created something in the middle, between server and worker that i called Broker with: brokerFront = new RouterSocket(); than worker with: Worker when is starting is sending "ready" message to Broker, and Broker is saving its address on ConcurencyQueue. I am sending back and forward serialized DTOs so this part you need to cover by yourself ;) because its specific for my program Parts of Server Code:
}` Parts of Broker code:
} Parts of worker code:
} |
This issue has been automatically marked as stale because it has not had activity for 365 days. It will be closed if no further activity occurs within 56 days. Thank you for your contributions. |
Hello,
on the server I try to distribute message processing among several workers. I use a poller object for this. However, I would expect different behavior. If I do two workers on the server and send, for example, 10 messages, then the pooler will split the messages for the two workers fairly. That is 5 and 5. If, however, the first message processing takes a long time, 4 messages will wait unnecessarily for its completion, even if worker 2 is already free (already process his 5 messages).
How to ensure that messages are delivered only to free workers?
The text was updated successfully, but these errors were encountered: