Search code examples
wcfrestiis-7washotswap

What .NET 4.0 technology provides modular fix-in-flight (hotswap) REST service hosting?


So, it's a dream of many years now, but hope springs eternal. Is there a framework/service (WCF/WAS/MVC/ETC) that allows you to add/update services with minimal impact on ongoing requests or "sibling" services.

The dream looks something like this:

  • IIS7

    • Pluggable REST Service Host

      • Shared resources (repositories, qa)

      • Service A - Dropped in folder in production, provides new REST methods

      • Service B - Updated "in flight" to fix a bug, minimal interruption of requests

I think the answer might involve WAS or possibly AppFabric (the dream isn't cautious) but since I've never managed to find an easy way to make it work, I welcome your input on how to best achieve what I think our PHP comrades just "do".


Solution

  • MEF + self hosted WCF with WebHttpBinding. Or MEF with HttpListener. The new WCF Http stack at http://wcf.codeplex.com will make this much easier in the future