Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ASP.NET Web Forms Applications on Azure (or any cloud hosting)

This is a pretty vague question but I'm struggling a bit to get my head around what is involved in cloud hosting.

Say for instance if I had an asp.net web app using: - Webforms - linq to sql - an sql server database - Calling some external restful webservices

What would need to be done to host it on a cloud service?

Are there specific code changes that would be required and do these need to be considered in the initial design?

Can sql server and linq to sql be used in this type of setup?

What platform if any would be best suited?

like image 272
Luke Lowrey Avatar asked Dec 11 '09 01:12

Luke Lowrey


2 Answers

in it's most basic form, Azure is just a highly available web-hosting environment - if you have an ASP.Net web application, you can deploy it to cloupapp.net and it should work.

To try it out, get yourself a Vista/7 machine, download the Azure SDK and VS Tools, and create a new Azure application. There are 2 main parts at this point, the Cloud project, and an ASP.Net Web Application. The ASP.Net will have a "web-role" relationship with the Cloud project. This is as it sounds, it is the visual front-end to the Cloud application, that interacts with visitors.

You can, at this point, just leave it there - it's a normal ASP.Net application with very good hosting. Your SQL connection strings should work, though you may want to consider SQL Azure. You can also host WCF services.

As Manoj points out, Azure does have a different programming model which you can take advantage to produce very robust applications. Azure also has the concept of Worker Roles, which are similar to Managed Services, in that they perform processing without a public interface. Instead, your web-roles take the requests, place them on the Queues, and the worker-roles then pick them up, process and send back responses.

It's a very powerful system, which I haven't fully explored, but the good news is that you don't have to be an immediate expert in the whole system, but can create simple ASP.Net sites as web-roles, deploy those then expand from there.

Have a go, it's well worth it

Toby

like image 193
TobyEvans Avatar answered Nov 11 '22 10:11

TobyEvans


AppHarbor is a .NET Platform-as-a-Service. We can host your ASP.NET websites more or less un-modified and without the Visual Studio plugins and other crud that Windows Azure requires.

like image 32
friism Avatar answered Nov 11 '22 11:11

friism