7

I have a single page html application, that uses a lot of jQuery. The app content (data as xml and media audio/video/image) is (and has to be) provided by blobs on azure account. I don't need any application server.

What is the recommended way to host such single page html application on Windows Azure Environment (Azure is a requirement).

As I do not need any application server, all application files are currently uploaded into single container as Blobs with appropriate content types. It all works very good.

Still, I've seen that Azure has some website hosting capabilities I've been wondering if what I did is appropriate?

Thanks

user1438047
  • 133
  • 2
  • 5
  • This should help: http://stackoverflow.com/questions/8639484/howto-upload-setup-default-html-page-for-azure-blob-storage. Or this: http://blogs.solidq.com/pdoshi/post.aspx?id=3&title=hosting+a+static+website+in+windows+azure+storage+%5Bblobs%5D. It doesn't look like you can set up a default page for the site – levelnis Feb 26 '13 at 14:30
  • Second link has a solid description of hosting static webpage. Really helpful. Thanks levelnis. – user1438047 Feb 27 '13 at 12:36

1 Answers1

7

Windows Azure Web Sites would work well and could be free for the duration. If the constraints of the free offering don't work for you, you can scale out easily.

You could also store your home page in Azure blob storage, but that means users would have to have the full path to it as there's no server configuration to specify a default page. Publicizing your site endpoint via a vanity URL from bit.ly or the like could make that a non-issue though.

Do note though, that by having everything in blob storage, you're incurring a transaction cost for every image, every page, every script access (that's not cached on the browser that is). Depending on the nature of your site and traffic, it could be more cost-effective to leverage something like Windows Azure Web Site for some of this.

Jim O'Neil
  • 23,344
  • 7
  • 42
  • 67
  • I have only one html file and I will minify css/js to a total of 3 files in the application. I will use DNS to create user friendly URL. I suppose there is no reason for me to worry about hosting the application as Blob. Thanks Jim. – user1438047 Feb 27 '13 at 12:35