Click here to Skip to main content
15,909,030 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Our main application is in Web based application.
I want to make a service which will work on server side data (files like documents....) .Also I am using third party tool which support windows application. So shall I create WCF service or Window service ?I am little bit confused.Means shall we treat WCF service as Window service? .....
Please give me best solution....

What I have tried:

We already built web application.All data is on server side .Also third party tool support windows application.Using this third party tool we have create background service .So should I create windows application with windows service or WCF service with web application directly.
Posted

Do you mean service as in 'Daemon' [^] ?

I would have thought a Windows Service was more appropriate - WCF is a 'framework for communication' that (thinking out loud) could be implemented on/as a service

Personally, I start Win32 'services' as console programs and use 'Topshelf' to make services out of them
 
Share this answer
 
It depends on your requirement: Is your new service needs to communicate with your main web application or they are isolated each other?

If it is isolated then Windows Service is better. Let's say you want run the service on interval basis. For instance, there is a requirement to send e-mails to users on 5 min interval basis then Windows Service is better.

If main web application wants to communicate with service then WCF is better. Again we two option to implement service either WCF or WebAPI. Do not confuse: use WebAPI if you want implement HTTP RESTful services and use WCF if you have TCP/NamedPipe etc. Go through below link:

Difference between WCF and Web API and WCF REST and Web Service[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900