RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TSimpleObjectBroker.LoadBalanced Property

Specifies how the simple object broker picks a server from its list.

Pascal
property LoadBalanced: Boolean;
C++
__property Boolean LoadBalanced;

Set LoadBalanced to true to indicate that the simple object broker should supply computer names randomly from the available servers listed in the Servers property. When LoadBalanced is false, GetComputerForGUID and GetComputerForProgID always return the first available server. 

If the simple object broker is used by multiple connection components in the client application, it is preferable to set LoadBalanced to true in order to distribute the work among available servers. 

When there is only a single connection component, there is no need to randomize the selection of servers, because only one connection will be used at a time. However, when deploying client applications, you may want to reorder the Servers list in the simple object broker for each client, so that different clients give preference to different servers. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!