Jul 30, 2020
Posted by Ken

If more than one serverURIs property is specified, only one will get used as the source. If it fails, another one from the list will get used.

For example, assume that you start two AMQP brokers (listening on two different ports). They are just two brokers started in parallel. They do not know about each other.

Also assume that in VANTIQ only one source is defined, with two server URIs – let’s call them Uri1 and Uri2. When the source is activated, the first working URI (e.g., Uri1) of the two is selected (automatically by the VANTIQ server – i.e., the AMQP source runtime). The second URI (Uri2) is ignored, because it is not needed, and is therefore unused as long as Uri1 is UP. If Uri1 was down, Uri2 would have been selected.

The one that is selected will start receiving the events. If Uri1 goes offline for some reason then the source will go offline for a split second and get re-activated using the second working source – Uri2.

The source will keep using Uri2 as long as it stays UP (no reason to try to go back to Uri1). If Uri2 goes down and Uri1 is UP, Uri1 will get used again. If both are DOWN, the source will be DOWN.

VANTIQ only needs one address for the source to be UP and working. If more than one serverURIs is provided, VANTIQ will try using any others provided if the one currently being used fails. VANTIQ does not try to load-balance or do any load distribution from the VANTIQ server based on the set of Uris that it has. It will use only one.

Also, if more than one topic is specified, the source listens on all topics, while only one of the URIs gets selected (one that works).

© Vantiq 2024 All rights reserved  •  Vantiq Corporation’s Privacy Policy and Cookie Policy