Microsoft Windows Azure Development Cookbook

Realize the full potential of Windows Azure with this superb Cookbook that has over 80 recipes for building advanced, scalable cloud-based services. Simply pick the solutions you need to answer your requirements immediately.

Microsoft Windows Azure Development Cookbook

Cookbook
Neil Mackenzie

Realize the full potential of Windows Azure with this superb Cookbook that has over 80 recipes for building advanced, scalable cloud-based services. Simply pick the solutions you need to answer your requirements immediately.
$10.00
$49.99
RRP $29.99
RRP $49.99
eBook
Print + eBook
$12.99 p/month

Get Access

Get Unlimited Access to every Packt eBook and Video course

Enjoy full and instant access to over 3000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

+ Collection
Free Sample

Book Details

ISBN 139781849682220
Paperback392 pages

About This Book

  • Packed with practical, hands-on cookbook recipes for building advanced, scalable cloud-based services on the Windows Azure platform explained in detail to maximize your learning
  • Extensive code samples showing how to use advanced features of Windows Azure blobs, tables and queues.
  • Understand remote management of Azure services using the Windows Azure Service Management REST API
  • Delve deep into Windows Azure Diagnostics
  • Master the Windows Azure AppFabric Service Bus and Access Control Service

Who This Book Is For

If you are an experienced Windows Azure developer or architect who wants to understand advanced development techniques when building highly scalable services using the Windows Azure platform, then this book is for you. You should have some exposure to Windows Azure and need basic understanding of Visual Studio, C#, SQL, .NET development, XML, and Web development concepts (HTTP, Services).

Table of Contents

Chapter 1: Controlling Access in the Windows Azure Platform
Introduction
Managing Windows Azure Storage Service access keys
Connecting to the Windows Azure Storage Service
Using SetConfigurationSettingPublisher()
Connecting to the storage emulator
Managing access control for containers and blobs
Creating a Shared Access Signature for a container or blob
Using a container-level access policy
Authenticating against the Windows Azure Service Management REST API
Authenticating with the Windows Azure AppFabric Caching Service
Chapter 2: Handling Blobs in Windows Azure
Introduction
Setting properties and metadata for a blob
Using blob directories
Creating and using a blob snapshot
Creating and using the root container for blobs
Uploading blocks to a block blob
Uploading a VHD into a page blob
Downloading a blob asynchronously
Optimizing blob uploads and downloads
Using retry policies with blob operations
Copying a blob with the Windows Azure Storage Service REST API
Leasing a blob using the Protocol classes in the Windows Azure Storage Client Library
Using the Windows Azure Content-Delivery Network (CDN)
Chapter 3: Going NoSQL with Windows Azure Tables
Introduction
Creating a table
Creating a data model and context for an entity
Using entity group transactions
Diagnosing problems when using the Table service
Handling concurrency with the Table service
Choosing a PartitionKey and RowKey for a table
Using continuation tokens and server-side paging
Performing asynchronous queries
Performing queries in parallel
Handling the WritingEntity and ReadingEntity events
Chapter 4: Disconnecting with Windows Azure Queues
Introduction
Managing Windows Azure queues
Adding messages to a queue
Retrieving messages from a queue
Storing large amounts of data for a message
Implementing a backoff when polling a queue
Identifying and handling poison messages
Chapter 5: Developing Hosted Services for Windows Azure
Introduction
Choosing the service model for a hosted service
Choosing which Windows Azure storage type to use
Configuring the service model for a hosted service
Hosting multiple websites in a web role
Providing a custom domain name for a hosted service
Implementing HTTPS in a web role
Sharing session state with the Windows Azure AppFabric Caching Service
Using local storage in an instance
Using startup tasks in a Windows Azure Role
Managing upgrades and changes to a hosted service
Handling changes to the configuration and topology of a hosted service
Using an Azure Drive in a hosted service
Using the Azure Drive simulation in thedevelopment environment
Using a VM Role
Using Windows Azure Connect
Consuming data from the Windows Azure MarketPlace DataMarket
Using Web Deploy with Windows Azure
Chapter 6: Digging into Windows Azure Diagnostics
Introduction
Initializing the configuration of Windows Azure Diagnostics
Using a configuration file with Windows Azure Diagnostics
Using the Windows Azure Diagnostics trace listener
Performing an on-demand transfer
Implementing custom logging
Accessing data persisted to Windows Azure Storage
Using the Windows Azure Platform PowerShell cmdlets to configure Windows Azure Diagnostics
Using IntelliTrace to diagnose problems with a hosted service
Chapter 7: Managing Hosted Services with the Service Management API
Introduction
Creating a Windows Azure hosted service
Deploying an application into a hosted service
Upgrading an application deployed to a hosted service
Retrieving the properties of a hosted service
Autoscaling with the Windows Azure Service Management REST API
Using the Windows Azure Platform PowerShell cmdlets
Chapter 8: Using SQL Azure
Introduction
Provisioning a SQL Azure Server
Creating a SQL Azure database
Migrating a database to SQL Azure
Measuring SQL Azure usage
Connecting to SQL Azure with ADO.NET
Handling connection failures to SQL Azure
Scaling out SQL Azure into the Windows Azure Blob Service
Chapter 9: Looking at the Windows Azure AppFabric
Introduction
Creating a namespace for the Windows Azure AppFabric
Using the Service Bus as a relay service
Using Service Bus events
Using a Service Bus message buffer
Using the Windows Azure AppFabric Caching service

What You Will Learn

  • Develop highly scalable services for Windows Azure
  • Handle authentication and authorization in the Windows Azure platform
  • Use advanced features of the Windows Azure Storage Services: blobs, tables, and queues
  • Attach Azure Drives to a role instance
  • Diagnose problems using Windows Azure Diagnostics
  • Perform remote management of Azure services with the Windows Azure Service Management REST API
  • Expose services through the Windows Azure AppFabric Service Bus
  • Learn how to autoscale a Windows Azure hosted service
  • Use cloud-based databases with SQL Azure
  • Improve service performance with the Windows Azure AppFabric Caching Service
  • Understand the latest features – including VM roles, Windows Azure Connect and startup tasks

In Detail

The Windows Azure platform is Microsoft's Platform-as-a-Service environment for hosting services and data in the cloud. It provides developers with on-demand computing, storage, and service connectivity capabilities that facilitate the hosting of highly scalable services in Windows Azure datacenters across the globe.

This practical cookbook will show you advanced development techniques for building highly scalable cloud-based services using the Windows Azure platform. It contains over 80 practical, task-based, and immediately usable recipes covering a wide range of advanced development techniques for building highly scalable services to solve particular problems/scenarios when developing these services on the Windows Azure platform.

Packed with reusable, real-world recipes, the book starts by explaining the various access control mechanisms used in the Windows Azure platform. Next you will see the advanced features of Windows Azure Blob storage, Windows Azure Table storage, and Windows Azure Queues. The book then dives deep into topics such as developing Windows Azure hosted services, using Windows Azure Diagnostics, managing hosted services with the Service Management API, using SQL Azure and the Windows Azure AppFabric Service Bus. You will see how to use several of the latest features such as VM roles, Windows Azure Connect, startup tasks, and the Windows Azure AppFabric Caching Service.

Authors

Table of Contents

Chapter 1: Controlling Access in the Windows Azure Platform
Introduction
Managing Windows Azure Storage Service access keys
Connecting to the Windows Azure Storage Service
Using SetConfigurationSettingPublisher()
Connecting to the storage emulator
Managing access control for containers and blobs
Creating a Shared Access Signature for a container or blob
Using a container-level access policy
Authenticating against the Windows Azure Service Management REST API
Authenticating with the Windows Azure AppFabric Caching Service
Chapter 2: Handling Blobs in Windows Azure
Introduction
Setting properties and metadata for a blob
Using blob directories
Creating and using a blob snapshot
Creating and using the root container for blobs
Uploading blocks to a block blob
Uploading a VHD into a page blob
Downloading a blob asynchronously
Optimizing blob uploads and downloads
Using retry policies with blob operations
Copying a blob with the Windows Azure Storage Service REST API
Leasing a blob using the Protocol classes in the Windows Azure Storage Client Library
Using the Windows Azure Content-Delivery Network (CDN)
Chapter 3: Going NoSQL with Windows Azure Tables
Introduction
Creating a table
Creating a data model and context for an entity
Using entity group transactions
Diagnosing problems when using the Table service
Handling concurrency with the Table service
Choosing a PartitionKey and RowKey for a table
Using continuation tokens and server-side paging
Performing asynchronous queries
Performing queries in parallel
Handling the WritingEntity and ReadingEntity events
Chapter 4: Disconnecting with Windows Azure Queues
Introduction
Managing Windows Azure queues
Adding messages to a queue
Retrieving messages from a queue
Storing large amounts of data for a message
Implementing a backoff when polling a queue
Identifying and handling poison messages
Chapter 5: Developing Hosted Services for Windows Azure
Introduction
Choosing the service model for a hosted service
Choosing which Windows Azure storage type to use
Configuring the service model for a hosted service
Hosting multiple websites in a web role
Providing a custom domain name for a hosted service
Implementing HTTPS in a web role
Sharing session state with the Windows Azure AppFabric Caching Service
Using local storage in an instance
Using startup tasks in a Windows Azure Role
Managing upgrades and changes to a hosted service
Handling changes to the configuration and topology of a hosted service
Using an Azure Drive in a hosted service
Using the Azure Drive simulation in thedevelopment environment
Using a VM Role
Using Windows Azure Connect
Consuming data from the Windows Azure MarketPlace DataMarket
Using Web Deploy with Windows Azure
Chapter 6: Digging into Windows Azure Diagnostics
Introduction
Initializing the configuration of Windows Azure Diagnostics
Using a configuration file with Windows Azure Diagnostics
Using the Windows Azure Diagnostics trace listener
Performing an on-demand transfer
Implementing custom logging
Accessing data persisted to Windows Azure Storage
Using the Windows Azure Platform PowerShell cmdlets to configure Windows Azure Diagnostics
Using IntelliTrace to diagnose problems with a hosted service
Chapter 7: Managing Hosted Services with the Service Management API
Introduction
Creating a Windows Azure hosted service
Deploying an application into a hosted service
Upgrading an application deployed to a hosted service
Retrieving the properties of a hosted service
Autoscaling with the Windows Azure Service Management REST API
Using the Windows Azure Platform PowerShell cmdlets
Chapter 8: Using SQL Azure
Introduction
Provisioning a SQL Azure Server
Creating a SQL Azure database
Migrating a database to SQL Azure
Measuring SQL Azure usage
Connecting to SQL Azure with ADO.NET
Handling connection failures to SQL Azure
Scaling out SQL Azure into the Windows Azure Blob Service
Chapter 9: Looking at the Windows Azure AppFabric
Introduction
Creating a namespace for the Windows Azure AppFabric
Using the Service Bus as a relay service
Using Service Bus events
Using a Service Bus message buffer
Using the Windows Azure AppFabric Caching service

Book Details

ISBN 139781849682220
Paperback392 pages
Read More