Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

In a system where one client sends a message to one specific peer out of thousands, is it appropriate to use a single queue and have the peers find their messages using selectors?

0
10 Posted

In a system where one client sends a message to one specific peer out of thousands, is it appropriate to use a single queue and have the peers find their messages using selectors?

0
10

Location: http://www.jguru.com/faq/view.jsp?EID=86702 Created: Jun 26, 2000 Modified: 2000-06-26 06:51:20.237 Author: Andreas Mueller (http://www.jguru.com/guru/viewbio.jsp?EID=23179) Question originally posed by Henrik Hermansson (http://www.jguru.com/guru/viewbio.jsp?EID=44407 This is one possibility, but very slow, I think. Every message has to pass every receiver to check if the specific message selector does match. Also, not every vendor supports multiple receivers on a single queue. I would suggest, use publish/subscribe and map your selection criteria to topics or, if your vendor supports this, to topic hierarchies. But your sender client has to perform some pre-selection to publish to the right topic.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123