7

As we want to develop a new product using Asp.Net MVC 3. The key point here is everything we talk to database by WCF web service.

We are in the phase where we need to decide whether we host WCF web service in IIS OR self hosting with Windows Service.

I raised this question just because I want to know that, what would be the better option to host WCF service that would satisfy my below conditions.

  • We're expecting 120 concurrent request / second. (May be 12,000 request/visit per day)
  • Security aspect (Specially WCF Service security)
  • Maintainability
  • Handling user's concurrent request at the same time (Can Windows Service handle multiple concurrent request comparing to IIS?)

Please do let me know whether I go for IIS hosting OR self hosting with Windows service.

Thanks in advance.

(Could anybody please suggest on this as this is a very crucial part to have decision for further process.)

nunu
  • 3,184
  • 10
  • 43
  • 58
  • 2
    If you are able to write a better host than IIS/App Fabric and can do so within a reasonable budget and time box you could write your own Windows Service. In most other cases there is no good reason to imitate IIS. – Emond Mar 21 '12 at 08:31
  • Possible duplicate of http://stackoverflow.com/q/1560619/47672 – 0x49D1 Mar 21 '12 at 08:33
  • @0x49D1: I gone through the 'possible duplicate' question before I posted my question here... and logically it's different question than I posted my own here.. I want to know in my 'given context' with WCF hosting! – nunu Mar 21 '12 at 08:37
  • 1
    *(Can Windows Service handle multiple concurrent request comparing to IIS?)* - **yes of course!** that's what the WCF runtime does for you - whether you're self-hosting, or whether IIS hosts your WCF service - doesn't matter in terms of concurrency – marc_s Mar 21 '12 at 09:42
  • 1
    IIS/AppFabric has worked very for us. I'd use it again over a windows service. – Rich Andrews Mar 21 '12 at 11:25
  • 1
    Out of the conditions listed, I would go with IIS only because install would be easier Id imagine. All your conditions are cake for WCF regardless if the host is IIS or a WinService – Mike_G Mar 21 '12 at 18:26

1 Answers1

10

You might interest, This is the "general decision tree" from "Programming WCF Services", Juval Lowy.

Choosing a host for an Internet service: For an internet application (that is, an application that receives calls from clients across the Internet)

Choosing a host for an Internet service

Choosing a host for Intranet service: For an intranet application (that is, an application that receives calls from clients within the same intranet), Choosing a host for an Intranet service

Min Min
  • 6,188
  • 2
  • 19
  • 17