Hosting WCF service on azure

前端 未结 4 1324
刺人心
刺人心 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:09

    there´s no right answer for every scenario. if your service is simple, and dont need to manage a lot of configurarions such as specific permissions and etc, the azure website may attend well.

    0 讨论(0)
  • 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
    0 讨论(0)
  • 2020-12-28 09:17

    You can even host your WCF service on Azure Websites instead of using Web role or worker role. See the details here.

    0 讨论(0)
  • 2020-12-28 09:21
    1. You will need to create web role for WCF service.
    2. Here is a good tutorial on hosting wcf service on azure. I followed it and I could host a service on azure.
    3. AppFabric is like a bus, which you can use for user authentication or getting some data from azure application.
    0 讨论(0)
提交回复
热议问题