Hi,
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