Datasnap.Win.ObjBrkr.TSimpleObjectBroker.LoadBalanced

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property LoadBalanced: Boolean read FLoadBalanced write FLoadBalanced default False;

C++

__property bool LoadBalanced = {read=FLoadBalanced, write=FLoadBalanced, default=0};

Properties

Type Visibility Source Unit Parent
property published
Datasnap.Win.ObjBrkr.pas
Datasnap.Win.ObjBrkr.hpp
Datasnap.Win.ObjBrkr TSimpleObjectBroker

Description

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

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.

See Also