.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Load balancing using web service

Posted By:      Posted Date: September 18, 2010    Points: 0   Category :ASP.Net
Hi Friends                 Presently we are developing a windows product using dot net, combined with sas (another language). If sas not get installed in local machines then we are in need of using server machine which has sas with it, we are using socket programming to communicate with server machine, Problem is when more number of requests comes to the server for processing sas it is becoming slow, so we need  Load balancing If we go with web service which is having same domain name but different ip address mapped using Domain Name System (DNS) We will get work done faster     What i want is will this work fine, what else i have to done for achieving this, how can i test itWaitingBalaji Manoharan  

View Complete Post

More Related Resource Links

WCF Service configuration in Web Farm and Load Balancing envrionment.


I want to configure ASP.NET Website Project using WCF Service[NetTcp] (both in c#) for web-farm (for website) and NLB Load balancing (for service). I would like to configure following options for same.

NetTcpBinding.maxConcurrentCalls, NetTcpBinding.ListenBacklog and NetTcpBinding.MaxConnections

Note: During single machine configuration when I changed value of NetTcpBinding.ListenBacklog and NetTcpBinding.MaxConnections in WCF Service project to more that 10, which is default value. I got exception. When I changed this value in Website it was working fine. Due to this I had to keep in default configuration. Not sure why this is the case. If anyone could explain this it would be helpful.

Following reference gives idea how to configure in given environment but does not tell how to go about it.

Ref: http://msdn.microsoft.com/en-us/library/ee377061%28BTS.10%29.aspx

Let me simplify a bit. Lets say I have following configuration.

  • 2 IIS servers in Web Farm.
  • 3 WCF Service Servers (NetTcp) in NLB
  • Default config. for single instance.
    • NetTcpBinding.ListenBacklog: 10
    • NetTcpBinding.MaxConnections: 10
    • NetTcpBinding.maxConcurrentCalls: 16

Workflow Service failing on high load

Hi, I am load testing my workflow service to ensure that it can sustain high loads for a high volume transaction application. I am using Visual Studio's Load Test to run on a simple unit test to call the workflow service. I have configured the bindings on my service as follows:  <bindings>      <netTcpBinding>        <binding portSharingEnabled="true" closeTimeout="00:10:00"                 openTimeout="00:10:00" receiveTimeout="00:10:00" sendTimeout="00:10:00"                 maxBufferPoolSize="20480000" maxBufferSize="20480000" maxConnections="10"                  maxReceivedMessageSize="20480000"  >                    <security mode="None" />        </binding>      </netTcpBinding>  &n

Load balancing and Custom Filters in WCF 4.0 Routing Services

Hi, Couild someone please guide me to various ways of achieving load balancing using Router Service. i tried seeing few Blogs and tried to understand the round robin concept and the custom filters conceptr. but i m not able to see any specific site which would guide me on various examples of custom filters .And round robin seems a bit complex. http://blogs.msdn.com/b/routingrules/archive/2010/04/14/load-balancing-at-the-routing-service.aspx The above link gave me some insight  . is there any othe way of achieving load balancing other than Round robin. I did go through the samples of Routing services in WCf training Kit Thanks

Load Balancing/Load Sharing features in SQL Server 2005/2008

Is there any load balancing features in SQL Server? My understanding is that SQL Server Clustering is not a load balancing feature.  Other features seem to be more like load sharing features: Degrees of Parallelism Table Partitioning Resource Governor seems to be more like a resource allocation feature.          

WCF Router service - How to implement Load Balance



Do you know if is possible to implement a Load Balance using this WCF Router Service ?

I know that WCF Router Service has routing and backuplist feature. 

By the way, how does WCF Routr Service deal with services that have Callback Contract ?


Luis Filipe (from Brazil: Sorry about the English!)

Is network load balancing improved for TCP remoting in .Net 2.0 ?


The MSDN TV broadcast for improvements in .Net remoting 2.0 says that the Socket Cache for TCP has been improved to allow for better load balancing.

I cant find any other information about this.

Does this mean that Network Load Balancing is now viable for .Net Remoting 2.0 using the TCP channel ? ( some previous posts say that NLB does not work ideally with older .Net remoting TCP connections )


Asynchronously Load LINQ Queries/Repeaters in Sections with Web Service



I'm trying to  figure out the best way to load my main page faster.  What I'd like to do is have the bare bones of the master page display right away and on the Default.aspx Page_Load, call some web services that would query the rest of the items, in chunks, and then display.  I have 3 or 4 queries, which would be the chunks I am talking about. 

How would I accomplish this?  I tried putting Update Panels around the repeaters, but that didn't make the page show any faster, and the page still only displayed once all the data was queried.

I found this article, http://msdn.microsoft.com/en-us/library/2e08f6yc.aspx.  Could I call a web service and return a Linq Query and populate a Repeater on Default.aspx?  Would I need an Update Panel around the Repeater still?

I also found this article, which was very interesting in that it parsed and returned the actual HTML to plug into the page, http://encosia.com/2008/02/05/boost-aspnet-performance-with-deferred-content-loading/

I've been reading both of these for a while to try to understand which may be the best method to proceed with.  I'd really appreciate any a

What are Best practice for setting up databases in a distributed load balancing environment



What is the best practice out of the following in a distributed load balancing environment:

keep application database and persistent/tracking database seperate

Keep application , persistence , tracking data all in one database.



SharePoint 2007 feature deployment in a load balancing environment


I'm looking for information to know how to deploy a Sharepoint 2007 solution (via WSP) in a load balancing environment.  Is it possible to isolate one server at a time.

Daniel Siconnelli There is neither good nor evil... only mogwais and gremlins

Load Balancing WSS WFEs (2007)

I have a CentralAdminServer which hosts an application, which users use and can navigate to at http://server/site.  I added an application server to the farm to support the application; users cannot browse to this because it is purely an application server.  I want to add a WFE on http://server2 so that users can browse to the application as http://server2/site.  Instead of using AAM, I want to use a load balancer.

If I add a WFE to this configuration (as stated previously), can I simply add http://server/site and http://server2/site to the load balancer?  And then add the Load Balanced URL to the application settings in central admin?

I shouldnt have to set AAM, right?  The load balancer will determine where the requests go and then the application will determine which app server to use, correct?


Load balancing on SQL 2005 Standard ?


SQL 2005 Standard.

Hi I would like to find the best approach to load balancing some SQL 2005 Servers taking in mind also the future scaling out of tens or hundreds servers.

I found this article: http://goo.gl/zP1R that writes about P2P replication, Table partitioning and Database mirroring but:

- P2P replication is limited to 12 servers
- table partitioning is not related to our case
- From what I know Database mirroring is only a high-availability solution, isn't it ?

What do you think ? Which is the best solution ?

Is SQL 2008 better in this area ? Could I upgrade to better meet these points ?


Can Windows Service handle Data Staging and load operations?



I am developing an application which requires data staging, WCF module to consume web service app and data loading Module. The data staging module will work with SSIS package and data load module will use Stored Procedures and WCF module which will consume web service and send data from the staged tables.

All these modules will be part of single application which will be configured as a Windows Service at the server end. Development platform: VS2010,C#4.0

Given that, can Windows service handle all the above operations? How can I use error handling effectively? Since this is a background process, I need very good error and trace handling routines.

Appreciate any inputs or references on these. 





Service Configuration Editor (SvcConfigEditor) in VS 2010: An attempt was made to load a program wit


I am using Visual Studio 2010 Premium installed on Windows 2008 HPC with service pack 2. I am attempting to use the Service Configuration Editor (SvcConfigEditor.exe with File and Product version 4.0.30319.1) to create a new service configuration.

1. I opened the web.config file for the WCF service

2. I clicked the link "Create a New Service..." to bring up the "New Service Element Wizard"

3. I browsed to the WCF service \bin folder and selected the DLL. I received the error dialog box containing the message:

Could not load file or assembly 'file:///d:\...\MyService.dll' or one of its dependencies. An attempt was made to load a program with an incorrect format.

4. I made sure that the WCF service and all referenced DLLs are configured for the same Target CPU of x86.

Below is the FUSLOG viewer entry when this error occurred:


*** Assembly Binder Log Entry (5/4/2010 @ 5:54:16 PM) ***

The operation failed.
Bind result: hr = 0x8007000b. An attempt was made to load a program with an incorrect format.

Assembly manager loaded from: D:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
Running under executable D:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\NETFX 4.0 Tools\SvcConfigEditor.exe
--- A detailed error log follows. 

=== Pre-bind state information =

I need complete tutorial about MSSQL 2008 Database mirroring for load balancing


I need complete tutorial about MSSQL 2008 Database mirroring for load balancing

i want to load balance my SQL workload

all database insert update and delete queries will be mirrored

all select queries will be load balanced

sql servers will run at windows server 2008r2 at different computers (VPS)

Browser based Pokemon MMORPG Pokemon Craft Developer Used asp.net 4.0 routing at it's Pokedex

SharePoint 2010 Network Load Balancing and Kerberos Authentication


Hello all. Thanks for taking a look at this...

To put it simply, kind of, I have a SharePoint 2010 farm with 1 web application (non default port) using kerberos authentication with 2 load balanced web front end servers.

NLB = web.domain.com

The NLB is setup at web.domain.com (on port 80), as mentioned above, and directs traffic to either web server on port 8090.

An SPN has been setup for the NLB url with the web applications service account.
Delegation has been setup on the web app account and the web servers.
I am not using host headers for this web app.
I have setup the useapppoolcredentials instead of disabling kernel mode in IIS7 (tried it with it disabled too)

I tried this just in case...Registered SPNs for both web servers, with and without port numbers, and with and without fqdns.

The Problem
Kerberos authentication will not work when the NLB is set at port 80. If I set the NLB to match the web application port, 8090, kerberos authentication works fine and all is well.

This may be an obvious issue, but i cant put my finger on what I am missing.

Simply put, i would just like to have the users type in web.domain.com (the NLB url) instead of having to put in web.dom

Forecast: Cloudy: Load Balancing Private Endpoints on Worker Roles


A client needed to load-balance private service endpoints on Windows Azure Worker Roles without taking on the latency of a queuing operation. I'll walk you through one possible solution to this problem.

Joseph Fultz

MSDN Magazine May 2011

Windows Service Applications Tutorials

You can easily create services by creating an application that is installed as a service. For example, suppose you want to monitor performance counter data and react to threshold values. You could write a Windows Service application that listens to the performance counter data, deploy the application, and begin collecting and analyzing data.
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend