Cookies on this site

We would like to use cookies to understand how the site is used and to measure our campaigns. Nothing is set until you choose, and you can change your mind at any time from “Cookie settings” at the foot of every page. Privacy policy

Contact UsContact Us

Resources / Blogs

Cloud & apps

Hosting a WCF service

There are multiple options to host a WCF service, and all of them comes with various advantages and disadvantages. We are listing them here for our readers.

· · 1 min read

Hosting service

To be able to consume a WCF service, it needs to be hosted.

There are multiple options to host a WCF service, and all of them comes with various advantages and disadvantages.

Available hosting options are as follows.

Hosting Option

Description

1

Self-Hosting

Hosting using Console Application, Win Forms, WPF Application etc.

2

Windows Service

Hosting Using a Windows Service

3

IIS – Internet Information Services

Hosting using IIS. By default, supports only HTTP Bindings. Non-HTTP bindings are not supported.

4

WAS – Windows Activation Services

Hosting using IIS and WAS supports all bindings including Non-HTTP like TCP, MSMQ etc.

  1. Self-Hosting

Advantages

Disadvantages

· Easy Setup

· Easy Debugging

· Supports all bindings and protocols

· Easy control of lifetime of the service using the ServiceHost class

· Service is available only when service host is running.

· Does not support message based activation like in IIS

· Generally used only in development and demonstration phase.

  1. Hosting using Windows Service

Advantages

Disadvantages

· Can be configured to start automatically with windows

· Supports all bindings and protocols

· Can be configured to restart and recover automatically hen failure occurs

· Writing custom code for hosting.

· Difficult to debug, as the host process must be attached to debug.

  1. IIS Hosting

Advantages

Disadvantages

· No code required to host the WCF service, the ServiceHost directive in the .svc file is responsible for creating the instance as and when required.

· Supports automatic message based activation

· Automatic process recycling, helps to restart the service when it is not healthy

· This hosting supports only HTTP bindings, when hosted in IIS 6.

  1. WAS Hosting

Advantages

Disadvantages

· All the advantages of IIS hosting

· Supports all types of bindings

· Need to install WAS separately with WCF Non-HTTP components.

← All articles

Case studies

Cloud Consulting in practice

Client names are withheld. We are happy to share details on a call.

All case studies
  • Delivered

    On-prem → Amazon RDS

    Nonprofit

    Cloud Consulting

    Oracle from on-premises to Amazon RDS for a national nonprofit

    The nonprofit's on-premises Oracle database had become hard to maintain and scale. We planned the move with automated workflows and validation tests, migrated to Amazon RDS for Oracle with minimal disruption and left a repeatable process for future changes.

    • Automated, tested migration
    • Less day-to-day database upkeep
  • Delivered

    600k files, < 3 days

    Document management

    Microsoft

    600,000 documents moved from ImageRight to SharePoint in under three days

    A one-file-at-a-time script would have needed about 22 days of continuous running. We rebuilt the migration around a SQL work queue with parallel uploads, automatic retries and crash recovery, and it finished unattended in under three days.

    • 1,125 → 8,314 files per hour
    • Under 3 days instead of about 22
  • Delivered

    Every change, flagged

    Food manufacturing

    AI Consulting

    Label comparison agent for a national food cooperative

    Compares two versions of a product label, highlights every change, annotates the PDF and returns an audit-ready list of differences. We moved it from Copilot Studio to Azure Functions when the document processing outgrew the low-code platform.

    • Audit-ready differences in one chat turn
    • Rebuilt from low-code to cloud functions

Keep reading

All Cloud & apps articles

Moving an application to the cloud?

Request a migration plan consult. We will scope the move with you and come back with a fixed-scope plan.