Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 847731
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T06:49:59+00:00 2026-05-15T06:49:59+00:00

I’m in dilema whether to use windows service for my application or not, below

  • 0

I’m in dilema whether to use windows service for my application or not, below is the description about my application please could anyone suggest what is the best approach for my requirement, if possible with pros and cons as well.

There is Application “A” which is a closed application and any data I need from that application is exposed only via WCF services. My application “M” has to call one of the WCF service exposed by “A” and then get the data and process it and throw out a file. Similarly if some file is injected into my application “M” then I need to process it and push that information into Application “A” using its WCF service. This is the requirement in brief.

problems-

1) Here my application “M” needs to continously poll application “A” wcf service to check if something is availabel for it to process. I dont like polling but any other alternatives, please suggest.
I thought of MSMQ, that application “A” sends message to my application “M” whenever a new data comes in. My application “M” then processes that from Queue. Not sure how to do it. Please advise if this is right approach.

2) Another thing is if a new file comes onto some server folder then my application “M” has to pick it up and process it and send it to Application “A”. so in order to acheive this I may have to have a file system watcher and as soon as something becomes available then it has to kick off my application. Again struck at what technology( only in .Net) to use. Is MSMQ best approach ?

So am now struck at which tech (only in .Net) I need to use to efficiently complete my requirement. Is windows Service best approach by constantly polling Application “A” and implement MSMQ along with it. Please advise.

Thanks in advance
Sai

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T06:50:00+00:00Added an answer on May 15, 2026 at 6:50 am

    For requirement 1, I would use a WCF service hosted via the Windows Process Activation Service (WAS) – see the MSDN reference. That requires WAS (Windows Vista/7 or Windows Server 2008/2008R2), however, so if those are not available then a regular NT service would be the appropriate fallback.

    For requirement 2, you can implement an NT service that uses the FileSystemWatcher class (MSDN reference).

    So, you could implement a single NT service with the FileSystemWatcher and a polling thread, or you could implement both an NT service with the FileSystemWatcher and a separate WAS-hosted WCF service that listens via MSMQ.

    The latter is perhaps a little cleaner since it follows the separation of concerns principle. But it’s only possible if application “A” can be configured to send messages via MSMQ (i.e., your service “M” would become the “server” and application “A” would act as a client). So, the former option (a single NT service to do both) may fit your scenario better, but I’m not completely sure from your description of “A”.

    As for sending messages to application “A”, MSMQ may or may not be the appropriate choice. Are both applications on the same machine? Then use named pipes. Are they on different machines? Then use a TCP binding if application “A” is always running (i.e., a running service), but use an MSMQ binding if you require guaranteed delivery of your messages and application “A” may be offline occasionally while application “M” is sending it messages. (Also, note that using MSMQ requires that the MSMQ Windows component be installed on the receiving machine.)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does anyone know how can I replace this 2 symbol below from the string
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I am trying to understand how to use SyndicationItem to display feed which is
I want use html5's new tag to play a wav file (currently only supported
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I need a function that will clean a strings' special characters. I do NOT
I'm trying to use string.replace('’','') to replace the dreaded weird single-quote character: ’ (aka
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I am reading a book about Javascript and jQuery and using one of the
Is it possible to replace javascript w/ HTML if JavaScript is not enabled on

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.