怎么样在Azure和可扩展性的托管WCF? [英] What about hosting WCF in Azure and scalability?

查看:143
本文介绍了怎么样在Azure和可扩展性的托管WCF?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在碧云寺可伸缩性原因主办我的WCF服务。例如将有用于用户认证的​​服务。这将是高负载(超过1000个用户/秒)下。

I want to host my WCF services in the Azure clouds for scalability reasons. For example there will be service for user authentication. And it will be under High Load (1000+ user/sec).

在这里所做的任何人有在高的用户负载的Azure云托管WCF服务的真实经历?

Does anybody here have real experience with hosting WCF services in the Azure cloud with high user load?

什么是这里的最佳实践,模式?

What are best practice, patterns here?

天青是否有这样的任务的一些云平衡API?

Does Azure has some cloud balancing API for such tasks?

谢谢,
基里尔。

Thanks, Kirill.

推荐答案

修改2014年4月9日 - 更新了最新的可扩展性的目标

在Windows Azure负载平衡器将流量引导到你的Web角色或Worker角色的所有实例。因此,负荷被分布

The Windows Azure load balancer directs traffic to all instances of your Web Role or Worker Role. So, the load gets distributed.

当您设置WCF服务端点,它将基本上存在于所有角色实例,所以你可以扩展到任意数量的虚拟机实例,以增加流量处理能力。但是,你必须处理下游风门穴。举例来说,如果你从/所有WCF服务的主机写入的Azure表的存储读书,你的局限性<击> 500 2000每秒事务,每个表分区。每个存储帐户支持每秒20000事务(其中你需要多个分区,由于2K /秒帽上的单个分区)。

When you set up your WCF service endpoint, it would essentially exist on all role instances, so you can scale to any number of VM instances, to increase traffic-handling ability. However, you have to deal with downstream throttle points. For instance, if you're reading from / writing to Azure Table Storage from all your WCF service hosts, you're limited to 500 2,000 transactions per second, per table partition. Each storage account supports a max target of 20,000 transactions per second (for which you'd need multiple partitions, due to the 2K/sec cap on an individual partition).

请确保您的WCF服务是无状态的,因为谁也不能保证一个客户端将连接到同一台服务器上的后续调用。

Make sure your WCF services are stateless, as there's no guarantee that a client will connect to the same server on a subsequent call.

我看到我们的一些客户有非常高容量的WCF服务的使用。我无法想象每秒1000个电话是一个问题,因为你可以扩展到多个实例。

I've seen some of our customers have very high-volume WCF service usage. I can't imagine 1000 calls per second being an issue, since you can scale out to multiple instances.

编辑:有在Windows Azure <一个几WCF相关实验室href=\"http://www.microsoft.com/downloads/en/details.aspx?FamilyID=413E88F8-5966-4A83-B309-53B7B77EDF78&displaylang=en\"相对=nofollow>平台培训工具包。

There are a few WCF-related labs in the Windows Azure Platform Training Kit.

这篇关于怎么样在Azure和可扩展性的托管WCF?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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