在Azure托管WCF服务 [英] Hosting WCF service on azure

查看:194
本文介绍了在Azure托管WCF服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我得到了我想要在Azure上运行的WCF服务,但我有几个问题:

第一:做我选择Web角色或运行WCF服务辅助角色

第二:客户端使用一个电话登录到服务,事后服务应该记住是谁在(会话)记录。问题是,防火墙原因我也许应该使用一些HTTP绑定。但这些似乎不支持会话?结果
还是我需要的AppFabric的会话(是什么AppFabric的呢?)?

有一个很好的完整的教程如何托管WCF服务?


解决方案

如果您在Web角色主机WCF服务,你会再有IIS(池,缓存,日志记录等)的所有优势。你可以依靠的WCF Web角色模板,只需添加一个WCF服务(它本身表现为一个SVC) - 并与新SDK 1.3,你应该能够承载WCF服务一起在同一个角色你的网站

您也可以新起来的工人角色的ServiceHost。与工人的角色,你就会有完全的控制,但你会失去IIS的好处。

有关WCF的实验室,开始与<一个href=\"http://www.microsoft.com/downloads/en/details.aspx?FamilyID=413e88f8-5966-4a83-b309-53b7b77edf78&displaylang=en\">Azure平台培训工具包。你会看到实验室进行:


  • 在辅助角色承载WCF

  • 使用身份管理WCF安全

  • 使用WCF与服务总线

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?

Second: The client uses a call to log into the service, afterwards the service should remember who is logged in (sessions). The problem is, for firewall reasons I probably should use some http-binding. But these seem not to support sessions??
Or do I need AppFabric for sessions (what is AppFabric anyway?)?

Is there a good complete tutorial how to host wcf service?

解决方案

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

这篇关于在Azure托管WCF服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆