Hosting WCF service on azure

前端 未结 4 1353
刺人心
刺人心 2020-12-28 08:48

I got a wcf service which I\'d like to run on azure, but I got several problems:

First: do I choose a web role or a worker role for running the wcf service?

4条回答
  •  感动是毒
    2020-12-28 09:13

    If you host your WCF service in a Web role, you'll then have all the benefits of IIS (pooling, caching, logging, etc.). You can rely on the WCF Web Role template and simply add a WCF service (which manifests itself as an svc) - and with the new SDK 1.3, you should be able to host a WCF service alongside your website in the same role.

    You can also new up a ServiceHost in a worker role. With the worker role, you'll have complete control, but you'll lose the benefits of IIS.

    For WCF labs, start with the Azure Platform Training Kit. You'll see labs for:

    • Hosting WCF in a worker role
    • Using identity management for WCF security
    • Using WCF with the service bus

提交回复
热议问题