The consumer behavior if use autolink (waypoint yes and no)

Solution Verified - Updated -

Issue

I am using AMQ interconnect autolink, I found that :

  • if I did not set the address as waypoint, looks like the consumers to the router can only receive some messages. The broker in this usage scenario is also like a consumer.
    suppose there are 2 consumers, 1 producer connected to the router,if a producer send 9 messages to the router, then consumer1, consumer2, broker will receive 3 messages, looks like a balance pattern. If now a new consumer3 connects to router, it cannot consume the 3 messages in the broker.
  • But if I set the waypoint to yes, then the consumer1 and consumer2 will receive 5 messages. There is no messages here left in the broker side. I suppose this is expected.

Would you pls explain the behavior for these 2 setting? When autolink is being used, setting the address as waypoint is recommended?

autoLink {
  addr: SampleQueue
  connection: broker
  dir: out
}

autoLink {
  addr: SampleQueue
  connection: broker
  dir: in
}

connector {
    name: broker
    role: route-container
    host: 192.168.1.105
    port: 61616
    saslMechanisms: ANONYMOUS
}

Environment

  • Red Hat AMQ Interconnect 1.6.1

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content