Microsoft Windows Azure Development Cookbook
eBook - ePub

Microsoft Windows Azure Development Cookbook

  1. 392 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Microsoft Windows Azure Development Cookbook

About this book

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.

Build advanced scalable cloud-based services with the Windows Azure platform

Approach

This cookbook offers practical, immediately usable task-based recipes covering a wide range of advanced development techniques for building highly scalable cloud-based services on the Windows Azure platform. It shows you how to improve these services and how to solve particular problems/scenarios when developing them on the Windows Azure platform.

The solutions are presented in a clear step-by-step manner and explained in great detail, which makes them good learning material for everyone who has experience of the Windows Azure platform and wants to improve.

The book is designed so that you can read it chapter by chapter or refer to recipes in no particular order.

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).

Trusted by 375,005 students

Access to over 1 million titles for a fair monthly price.

Study more efficiently using our study tools.

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 Win...

Table of contents

  1. Microsoft Windows Azure Development Cookbook

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription
No, books cannot be downloaded as external files, such as PDFs, for use outside of Perlego. However, you can download books within the Perlego app for offline reading on mobile or tablet. Learn how to download books offline
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 990+ topics, we’ve got you covered! Learn about our mission
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more about Read Aloud
Yes! You can use the Perlego app on both iOS and Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app
Yes, you can access Microsoft Windows Azure Development Cookbook by Neil Mackenzie in PDF and/or ePUB format, as well as other popular books in Computer Science & Entreprise Applications. We have over one million books available in our catalogue for you to explore.