-
1. Re: Durable Subscriber in Clustered environment
ataylor Oct 17, 2013 7:40 AM (in response to yairogen)servers are clustered, so it doesnt matter where the message goes to initially it will end up at the correct node.
-
2. Re: Durable Subscriber in Clustered environment
yairogen Oct 17, 2013 7:44 AM (in response to ataylor)So basically no matter which node the subscribed is subscribed to, the message will be delivered regardless of the original server node that got the message?
-
3. Re: Durable Subscriber in Clustered environment
ataylor Oct 17, 2013 7:45 AM (in response to yairogen)1 of 1 people found this helpfulyes, subject to the usual message routing semantics
-
4. Re: Durable Subscriber in Clustered environment
yairogen Oct 17, 2013 9:40 AM (in response to ataylor)Excellent. One last issue:
Assuming Producer is round-robined sending messages, how do we make sure the hornet servers are not unevenly loaded from consumer perspective. I.e. assuming I have 10 different durable subscribers on the same topic - is there a way to verify they all subscribed evenly between the nodes?
-
5. Re: Durable Subscriber in Clustered environment
ataylor Oct 17, 2013 9:57 AM (in response to yairogen)thet consumers will be round robinned on a per connection basis, if you are using a connection per consumer than it will be random
-
6. Re: Durable Subscriber in Clustered environment
yairogen Oct 17, 2013 10:11 AM (in response to ataylor)What would be the best practice here?
Currently we are using SpringSingleConenction support. That would mean that in theory different consumers may be loading a single node (as can happen using Random) while the other is idle.
Am I right? Anything we can do to tackle this?
-
7. Re: Durable Subscriber in Clustered environment
ataylor Oct 17, 2013 10:13 AM (in response to yairogen)i have no idea what SpringSingleConenction does under the covers so i cant say, your best bet is to try to reuse the same connection.
-
8. Re: Durable Subscriber in Clustered environment
yairogen Oct 17, 2013 10:28 AM (in response to ataylor)As the name suggests, a given consumer will do exactly that - use a single connection. However, that means that different consumers may hit the same node - no? You say it's random.
-
9. Re: Durable Subscriber in Clustered environment
ataylor Oct 17, 2013 10:50 AM (in response to yairogen)im saying that when you create a new connection with a connection factory for the first time the node it connects to will be random in a clustered topology where discovery is used. Its slightly less so with static connectors as it usually connects to the first node in the list.