Solved

Windows service vs Web Service

Posted on 2009-04-02
5
719 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
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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Programmatically signing Word macros 4 61
coded character set iptc field within a jpeg 1 67
Javascript and Jquery not firing 9 37
Variable Event ? 3 20
Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…
Need to grow your business through quality cloud solutions? With everything required to build a cloud platform and solution, you may feel like the distance between you and the cloud is quite long. Help is here. Spend some time learning about the Con…

914 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now