473,395 Members | 1,578 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Webservice farm, what's best practice??

Hi

What's best practice for distributing the load between webservices on
different computers? What I'd like is for a client to always select the
webservice with the least load, I.e. If one is idle then that one should be
selected, otherwise one working on a job with less priority than mine should
be selected and the job currently running should be paused.

Is there a pattern/best practice for doing this??

TIA

Søren


Nov 23 '05 #1
2 2398
In a web-farm, the load-balancer should do it for you (load part).

However, if priority comes into picture, you may need to have your own
load-balancer which proxies in front of the web-service-farm.

Not sure if anything is available out-of-the-box.

--
Cheers,
Gaurav Vaish
http://www.mastergaurav.org
http://mastergaurav.blogspot.com
--------------------------------

Nov 23 '05 #2
Hello Søren,
Essentially if you want a software load balancer you would need to consider
FrontController pattern in .net. Having said that, I'd say there is a lot
of things you need to think about when you decide to do this. Things that
jump to mind are how do you pass along credentials for authentication and
authorization to the balanced endpoints? Its possible but rather tedious
to have jobs created executed and paused based on priority in web service
land. What you need to consider for doing something thats more task oriented
is create a windows service. IMO, you could create a non-loadbalanced web
service that sends requests to a queue and have a windows service that picks
tasks and allocates tasks to worker threads that you can now control and
prioritize

HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
http://www.geniant.com
Hi

What's best practice for distributing the load between webservices on
different computers? What I'd like is for a client to always select
the webservice with the least load, I.e. If one is idle then that one
should be selected, otherwise one working on a job with less priority
than mine should be selected and the job currently running should be
paused.

Is there a pattern/best practice for doing this??

TIA

Søren


Nov 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Christian Wilhelm | last post by:
Hi! I'm trying to call a Java WebService out of a .net Client. There are two Methods, one Method requires one Parameter of type Parameter, the other Method requires one Parameter of type...
4
by: WStoreyII | last post by:
I wish to know how to set it up so that when an xml webservice is called that instead of displaying the xml in the browser it will render it with a xslt file the problem is i dont know how to do...
1
by: aaa | last post by:
What is the most efficient way to do a check to see if a webservice exists before attempting to execute. I was thinking of just creating an HTTP object then initiating a request to see if i get a...
13
by: ALI-R | last post by:
I know how to authenticate to a webservice using either of these ways(Assuming that rService represents the webservice): 1) rService.Credentials = new...
2
by: Codex Twin | last post by:
Hello group My problem: An XML feed of about 1000+ records needs to be sent over the web and validated against an XML schema. I am considering 2 possible solutions to achieve this, but would...
1
by: MichaelG | last post by:
I have a web service that talks to SQL Server 2005. At present the WS uses an SQL Server login and password to connect. Is this best practice or should I be running the WS under a domain account...
6
by: Pawe³ Piotrowski | last post by:
Hi! What are the best practises when building WebService supporting multilanguage users? For example, when WebService checks some business rules and returns message to the user. Best regards ...
0
by: Bob | last post by:
Hi, I have a C# App that makes Widgets. I want to add WebService functionality. i.e. You can request a Widget and the webservice will deliver. What is the best design practice for communication...
2
by: Mike Endys | last post by:
Hi all, have problem to use login to the web service. Im thinking about the web service that provides datas and files to the WinForm Client. I want the client log-in to the application... here...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.