Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Performance / March 2008

Tip: Looking for answers? Try searching our database.

.Net 3.0 architectural question to improve performance

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Salim - 29 Feb 2008 15:08 GMT
I have a Web Service running as a Net Service which needs to do different
tasks in different user contexts.

I dont want to change Web service context to make it more privildged so I
created a COM+ component and hosted my Dll which changes context and does all
high priviledged jobs. All my web service as well as COM+ dll is in .Net C#

With .Net 3.0 and WCF, is there a different way to acheive this with a
better performance? Right now going back and forth between COM+ component and
Web service is slow and does not scale very well.
Alvin Bruney [ASP.NET MVP] - 01 Mar 2008 00:51 GMT
Yes, I can imagine the slowness. WCF would fix that good by replacing
everything you have done with all the functionality behind one simple WCF
service.

Signature

Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The O.W.C. Black Book, 2nd Edition
Exclusively on www.lulu.com/owc $19.99
-------------------------------------------------------

>I have a Web Service running as a Net Service which needs to do different
> tasks in different user contexts.
[quoted text clipped - 9 lines]
> and
> Web service is slow and does not scale very well.
Salim - 01 Mar 2008 12:59 GMT
So just replace the COM+ with WCF service? I dont have the liberty to replace
Web service and it has to be there. So create a WCF service and call that
from my Web service to perform high privilege operations? Do you think it
will be much fater than this COM+ interaction?

> Yes, I can imagine the slowness. WCF would fix that good by replacing
> everything you have done with all the functionality behind one simple WCF
[quoted text clipped - 13 lines]
> > and
> > Web service is slow and does not scale very well.
Alvin Bruney [ASP.NET MVP] - 02 Mar 2008 00:43 GMT
I wouldn't do that because there typically isn't a good reason for a web
service calling wcf service - the two are essentially the same. You would
replace the web service with a WCF service while maintaining the same call
signatures and URLs. If you web service was callable at
www.someservice.com/test.asmx, you would configure your endpoint on your WCF
to be the same so that your clients would not be broken. Underneath, the
implementation of the service would change from web service to WCF, your
clients would not notice anything different, except a huge increase in
performance.

With the COM+ service, i'd be a little more careful. Now, typically, you'd
use COM+ to take advantage of the object pooling capabilities and for legacy
interaction (printing capabilities in a VB/asp web page for instance). If
that's the case, you can replace the service with WCF which provides some of
those functionalities. Otherwise tread carefully. Hands-down you'll see a
drastic performance increase but again, tread carefully on the COM+
replacement. I'm doing an analysis on exactly that this week for a live
project so if you have any more questions, post here.

Signature

Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The O.W.C. Black Book, 2nd Edition
Exclusively on www.lulu.com/owc $19.99
-------------------------------------------------------

> So just replace the COM+ with WCF service? I dont have the liberty to
> replace
[quoted text clipped - 24 lines]
>> > and
>> > Web service is slow and does not scale very well.
Salim - 02 Mar 2008 03:58 GMT
Thanks Alvin for yuor replies.

COM+ component was there only becuase it has to run as high priviledge user
to do high priviledge tasks. I dont want to do this high priviledge tasks
under Web service whic outer workd ees. Thats the reason, i am trying to
replae COM+ with a WCF service. This WCF service will run as a high
priviledge user and will not be directly avaiable to clients via Web Service.
I understand your suggestion to just have one service but its not possible
right now and I have t maintain two components. One web service which runs as
low priviledge user and other WCF service/COM+ component to do admin tasks. I
guess even if I keep a separate WCF Service to replace COM+ and have We
service call into this WCF service, I'll still get good peformance improvment
and scalability?  

> I wouldn't do that because there typically isn't a good reason for a web
> service calling wcf service - the two are essentially the same. You would
[quoted text clipped - 43 lines]
> >> > and
> >> > Web service is slow and does not scale very well.
Alvin Bruney [ASP.NET MVP] - 03 Mar 2008 00:37 GMT
Usually, this is handled by creating an account on the machine that is
capable of running the highly privilege task. Then your webservice or some
lower priority stream of code impersonates that account to perform the
highly privilege task. Once the task is completed, the impersonation is
undone. The benefit is security because the account is isolated to one high
priority task. And performance, there is only one service.

If you are going to go the way of a service calling a service, i'd encourage
you to write a prototype and measure the calls to see if they fall within
tolerant limits. That's the only way to know for sure. Talking about it
simply won't help given your circumstance. A service calling another service
will allow you to scale and give you some degree of tolerance for failure.

Signature

--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The O.W.C. Black Book, 2nd Edition
Exclusively on www.lulu.com/owc $19.99

> Thanks Alvin for yuor replies.
>
[quoted text clipped - 72 lines]
>> >> > and
>> >> > Web service is slow and does not scale very well.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.