Solved

Windows service vs Web Service

Posted on 2009-04-02
5
735 Views
Last Modified: 2013-12-17
Hello experts!

The question is, given the information below, is a web service or windows service ( or something else ) the best approach.

I'm designing a system that needs to support 500 concurrent requests and handle over 50,000 operations a day.  Each operation can require from 1 to 300 seconds of processing time on the back end.

Responsiveness and scalability are both very important.

What do you recommend?  What's worked out well for you?

Thanks!

Michael
0
Comment
Question by:topdog770
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 23

Expert Comment

by:apresto
ID: 24050703
It does depend on what you need to do, obviously a windows service just sits on a server and can take request from whereveer you tell it to (database, xml etc). Where as a Webservice you have to invoke a request. for example, if you have a windows application that you wan tto talk to a service over the internet, a web service would be a solution here. Web service is Not the equivelant of Windows service for web, even though the name sujggests this.
Sounds like you will need a pretty meaty network/server too.
how are your 500 concurrent requests going to be sent and what kinds of operations will you be executing?
0
 
LVL 6

Expert Comment

by:HarryNS
ID: 24051089
If the operations needs to be provided as service, that is many other applications may use this service for processing. WebService is mainly used for online purpose, any application wanted some information or information to be processed can ping this webservice and get the work done.

Webservice and Windows service are totally 2 different things. Windows service, is very much specific to the box it is installed.
0
 
LVL 9

Accepted Solution

by:
Gorkem Yuksel earned 500 total points
ID: 24051444
Well it boils down to 2 things... Time and effort needed to build it..  If the service will accept requests from other machines, a windows service will need to have TCP listeners built to handle the incoming connections and transmittions.  This would also require you to build the TCP handler to handle multiple simultaneous connections.  This is the way to go if the information/requests being transmitted are sensitive data, require special handling or require special TCP port settings.

On the other hand, if it's fairly straight forward and a simple web request will suffice, then the Web Service will do the trick.. All TCP connections are handled through IIS, all you have to take care of is processing the request.

Cheers,

G.
0
 
LVL 12

Author Comment

by:topdog770
ID: 24108203
You've summed up my dilema very well.  
The required background processing for each request is going to consist of image processing, database queries ( from table(s) with over 120 million rows, and more.
I have caching logic layed out to eliminate redundant work, but the work effort per request can still be high.
The most visible priority is quick response with the final result to a request.  I am inclined to think that a WCF windows service would provide the most responsiveness.  As qyuksel pointed out, there is more complexity with the windows service approach and more development time.
One further complication is that not all client code will be able to use .NET 3.5 and will be stuck using 2.0 which forces me to at least maintain a endpoint that supports HTTP requests.
Any further thoughts or personal experience?  
0
 
LVL 12

Author Closing Comment

by:topdog770
ID: 31565824
I dont feel that much information was provided.. indirect answer at best
0

Featured Post

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question