PDA

Click to See Complete Forum and Search --> : Distributing load


xanthar
Nov 16th, 2004, 12:43 PM
Is there any way to distribute load over multiple computers using vb.net or 6, easily?

appdalesolution
Dec 9th, 2004, 06:12 AM
You can only really do this with 2000 Advanced server and 2000 Datacentre i believe.

You need to install your component into a COM+ application and configure your load balancing through the Component Services MMC. This is by far the easiest way but assumes you know how to write components for use in COM+.

here is a good article explaining how to use it CLICK HERE (http://www.ftponline.com/archives/premier/mgznarch/vbpj/1999/ent99/baen99/baen99.asp)

There is another way to call objects on different servers and that done through the CreateObject function. By supplying a server name as the second argument iin the function it will call the component on that server. This assumes you have identicle components on each server.

e.g.

Dim MyObj as Object

Set MyObj = CreateObject("MyClass.MyObject", "SERVERNAME")

This of course is not true load balancing as you have to work out what server to call yourself.

Dave Sell
Dec 9th, 2004, 01:32 PM
Fantastic article. I esp. liked this statement:


If the infrastructure could handle the ability to introduce load balancing into the activation process of the COM object, the programming model wouldn't need to change at all.