473,785 Members | 2,291 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2415
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
4987
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 Parameter. I can call the first Method without Problems, the Parameter can be deserialized by the WebService. But if I want to call the second Method and give it an Array of Parameters, then the following exception is thrown by the WebService:...
4
2097
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 this? Thanks again WStoreyII
1
7761
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 response back from the server. Is this too much overhead, and how would you imlement this?
13
12961
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 System.Net.NetworkCredential("username","password","domainName"); 2)rService.Credentials = System.Net.CredentialCache.DefaultCredentials; My question is that is there a way to authenticate to a user using WindowsIdentity ???
2
1303
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 welcome any suggestions on what would be the best approach: 1. Create data classes from the XML schema. Populate these with records and pass them as complex data types (structs) via the WebMethod. I'm thinking this would ensure that the XML that...
1
1495
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 and using Integrated Security to connect to SQL Server? On reading the IIS help it seems that if I create a new application pool and configure it's identity then I can't use Kerberos. Most of the time the WS is serving users on the LAN but...
6
2442
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 Pawel
0
1027
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 between the WebService (Gimme a Widget!)and the App (Ok. Ok. Here it is.) 1)MSMQ 2) Database Table (WebService writes request, reads Widget) . 3)??? Thanks Bob
2
2269
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 is my not-working solution this is my web service, with the Forms authentication and working on AspSqlMembershipProvider and with Role provider implemented too. It is working well. I can create user, I can ValidateUser... But I would like, that...
0
9643
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10147
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9947
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7494
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6737
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5379
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4045
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2877
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.