
Microsoft Windows Azure Development Cookbook
Description
Alles über E-Books | Antworten auf Fragen rund um E-Books, Kopierschutz und Dateiformate finden Sie in unserem Info- & Hilfebereich.
- 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
Book DescriptionThe 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.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
Who this book is forIf 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).
All prices
More details
Other editions
Additional editions

Person
Neil Mackenzie has worked with computers for nearly 3 decades. He started his computer career doing large-scale numerical simulations for scientific research and business planning. Since then, he has primarily been involved in healthcare software and developing electronic medical record systems. He has been using Microsoft Azure since PDC 2008 and has used nearly all parts of the Microsoft Azure platform, including those parts that no longer exist. Neil is very active in the online Microsoft Azure community, contributing to the MSDN Microsoft Azure forums in particular. He is a Microsoft MVP for Microsoft Azure.
Content
- Intro
- Microsoft Windows Azure Development Cookbook
- Table of Contents
- Microsoft Windows Azure Development Cookbook
- Credits
- About the Author
- About the Reviewers
- www.PacktPub.com
- Support files, eBooks, discount offers and more
- Why subscribe?
- Free access for Packt account holders
- Instant Updates on New Packt Books
- Preface
- What this book covers
- What you need for this book
- Who this book is for
- Conventions
- Reader feedback
- Customer support
- Downloading the example code for this book
- Errata
- Piracy
- Questions
- 1. Controlling Access in the Windows Azure Platform
- Introduction
- Managing Windows Azure Storage Service access keys
- Getting ready
- How to do it...
- How it works...
- Connecting to the Windows Azure Storage Service
- Getting ready
- How to do it...
- How it works...
- Using SetConfigurationSettingPublisher()
- How to do it...
- How it works...
- Connecting to the storage emulator
- Getting ready
- How to do it...
- How it works...
- There's more...
- Managing access control for containers and blobs
- Getting ready
- How to do it...
- How it works...
- See also
- Creating a Shared Access Signature for a container or blob
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Using a container-level access policy
- Getting ready
- How to do it...
- How it works...
- Authenticating against the Windows Azure Service Management REST API
- How to do it...
- How it works...
- There's more...
- Authenticating with the Windows Azure AppFabric Caching Service
- Getting ready
- How to do it...
- How it works...
- 2. Handling Blobs in Windows Azure
- Introduction
- Setting properties and metadata for a blob
- How to do it...
- How it works...
- Using blob directories
- How to do it...
- How it works...
- Creating and using a blob snapshot
- How to do it...
- How it works...
- CloudDrive.Snapshot()
- Creating and using the root container for blobs
- Getting ready
- How to do it...
- How it works...
- See also
- Uploading blocks to a block blob
- How to do it...
- How it works...
- See also
- Uploading a VHD into a page blob
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Downloading a blob asynchronously
- How to do it...
- How it works...
- Optimizing blob uploads and downloads
- How to do it...
- How it works...
- There's more...
- See also
- Using retry policies with blob operations
- How to do it...
- How it works...
- There's more...
- Transient Fault Handling Framework
- Copying a blob with the Windows Azure Storage Service REST API
- How to do it...
- How it works...
- There's more...
- Using the REST API with the Queue service and Table service
- See also
- Leasing a blob using the Protocol classes in the Windows Azure Storage Client Library
- How to do it...
- How it works...
- There's more...
- Using a blob lease as a singleton ticket
- See also
- Using the Windows Azure Content-Delivery Network (CDN)
- How to do it...
- How it works...
- There's more...
- 3. Going NoSQL with Windows Azure Tables
- Introduction
- Creating a table
- How to do it...
- How it works...
- Creating a data model and context for an entity
- How to do it...
- How it works...
- TableServiceEntity class
- See also
- Using entity group transactions
- Getting ready
- How to do it...
- How it works...
- See also
- Diagnosing problems when using the Table service
- How to do it...
- How it works...
- There's more...
- Handling concurrency with the Table service
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Choosing a PartitionKey and RowKey for a table
- How to do it...
- How it works...
- Using continuation tokens and server-side paging
- Getting ready
- How to do it...
- How it works...
- See also
- Performing asynchronous queries
- Getting ready
- How to do it...
- How it works...
- See also
- Performing queries in parallel
- Getting ready
- How to do it...
- How it works...
- See also
- Handling the WritingEntity and ReadingEntity events
- How to do it...
- How it works...
- See also
- 4. Disconnecting with Windows Azure Queues
- Introduction
- Managing Windows Azure queues
- How to do it...
- How it works...
- Adding messages to a queue
- How to do it...
- How it works...
- Retrieving messages from a queue
- How to do it...
- How it works...
- Storing large amounts of data for a message
- How to do it...
- How it works...
- Implementing a backoff when polling a queue
- How to do it...
- How it works...
- Identifying and handling poison messages
- How to do it...
- How it works...
- 5. Developing Hosted Services for Windows Azure
- Introduction
- Choosing the service model for a hosted service
- How to do it...
- How it works...
- Choosing which Windows Azure storage type to use
- How to do it...
- How it works...
- Configuring the service model for a hosted service
- Getting ready
- How to do it...
- How it works...
- There's more...
- Handling upgrades and configuration changes
- Storing Configuration in Azure storage
- Hosting multiple websites in a web role
- How to do it...
- How it works...
- There's more...
- Providing a custom domain name for a hosted service
- Getting ready
- How to do it...
- How it works...
- There's more...
- Using the hosts file to map domains
- Implementing HTTPS in a web role
- How to do it...
- How it works...
- There's more...
- Using makecert to create a test certificate
- Sharing session state with the Windows Azure AppFabric Caching Service
- How to do it...
- How it works...
- There's more...
- See also
- Using local storage in an instance
- How to do it...
- How it works...
- See also
- Using startup tasks in a Windows Azure Role
- How to do it...
- How it works...
- There's more...
- Developing startup tasks
- Managing upgrades and changes to a hosted service
- Getting ready
- How to do it...
- How it works...
- There's more...
- Using PowerShell cmdlets to upgrade a hosted service
- Changing the number of endpoints in a hosted service
- Version issue when performing in-place upgrades
- Limitations on in-place upgrades
- Handling changes to the configuration and topology of a hosted service
- How to do it...
- How it works...
- There's more...
- Using an Azure Drive in a hosted service
- How to do it...
- How it works...
- See also
- Using the Azure Drive simulation in thedevelopment environment
- Getting ready
- How to do it...
- How it works...
- Using a VM Role
- How to do it...
- How it works...
- Differencing disks
- See also
- Using Windows Azure Connect
- Getting ready
- How to do it...
- How it works...
- Windows Azure AppFabric Service Bus
- Moving connection to another WindowsAzure subscription
- Consuming data from the Windows Azure MarketPlace DataMarket
- How to do it...
- How it works...
- Using Web Deploy with Windows Azure
- Getting ready
- How to do it...
- How it works...
- 6. Digging into Windows Azure Diagnostics
- Introduction
- Initializing the configuration of Windows Azure Diagnostics
- How to do it...
- How it works...
- There's more...
- Configuring the Event Log data buffer
- Configuring the performance counter data buffer
- Using a configuration file with Windows Azure Diagnostics
- How to do it...
- How it works...
- There's more...
- Using the Windows Azure Diagnostics trace listener
- How to do it...
- How it works...
- There's more...
- See also
- Performing an on-demand transfer
- How to do it...
- How it works...
- Implementing custom logging
- How to do it...
- How it works...
- Accessing data persisted to Windows Azure Storage
- How to do it...
- How it works...
- Using the Windows Azure Platform PowerShell cmdlets to configure Windows Azure Diagnostics
- Getting ready
- How to do it...
- How it works...
- Azure Management cmdlets
- Using IntelliTrace to diagnose problems with a hosted service
- Getting ready
- How to do it...
- How it works...
- 7. Managing Hosted Services with the Service Management API
- Introduction
- Creating a Windows Azure hosted service
- Getting ready
- How it works...
- How to do it...
- How it works...
- There's more...
- Locations and affinity groups
- Deploying an application into a hosted service
- How to do it...
- How it works...
- There's more...
- Upgrading an application deployed to a hosted service
- How to do it...
- How it works...
- Retrieving the properties of a hosted service
- How to do it...
- How it works...
- There's more...
- See also
- Autoscaling with the Windows Azure Service Management REST API
- Getting ready
- How to do it...
- How it works...
- Using the Windows Azure Platform PowerShell cmdlets
- Getting ready
- How to do it...
- How it works...
- There's more...
- Azure Management cmdlets
- 8. Using SQL Azure
- Introduction
- Provisioning a SQL Azure Server
- How to do it...
- How it works...
- Creating a SQL Azure database
- How to do it...
- How it works...
- There's more...
- Copying a database
- Increasing the size of a database
- Migrating a database to SQL Azure
- Getting ready
- How to do it...
- How it works...
- Measuring SQL Azure usage
- How to do it...
- How it works...
- Connecting to SQL Azure with ADO.NET
- How to do it...
- How it works...
- Handling connection failures to SQL Azure
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Scaling out SQL Azure into the Windows Azure Blob Service
- How to do it...
- How it works...
- There's more...
- 9. Looking at the Windows Azure AppFabric
- Introduction
- Creating a namespace for the Windows Azure AppFabric
- How to do it...
- How it works...
- There's more...
- Using the Service Bus as a relay service
- Getting ready
- How to do it...
- How it works...
- There's more...
- Using Service Bus events
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Using a Service Bus message buffer
- Getting ready
- How to do it...
- How it works...
- There's more...
- Using the Windows Azure AppFabric Caching service
- Getting ready
- How to do it...
- How it works...
- There's more...
- Using a configuration file to configure the Caching service
- Session-state provider and output-cache provider
- Index
System requirements
File format: ePUB
Copy protection: Adobe-DRM (Digital Rights Management)
System requirements:
- Computer (Windows; MacOS X; Linux): Install the free reader Adobe Digital Editions prior to download (see eBook Help).
- Tablet/smartphone (Android; iOS): Install the free app Adobe Digital Editions or the app PocketBook before downloading (see eBook Help).
- E-reader: Bookeen, Kobo, Pocketbook, Sony, Tolino and many more (not Kindle).
The file format ePub works well for novels and non-fiction books – i.e., „flowing” text without complex layout. On an e-reader or smartphone, line and page breaks automatically adjust to fit the small displays.
This eBook uses Adobe-DRM, a „hard” copy protection. If the necessary requirements are not met, unfortunately you will not be able to open the eBook. You will therefore need to prepare your reading hardware before downloading.
Please note: We strongly recommend that you authorise using your personal Adobe ID after installation of any reading software.
For more information, see our ebook Help page.
File format: PDF
Copy-Protection: Adobe-DRM (Digital Rights Management)
System requirements:
- Computer (Windows; MacOS X; Linux): Install the free reader Adobe Digital Editions prior to download (see eBook Help).
- Tablet/smartphone (Android; iOS): Install the free app Adobe Digital Editions or the app PocketBook before downloading (see eBook Help).
- E-reader: Bookeen, Kobo, Pocketbook, Sony, Tolino and many more (only limited: Kindle).
The file format PDF always displays a book page identically on any hardware. This makes PDF suitable for complex layouts such as those used in textbooks and reference books (images, tables, columns, footnotes). Unfortunately, on the small screens of e-readers or smartphones, PDFs are rather annoying, requiring too much scrolling.
This eBook uses Adobe-DRM, a „hard” copy protection. If the necessary requirements are not met, unfortunately you will not be able to open the eBook. You will therefore need to prepare your reading hardware before downloading.
Please note: We strongly recommend that you authorise using your personal Adobe ID after installation of any reading software.
For more information, see our eBook Help page.