473,411 Members | 1,937 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,411 software developers and data experts.

Webservices and how to deliver different service levels?

Our customers have different names SLA’s / Service Level Agreements but use
the same webservice. How do I handle that some users can be allowed to wait
when the load is high while others can’t? One possible scenario could be to
redirect VIPs to a more powerful webfarm than the one the common user uses.
But is it a good solution and, in case it is, can I implement it using some
of the standard features in .net (or perhaps .net v2)?

Regards,
Peter
Nov 23 '05 #1
2 1509
Hi Peter,

Welcome to MSDN newsgroup.
From your description, your webservice will be exposed to multi users each
of which has their own privacy or priority on using the service. Since
they'll request the same webservice address( url), you're wondering any
good means to make the different dispatch/process policy transparent to the
end user, yes?

Based on my experience, as for such scenario, we may need to implement a
facade for the webservice, let the end users all send request to that
facade and let the facade to call the actual service accordring to the
clientuser's information.

And as far as I knew, in the current ASP.NET webservice framework, we can
use SOAPExtension to intercept the webservice call (soapMessage) before
them reach the actual service, we can intercept the SOAPMessage's content
or anyother clientside info in the soapExtension's certain process stage
and do the redirection work there.

#Altering the SOAP Message Using SOAP Extensions
http://msdn.microsoft.com/library/en...ringsoapmessag
eusingsoapextensions.asp?frame=true

But frankly speaking, SOAPExtension is more appropriate for some lightweigh
interception such as logging , or encription... As for service
redirection or load balance, I'd recommend implement a separate module to
accept all the comming calls and send new request to the actual service.
In addition, the new WS-Routering specification seems particularly
addressing the problem in your scenario. It focus on a standard means to
provide message rountering/dispatching. Currently .net framework 1.x dosn't
buidlin support it, but we've provided the WebService Enhancement which has
implemented the latest specification of the webservice new protocols and
services such as WS-Security, WS-Policy, also WS-Rounting, WS-addressing,
we can find the introduction at the MSDN's webservice dev center:

#Secure, Reliable, Transacted Web Services: Architecture and Composition
http://msdn.microsoft.com/webservice...bservices/defa
ult.aspx?pull=/library/en-us/dnwebsrv/html/wsoverview.asp

Also, the following document on the WSE (ws routing) may also be helpful:

#Routing SOAP Messages with WSE
http://msdn.microsoft.com/library/en...-4b62-8344-c04
f70cd3724.asp?frame=true

Thanks & Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)




Nov 23 '05 #2
As you say, you could use different boxes. That is kinda a brute force
approach, but would definately settle any questions on SLA as they get what
they pay for. If they need better perf, then it is easy to price faster
box(es) for customer X. The other way to go is using a priority queue. You
could "contain" a Thread pool inside a class that implements a priority
queue. It is easy to instrument the queue class for perf info at a single
point. When a request comes in, you queue it in the priority queue. Your
web service thread then blocks on a reset event. The thread pool (or
dedicated thread(s)) service the priority queue dequeueing the highest
priority in order. The last step in the thread pool method is to reset the
event object. This unblocks the web service thread to return the result.
--William

"Peter Norregaard" <ng****@online.nospam> wrote in message
news:BB**********************************@microsof t.com...
Our customers have different names SLA's / Service Level Agreements but use the same webservice. How do I handle that some users can be allowed to wait when the load is high while others can't? One possible scenario could be to redirect VIPs to a more powerful webfarm than the one the common user uses. But is it a good solution and, in case it is, can I implement it using some of the standard features in .net (or perhaps .net v2)?

Regards,
Peter

Nov 23 '05 #3

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

Similar topics

1
by: Liza | last post by:
Hi guys, i'm trying to build a web service....... is there such thing as polymorphism in web services? i mean could i have two web services of the same name but different arguments such that i...
8
by: Allan Ebdrup | last post by:
I just had a discussion with one of my fellow programmers. We have a class for doing some logging and sending an email, it has 5 different scenarioes of loggin that are common enough to share a...
1
by: Diffident | last post by:
Hello Guys, I have a question with regards to the efficiency and best practices in .NET framework. We are currently using Webservices as normal classes. The way we are invoking methods in...
2
by: Antuane | last post by:
any one have any idea how transactions could be enabled in webservices. i.e., suppose i've got 2 methods - one to add a contact, & the other to set some miscellaneous details for the contact, in a...
1
by: Mike | last post by:
Hi all, I have written a webservice which I am using in my smartphone applicaiton. I have tried the webservice with a WinForms client and it works time and time again perfectly. When I include...
4
by: nixon | last post by:
Hi there! Im trying to build a 3 tier application that uses a smartclient in the "view" layer. The communication between the smartclient and the server should be webservices because of potentiel...
8
by: Komandur Kannan | last post by:
We have a smart device application running on handhelds(Symbol MC9000G). The backend is Oracle and a middle tier web services development done in Vb.net. We use pessimistic Locking due to...
1
by: Jothi | last post by:
Hi, We are a small application development group. We have about 100 Users who primarily use Microsoft Related Products. Our Application Development was purley based on a CLient Server Model using...
6
by: =?Utf-8?B?Q3JhaWc=?= | last post by:
If I have an application that I send out to users, and the application interacts with the database (behind the scenes, no direct sql creation by the users)....do webservices make the app more...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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:
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
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...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.