Microsoft Azure Web Role

I have hosted my website in microsoft azure web role. My website works like application and service. Each time user approaches the site, request goes to the service, finishes its database related queries and return backs to application part. Since it has two ways, i have used web roles for both application and service.

  1. If the number of users reaches maximum, an instance is created in web role, what would happen to my service side since it involves database related things.
  2. Everytime when the instance is created, would database be created along with that?
  3. In my case, i would like to see everytime instance is created, no duplicate database should be created. Is it possible? If its possible, do deadlock occurs in that case?
  4. Is it possible to host a application and service both in same web role. If so, i would like to see only database should be created each instance is created.

Please provide a clear solution on this.

-------------Problems Reply------------

Assuming that the application and service are running under two separate cloud services:

  1. Your Application and Service roles are configured to scale independently.
  2. Assuming your are using an Azure SQL Database, it would also be scaled independently of the cloud service.
  3. No duplicate database would be created - Azure SQL databases would again be scaled independently of the cloud services.
  4. If your Application is, say, an ASP.NET MVC application, and your service is a WebAPI, they could both be hosted under the same cloud service (they'd be in the same web application)

How your Service application would behave in a scaled scenario will really depend on how it's been implemented.

I think you have a misunderstanding about how scaling works with Azure.

Check here for some additional detail: How to Scale a Cloud Service

As an aside, you may want to consider Azure Web App instead of a Cloud Service. Whilst they offer less control that a cloud service, unless you are doing something specific that an Azure Web App can't offer, they are easier to deal with.

Category:c# Views:3 Time:2018-09-07
Tags:

Related post

  • Why Azure Web Role by default runs in the Full Trust? 2010-01-10

    When I create an Azure ASP.NET application, by default .NET trust level is Full trust. I always change it to Windows Azure partial trust which is similar to ASP.NET's medium trust level. You can do it either by using GUI when you select Properties on

  • Unable to commit WebAdministration changes in Azure Web Role 2010-12-21

    I have an Azure Web Role running in the new 1.3 SDK and I am having permissions issues when trying to make changes to IIS using the Microsoft.Web.Administration.ServerManager. Whenever I execute CommitChanges() it throws an UnauthorizedAccessExceptio

  • Is it possible to run SQL Express within a Azure Web Role? 2011-03-13

    I am working on a project which uses a relational database (SQL Server 2008). The local (on-premises) application both reads and writes to the database. I am working on a different front end for Azure (MVC2 Web Role), which will use the same data, bu

  • How does it happen Azure web role entry point and .aspx page handler are run in different processes? 2011-06-01

    I'm playing with this Azure web role sample. It contains a class derived from RoleEntryPoint and a .aspx page that contains a button click handler. I test it in Azure Emulator. I put the following code (taken from here) string userName = System.Secur

  • How do I deploy a Web Site (NOT a Web Application) to Azure through Azure Web Role Accelerator? 2012-02-22

    I have two VS 2010 projects. The 1st is an existing WEB Site while the 2nd is Web project. Should I select b) and ask for Publish I do have the option for Web Deploy to an Azure Web Role Accelerator service and it works fine. But, I am not able to do

  • Azure Web Role stuck initializing 2012-04-20

    edit: I figured it out. Well almost :) I fixed this issue, but I found another one. Documenting the solution here. I have an MVC web role I am trying to deploy to Azure. It keeps bouncing from Starting > Initializing. I have done my research, and

  • Semantic Logging Application Block on Azure web role 2014-08-20

    I am planning use Semantic Logging Application Block in Web API hosted on Azure Web Role. I am planning to extend event source and create few event sources of mine. I want to make sure that this component SLAB + Custom Event Source works properly on

  • Virtual Directory in Azure Web Role 2009-08-07

    Is there a way to create a Virtual Directory in Azure web role. I know you can create them programmaticly on a normal instance of IIS 7, but you have to assign a physical path. How is that possible in Azure? --------------Solutions------------- Edit

  • Workflow in Azure web role 2010-05-03

    Has anybody experience running WF based Workflow instances in the Azure web role? Could you please share your experiences. --------------Solutions------------- Workflow was removed from Azure's .NET Services (now called AppFabric) in July 2009. You c

  • HTTP Compression of JSON Data on Windows Azure Web Role 2011-02-17

    I've got compression propperly configured for my Azure web role. Both .aspx pages and static pages like *.css are being compressed correctly. <urlCompression doStaticCompression="true" doDynamicCompression="true" dynamicCompressionBeforeCache="tru

  • How to have Azure web role application pool start under right user from the beginning? 2011-06-30

    I need the application pool in my Azure web role to run under a specific user. There's this code that restarts the application pool - I run it from OnStart() in my RoleEntryPoint descendant and it works fine. However restarting is not so good - the p

  • Keep single Web Application Project as Standard .NET Web App Project and Azure Web Role 2011-07-15

    I'm about to build an Azure web role application, I have done a couple of labs on Azure but naturally feel a lot more comfortable building standard websites that run under IIS. If I do all my coding, testing, preliminary demos on my web application u

  • Communication between 2 web apps running in a azure web role instance 2011-08-12

    I have 2 web applications running in a web role and I only run single instance in the azure cloud. I would like to send and receive notifications between these 2 applications and any outsider should not have access to them. That means, web service in

  • Debug Azure web role integrated with ACS from Android emulator web application 2011-08-30

    I am trying to access a web role integrated with ACS from the Android emulator , the issue is that during web role debug configuration , the ACS redirects back to "localhost" and not to a real URL. Android emulator local computer localhost address is

  • How do I configure the locale and language of Azure Web Role? 2011-12-19

    How do I configure Azure Web Role to have United Kingdom (as opposed to US) as it's language/regional settings etc for all accounts? I believe I can RDP in and change it. However I want to set it to default on creation of the web role. It is making a

  • How does Azure web role happen to run without an entry point? 2012-02-07

    Out of curiosity I opened my Azure web role project, navigated to the file that contained the RoleEntryPoint descendant class and completely removed that class definition. Then I packaged the role and deployed it in Azure - the role started without a

  • Restore Azure Web Role website? 2012-02-15

    I published a Azure Web Role from Visual Studio and something went wrong. I think my workstation settings are wrong. Is there a way to restore an Azure website if a deployment goes wrong? --------------Solutions------------- When you upgrade your Azu

  • Azure Web role with Multiple services 2012-02-19

    I have a Azure web role WCF service deployed that has 3 services in it. However, when I try to get add service references for the 3 services in my client app, only 1 service gets the populated correctly. There are no interfaces accessible for the oth

  • Azure web role with two sites, cannot bind to two different endpoints 2012-02-22

    Inside a single azure web role, I have two endpoints. I have two sites, each one binding to different endpoints. Like this: <WebRole name="MyWebRole"> <Endpoints> <InputEndpoint name ="HttpIn" protocol="http" port="80"/> <InputEn

  • Azure web role trouble accessing external web service 2012-02-28

    I have an Azure web role that accesses an external WCF based SOAP web service (port 80) for various bits of data. The response from this service is highly erratic. I routinely get the following error. There was no endpoint listening at http://www.mye

  • Run executable from local storage using Azure Web Role 2012-03-06

    i'm trying to run a simple executable using an Azure Web Role. The executable is stored in the Web Role's local storage. The executable produces a log.txt file once it has been run. This is the method I am using to run the executable: public void Run

  • Is it possible to restart IIS on a Azure web role without restarting the process? 2012-03-16

    I have a site running on an Azure web role and I can force restart the application by modifying the web.config but if I want to restart IIS I have been told that I should never do this manually via remote desktop and that instead I should restart the

  • is it possible to download dump file from an azure web role instance 2015-03-10

    I am trying to identify what is causing high CPU usage on a azure web role. So, I RDPed on to my azure web role instance and created a memory dump during prolonged period of high CPU, like shown below Is there a way to download the memory dump file t

  • Error configuring Remote Desktop for an Azure Web Role 2015-09-28

    We have and old Windows Azure Web Role solution that was using SDK 1.4. Since this SDK is now deprecated, we needed to upgrade it and used Visual Studio 2012 to open and upgrade the old VS2010 solution. It upgraded fine (to SDK 1.8). When trying to c

  • Cannot convert existing ASP.NET MVC 2 solution to Azure Web Role in Visual Studio 2010 2010-06-30

    I've been working on an ASP.NET MVC 2 (.NET 4.0, Visual Studio 2010) application for a while and have decided that I would like to deploy it as an Azure application. After installing the latest (June 2010) Azure tools (through Visual Studio itself) I

Copyright (C) dskims.com, All Rights Reserved.

processed in 0.173 (s). 11 q(s)