concept runtime in category cloud

appears as: runtime
Azure in Action

This is an excerpt from Manning's book Azure in Action.

The service definition file defines what the roles and their communication endpoints are in your service. This includes public HTTP traffic for a website, or the endpoint details for a web service. You can also configure your service to use local storage (which is different from Azure storage) and any custom configuration elements of the service configuration file. The service definition can’t be changed at runtime; any change requires a new deployment of your service. Your service is restricted to using only the network endpoints and resources that are defined in this model. We’re going to look at the service definition file in depth in chapter 4; for now you can think of this piece of the configuration as defining what the infrastructure of your service is, and how the parts fit together.

The service configuration file, which we’ll discuss in detail in chapter 5, includes the entire configuration needed for the role instances in your service. Each role has its own dedicated part of the configuration. The contents of the configuration file can be changed at runtime, which removes the need to redeploy your application when some part of the role configuration changes. You can also access the configuration in code, similar to how you might read a web.config file in an ASP.NET application.

In the service configuration file, you can dynamically configure standard Windows Azure runtime settings (the number of role instances and the certificate thumbprint) and your own custom settings. Let’s see how you configure this information and how you can dynamically modify these settings at runtime.

5.2. Handling configuration at runtime

Congratulations! You understand the service configuration file and how to read those configuration settings. Now let’s modify these configuration settings at runtime and find out how to track changes when they occur.

Listing 18.1. Changing the configuration in a role at runtime