Print Page | Close Window

Load Balancing BOS

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2010
Forum Discription: For .NET 4.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=2557
Printed Date: 19-Oct-2025 at 9:43am


Topic: Load Balancing BOS
Posted By: hijaggu
Subject: Load Balancing BOS
Date Posted: 14-Mar-2011 at 11:36am
How do I load balance Business Object Server ?  




Replies:
Posted By: DenisK
Date Posted: 14-Mar-2011 at 12:33pm
Hi hijaggu;

Load balancing is actually a broad topic and can be achieved in several ways. See if this link can help you get started.

http://msdn.microsoft.com/en-us/library/ms730128.aspx - http://msdn.microsoft.com/en-us/library/ms730128.aspx


Posted By: hijaggu
Date Posted: 14-Mar-2011 at 3:48pm
 
 Thanks for your prompt reply Denis. Let me explain my requirement in detail. Currently we are configuring objectServer details in client side config file and Ideablade reads it from there to connect to BOS.

    Instead of that I want client app to call custom implemented WCF service which can return objectServer details based on certain parameters supplied by client app in order to connect to specific BOS.

          This can be useful to route the clients to different servers based on say their geographical location. We don’t want to hard code objectServer details in client app config file.



Posted By: DenisK
Date Posted: 15-Mar-2011 at 5:30pm
It sounds like you want to programatically change the objectServer element inside the app.config. This can be achieved by using the IdeaBladeConfig.Instance. You can look at the API for more info, but here's a small snippet showing how it works.

      var ideaBladeConfig = IdeaBladeConfig.Instance;
      var objectServer = ideaBladeConfig.ObjectServer;
      ideaBladeConfig.ObjectServer.ClientSettings.IsDistributed = true;
      if (ideaBladeConfig.ObjectServer.ServerPort != 9009) {
        ideaBladeConfig.ObjectServer.ServerPort = 9009;
      }
      if (ideaBladeConfig.ObjectServer.RemoteBaseUrl != "http://localhost") {
        ideaBladeConfig.ObjectServer.RemoteBaseUrl = "http://localhost";
      }
      if (ideaBladeConfig.ObjectServer.ServiceName != "EntityService.svc") {
        ideaBladeConfig.ObjectServer.ServiceName = "EntityService.svc";
      }



Print Page | Close Window