On 17/04/2019 8:50 am, VERMEULEN Olivier wrote:
I have a question regarding the use of multicast with the dispatch-router.
I have 2 dispatch-routers and 1 broker with a topic/queue configuration.
All my addresses are configured as waypoints and the ones for the queue are 
also configured as multicast.
When I put 2 listeners on the queue, 1 connected to each dispatch-router, only 
one of them is receiving the message...
Is this supposed to be a supported use case? Am I missing something in the 
configuration?

I tried this out with the attached config files and a broker on 7777 and it worked as expected. Two receivers, one on each router, both saw all the sent messages.

In this case there is only one broker and it is connected to by only one of the routers. I did try with each router connecting to the broker also, and that works as well. However, as expected, since the address is multicast in both phases, the messages are duplicated (each message is sent down both links to the broker).
router {
    mode: interior
    id: routerA
}

listener {
    host: 0.0.0.0
    port: amqp
    authenticatePeer: no
    saslMechanisms: ANONYMOUS
    initialHandshakeTimeoutSeconds: 2
}

listener {
    host: 0.0.0.0
    port: 55672
    role: inter-router
    authenticatePeer: no
    saslMechanisms: ANONYMOUS
}

address {
    prefix: examples
    waypoint: true
    distribution: multicast
}

autoLink {
    addr: examples
    direction: in
}

autoLink {
    addr: examples
    direction: out
}
router {
    mode: interior
    id: routerB
}

listener {
    host: 0.0.0.0
    port: 5673
    authenticatePeer: no
    saslMechanisms: ANONYMOUS
    initialHandshakeTimeoutSeconds: 2
}

connector {
    host: 0.0.0.0
    port: 55672
    role: inter-router
}


connector {
    name: broker
    host: 0.0.0.0
    port: 7777
    role: route-container
}

address {
    prefix: examples
    waypoint: true
    distribution: multicast
}

autoLink {
    addr: examples
    connection: broker
    direction: in
}

autoLink {
    addr: examples
    connection: broker
    direction: out
}

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

Reply via email to