Advantages and Disadvantages of hosting WCF service in windows service – Easy WCF
Skip to content

Advantages and Disadvantages of hosting WCF service in windows service

Advantages of hosting WCF service in windows service:

  • Windows service runs in background and can start Automatically
  • In case of failure,Windows service can be configured to restart automatically
  • Windows service supports all binding and transport protocol
  • The WCF service that the windows service hosts starts automatically or you can manually start or stop the service

Disadvantages of hosting WCF service in windows service:

  • For Windows service, you need to write custom code
  • Windows service that host WCF should be deployed to the environment you are hosting the service
  • You need to attach a separate process where the windows service is running
  • DIfficult to debug due to separate process

© 2015, admin. All rights reserved.

2 thoughts on “Advantages and Disadvantages of hosting WCF service in windows service

  1. Wayne Clifford Barker says:

    “Windows service supports all binding and transport protocol”

    Surely this cant be a disadvantage?

    Reply
    • admin says:

      Good Catch. Modified in post. Thanks for visiting.

      Reply

Leave a Reply

Your email address will not be published. Required fields are marked *