On 07/28/2016 10:17 AM, Adel Boutros wrote:
Hello,

Out of curiosity, Can I send/receive messages with a queue defined directly on 
the dispatch router or do I need to have a real instance of a broker connected 
to that dispatcher?

Like Paolo said, you only need a broker if you want to store the message in a queue.

You can use the router(s) to communicate directly by having the senders and receivers use the same address. In this case, the exchange of messages (acknowledgement, settlement, etc.) are routed directly between the senders and the receivers.

To do this, you don't need a route-container connection and you don't need auto-links or link-routes. You only need to configure the address prefix to control whether the deliveries are multicast (all receivers for the address) or anycast (one receiver for the address). Addresses that don't match any configured prefix default to balanced-anycast.

You can use a hybrid approach as well, with some addresses defined as "waypoint" with autolinks and other addresses that are not "waypoint" that are used for direct producer-to-consumer communication.


I am asking because it seems that the dispatch router has by default some "Addresses" 
used for internal communication and I was wondering if I could create an "address" of a 
type queue and use it directly without adding connectors.

Router Addresses
  class   addr                   phs  distrib  in-proc  local  remote  cntnr  
in  out  thru  to-proc  from-proc
  
===============================================================================================================
  local   $_management_internal       closest  1        0      0       0      0 
  0    0     0        0
  local   $displayname                closest  1        0      0       0      0 
  0    0     0        0
  mobile  $management            0    closest  1        0      0       0      3 
  0    0     3        0
  local   $management                 closest  1        0      0       0      0 
  0    0     0        0
  local   temp.9yqNIIHanFkSZbe        closest  0        1      0       0      0 
  0    0     0        0


Regards,
Adel
                                        


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to