Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

I think I need a Windows Service

Posted on 2009-12-31
2
Medium Priority
?
170 Views
Last Modified: 2013-12-17
I plant to make my application support multiple instances and want another exectuable program to perform certain decisions for the group of instances, and think a Windows Service is what I need. I'd like each instance to report into the Service every few seconds, in a standard interval, to report certain statistics. Then every 15 seconds or so I'd like the Service to perform some optimization calculations, then pass instructions back to each instance.

From what I know about Windows Services, they are perfect for this task. Am I right?

Is there any way for the service to communicate back to the instance? Or must the instance simply poll the Service to find out it's next instructions?

I have used Web Services and assume they are similar. Please let me know and give me some general ideas about the pros and cons of Windows Services.

Thanks,
newbieweb

0
Comment
Question by:newbieweb
2 Comments
 
LVL 96

Accepted Solution

by:
Bob Learned earned 2000 total points
ID: 26158480
Hmmm...web service or Windows service...they both serve a similar purpose, and they are both suited for the job.  For me, that decision is based on what is easy to implement and what is allowed.  Our company frowns on Windows services, for some reason, but not web services, so it tends to funnel decisions down to web services every time.  The decision has a few weighted factors that I can think of right off the top of my head:

1) Are you crossing any network boundaries (firewall, proxy, etc.)?  If you are, a web service would be a better choice.

2) Do you have a simple network plan, that doesn't add a lot of complexity?  If you do, then a Windows service would be easy to implement.

3) What throughput are you looking for?  Windows services can handle higher throughputs, but load balancers, and IIS application pools can make it better for web services.

4) How important is troubleshooting and maintenance.  I feel that Windows services are more difficult, than web services to maintain.
0
 

Author Comment

by:newbieweb
ID: 26158703
Thanks for the feedback. Web services are known quantities, since I've worked with them. And I later realized I may need to be accessable to clients via the web that makes web services the clear choice.

Thanks!
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Screencast - Getting to Know the Pipeline
Suggested Courses
Course of the Month21 days, 5 hours left to enroll

810 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