During testing I noticed the following. I would appreciate if folks who are
interested in this area comment about these observations.

a) If a single broker is defined in the URL, by default FailoverSingleServer
is chosen.
In this case, I believe we should default to no failover unless explicitly
specified.

b) The FailoverSingleServer method retries immediately upon a connection
error.
    A connection error maybe due the broker crashing or due to a temp
network error.
   In either case, IMO there is little value in retrying immediately. It
would be best to retry after a delay.
   Rob pointed out that in the case of a fast dns switch this may come in
handy, but in other cases I believe a configurable timeout would be better.

c) The actual number of retries == the no of retries configured + 1.
Is there a reason for this logic?

Thoughts/comments are greatly appreciated.

Regards,

Rajith Attapattu
Red Hat
http://rajith.2rlabs.com/

Reply via email to