I think I need a Windows Service
Posted on 2009-12-31
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.