0

我是 Web 开发的新手,因此有些问题对我来说可能微不足道但很重要。我正在开发一个网站,该网站将具有丰富的前端(html/js),我计划自己或通过外部供应商开发。我已经有一个从 weebly 购买并已激活的域名。当我为我的网站设计网页时,我的后端设计将是一个 azure worker 和/或一个 web 角色,它将处理我计划存储在 azure 存储中的数据。

现在这是我的问题

  1. 如果我使用 html5/html/JS/Jquery 而不是 ASP.Net 开发我的网站,是否可以使用 JSON/REST 访问后端?例如:我想从 sql azure 中获取一些数据并将其显示在我的网站上,这如何通过使用非 Microsoft 堆栈开发的前端来完成。

  2. 将我的 MVC3/4 Web 角色发布到我的域的方法是什么,以便我可以使用 ASP.Net 本身来开发我的网站。在这种情况下,是否有任何工具可以快速开发 ASP.Net 网站(如dreamweaver)。

  3. 我在 Azure 中开发了辅助角色,但从未从 Web 角色访问过数据,但也没有从网站访问过数据。

这里的任何想法都会对我解除封锁有很大帮助。

4

2 回答 2

0

I'm pretty sure this question will be closed since it's very broad (and really Azure101 - you should at least read the intro docs at windowsazure.com which would likely satisfy your initial curiosity).

That said: Regarding #1, the Azure stack is REST-based. This includes service management, storage and more. If one of the language SDKs doesn't provide what you need, you could always make direct REST calls to Azure's services. I'll leave it up to you to decide which architecture fits your app best (direct service access, or using some type of server-side WebAPI tier you deploy for your own use).

For question #2, you really should look at the documentation and read up on Virtual Machines, Cloud Services(web/worker roles) and Web Sites to get a good picture of how apps can be deployed. Different models for each.

Item #3 isn't a question.

于 2013-11-13T18:53:28.753 回答
0

Ok...

For your first point, SQL Azure is a special version of SQL. You should be able to connect to and use a SQL Azure server just like any normal SQL server (though there are differences that you will need to accommodate for). Your chosen platform/stack should a have this facility available.

For your second point, you can use Windows Azure Custom Domains to use your Azure roles with your domain. And you can look at Microsoft Webmatrix for something nice, quick and simple to develop with.

Not totally sure what you mean with point 3, but the Windows Azure SDK is available on a number of platforms. In Windows Azure can run Linux, you can run PHP, you can run node.js,etc - you are not tied to the .Net stack. There are Software Development Kits for most of the major platforms and technologies that make accessing storage easy and fast. There is even a JavaScript SDK coming soon I believe.

Hope this helps

于 2013-11-13T18:53:37.487 回答