Questions about networks of brokers

0

I'm trying to figure out if using a network of brokers will solve some of the problems I'm having with single-instance and active-standby brokers.
With a network of brokers,

  • can a client use one URL to connect to the network of brokers, or would the client need to potentially try separate URLs for each broker in the network?
  • Amazon has started making noise about instituting a limit on the number of connections a given broker can have open at a given time - does that limit go up if that broker is part of a network?
  • if using a network of single-instance brokers, would an automatic failover work the same way as it does for active-standby pairs?
已提問 5 年前檢視次數 257 次
2 個答案
0

Thanks for your questions.

Q: With a network of brokers, can a client use one URL to connect to the network of brokers, or would the client need to potentially try separate URLs for each broker in the network?

A: The client can either use a connection string with multiple endpoints, or if updateClusterClients is set to true, clients can be configured to connect to a single broker in a network of brokers. See https://docs.aws.amazon.com/amazon-mq/latest/developer-guide/network-of-brokers.html for more details.

Q: Amazon has started making noise about instituting a limit on the number of connections a given broker can have open at a given time - does that limit go up if that broker is part of a network?

A: I believe you are referring to the 100 connection limit on t2.micro brokers. The limit is per broker per protocol, so if you have 2 brokers in a network, you have a total of 200 connections per protocol.

Q: if using a network of single-instance brokers, would an automatic failover work the same way as it does for active-standby pairs?

A: Not exactly. The client will reconnect to another active node in the network, so it is more of an active-active model. In the background Amazon MQ will replace the failed node but this may take several minutes, as opposed to active-standby where the node is replaced within ~10-90 sec.

Hope this helps.

AWS
已回答 5 年前
0

Thanks Trevor, you rock. Very helpful answers.

已回答 5 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南