Skip to content

Understanding queues and nodes #22

Closed Answered by shikokuchuo
wlandau asked this question in Q&A
Discussion options

You must be logged in to vote

Let me answer (3) first – if you don’t need an active queue, don’t use it. The underlying NNG logic and implementation is very robust and I have recommended throughout the documentation that if this is suitable then it should be used.

The problem we have is that when we send the tasks we have no way of knowing the task length a priori. In your example, the tasks are still roughly the same length so the solution is more or less acceptable.

Let me give you an extreme counter-example: odd number tasks length 1, even number tasks length 10. As NNG round-robins*, the odd number tasks are all sent to server 1, and the even ones to server 2. Server 1 will be idle after 3 seconds, However the tot…

Replies: 3 comments 25 replies

Comment options

You must be logged in to vote
1 reply
@wlandau
Comment options

Answer selected by shikokuchuo
Comment options

You must be logged in to vote
2 replies
@wlandau
Comment options

@shikokuchuo
Comment options

Comment options

You must be logged in to vote
22 replies
@HenrikBengtsson
Comment options

@shikokuchuo
Comment options

@HenrikBengtsson
Comment options

@shikokuchuo
Comment options

@shikokuchuo
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants