问题描述
可以说我有一个应用程序,即分离成各种层(presentation,业务,数据访问)。如何独立部署这些层的Azure?现在的问题是关于Azure的配置,不是应用程序的架构。
Lets say I have an application, that is separated into various layers (Presentation, Business, Data Access). How to deploy those layers to Azure independently? The question is about Azure configuration, not about the architecture of application.
推荐答案
这是应用程序通常被划分成不同的角色,每个角色是在Windows Server 2008 R2与定义的大小和实例的数量。您通常会打破你的应用成用于缩放和管理目的的角色。这是最简单的往往在单个部署中部署应用程序。
An app is usually divided up into various roles, each role being Windows Server 2008 R2 with a defined size and number of instances. You'd typically break your app up into roles for scaling and management purposes. It's often simplest to deploy an app within a single deployment.
在您的场景:比如说,如果你想推高了生活独立于您的应用程序(或者它提供你的多个应用程序)的Web服务层,那么你干脆把Web服务层(在Web的作用,让我们说)在自己的部署。你需要管理认证/授权,因为Web服务然后将使用通信公共端点(或者你可以使用服务总线)。
On to your scenario: If, say, you want to push up a Web Services layer that lives independently of your app (or maybe it serves multiple apps of yours), then you would put that Web Services layer (in a Web Role, let's say) in its own deployment. You'd need to manage authentication / authorization, since the Web Services would then be using a public endpoint for communication (or you could use Service Bus).
在您的例子:你可以用一组Web角色把你的presentation层(如网站)一个部署,配套服务,如高速缓存一起。你必须在其他部署业务层,可能与Web服务运行,如我上面的例子。那么你的数据层可以是SQL Azure的(数据库,作为一种服务)或者一个独立的数据库MongoDB的一样,在自己的部署中运行。
In your example: you could push your Presentation tier (e.g. website) to one deployment with a set of Web Roles, along with supporting services such as Cache. You'd have your Business Layer in another deployment, maybe running with web Services as in my example above. Then your data layer could be SQL Azure (Database-as-a-Service) or maybe a standalone database like MongoDB, running in its own deployment.
每个部署将拥有自己的项目,你会部署和分别管理各一台。有没有配置跨越所有部署。
Each deployment would have its own project, and you'd deploy and manage each one separately. There's no configuration that spans all deployments.
这篇关于单独的层天青独立部署的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!