Azure vs WCF vs ASP.NET vs ...它如何组合在一起? [英] Azure vs WCF vs ASP.NET vs ... How does it fit together?

查看:50
本文介绍了Azure vs WCF vs ASP.NET vs ...它如何组合在一起?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一个新手问题.我已经做了很多Java开发人员(例如GAE)和移动开发人员,例如iOS和Android.我正在研究Windows Azure作为我们与移动设备进行交互的服务器端服务的平台.我必须承认,我很难理解.首字母缩略词过载是其中的一部分.是否有各种不同首字母缩略词如何结合在一起的良好指针?

a newbie question. I've done plenty Java dev (e.g. GAE) and mobile dev such as iOS and Android. I am investigating Windows Azure as the platform for our server-side services that our mobile devices interact with. I have to admit I have a hard time getting my head around it. Part of it is acronym-overload. Are there any good pointers how the various acronyms glue together?

我已经完成了一些教程,但它们主要专注于在Azure中建立网站.在我们的案例中,实际上并没有任何网页,而是设备调用的服务(一些REST,其他一些).也许要提出一个特定的问题:辅助角色或Web角色如何检索发送到我为其创建的端点的http-post的内容?

I've worked through some of the tutorials but they mostly focus on doing a web site in Azure. In our case, there really aren't any web pages but rather services (some REST, some otherwise) that the devices call into. To come perhaps to a specific question: how does a worker role, or a web role, retrieve the content of an http-post sent to the endpoint I created for it?

推荐答案

答案很简单.对您来说,Azure是托管服务提供商.它可以帮助您根据需求扩展应用程序服务器(例如,下载和安装应用程序的移动客户端数量).

The answer to this should be fairly easy. Azure, towards you, is a hosting provider. It helps you scale your application servers based on demand (e.g. number of mobile clients downloading & installing your application).

一些营销方面的发言:Azure降低了您自己的解决方案的拥有成本,因为它节省了最初的投资,首先要确定(猜测)所需的硬件数量,然后再构建/出租数据中心和/或硬件.它还为您的应用程序(如AppFabric)提供某种形式的中间件,以便它们可以更好地在云"中进行通信.您还可以在Azure,分布式托管(例如,欧洲数据中心,美国数据中心...),已经建立了故障保护机制(如果一个实例发生故障时自动实例化)的负载平衡上,并且很明显地,随用随付&您使用的好处.

A little marketing speak: Azure lowers your cost of ownership for your own solutions because it takes away the initial investment in firstly figuring out (guessing) the amount of hardware you need and then building/renting a data center and/or hardware. It also provides some form of middleware for your applications, like AppFabric, so that they can communicate in the "cloud" a bit better. You also get load balancing on Azure, distributed hosting (e.g. Europe datacenters, USA datacenters...), fail safe mechanism already in place (automatic instance instantiation if one were to fail) and obviously, pay as you go & what you use benefits.

接着, ASP.NET 是一个应用程序框架,特别是Web应用程序框架.它可以帮助您使用八个来编写基于Web的应用程序WebForms MVC .对于您所说的,这实际上对您没有多大用处(仅用于运行后端系统).但是,如果您最需要一个Web应用程序,是的,ASP.NET与Azure完美兼容(显然).

Going from there on, ASP.NET is an application framework, specifically, a web application framework. It helps you write web based applications using eight WebForms or MVC. For what you stated, this shouldn't really be of much use to you (for running a back-end system only). But if you need a web application on top of that, yes, ASP.NET works perfectly with Azure (obviously).

最后, WCF Windows Communication Foundation 是另一个框架,这次用于编写和使用服务.这些要么是Web服务,要么是其他服务,例如基于TCP的服务,甚至包括基于MSMQ的服务.我认为,这是暴露后端时应注意的事项.WCF使您能够轻松指定合同和实施,同时将服务的托管和实例化留给 IIS (IIS是Microsoft的Web服务器,它也在Azure的幕后运行).

Finally, WCF or the Windows Communication Foundation, is another framework, this time for writing and consuming services. These are either web services, or other, e.g. TCP based services, even MSMQ based services. This is, in my opinion, what you should be looking at for exposing your back-end. WCF provides you the ability to easily specify a contract and implementation, while leaving the hosting of the service and the instantiation to IIS (IIS being Microsoft's web server, which is also running under the covers on Azure).

现在,尝试回答您的问题:我将要拥有一个Web角色,托管WCF服务,并在公共端点公开.您的移动应用程序将从那里开始调用此公共终结点(显然是由地址和端口定义),并使用基于标准的Web服务与您的服务进行通信.

Now, to try and answer your question: I would go about having a web role, hosting a WCF service, exposed at a public endpoint. Your mobile application will from there on call this public endpoint (defined by an address and port, obviously) and use standards-based web services to communicate with your services.

这有意义吗?

无耻的加法:我已经在我的博客上写了关于这些流行语和诸如此类的内容,欢迎您退房.

Shameless plus: I've written about these buzzwords and whatnots on my blog, which you are welcome to check out.

这篇关于Azure vs WCF vs ASP.NET vs ...它如何组合在一起?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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