Microsoft Azure Development Cookbook Second Edition

Book description

Over 70 advanced recipes for developing scalable services with the Microsoft Azure platform

In Detail

Beginning with the development of cloud services for Microsoft Azure, this practical Cookbook will show you the building blocks of Azure, focusing on why we should use one or the other, and when to use them appropriately. Even though reading the entire book will give you an advanced overview of the main blocks of the Azure platform, each chapter is self-contained. So, even an inexperienced reader could jump from one chapter to another without reading the entire book. Each chapter is organized into recipes - standalone units of practical tasks to complete that involve a specific feature/service of the platform.

This book tries to provide a comprehensive overview of the main aspects of the Azure platform from the point of view of a developer. Some building blocks such as virtual machines are deliberately avoided to focus on development tools, development libraries, and development strategies. This is a recipe-based book; expect to dirty your hands with code that is also outside the boundaries of the recipe, as you would do with food in a real recipe!

What You Will Learn

  • Deploy a web application and worker processes to a scalable infrastructure
  • Accelerate the life cycle of a web application without lock-in
  • Implement scalable solutions for storage data with Blobs
  • Develop a solution with a relational backend with SQL Database
  • Evaluate NoSQL alternatives with Azure Table Service
  • Implement messaging solutions with Queues, scaling, and decoupling systems
  • Automate management operations by developing components for the Azure Management API
  • Power up the existing infrastructure with in-memory storage with Azure Cache

Table of contents

  1. Microsoft Azure Development Cookbook Second Edition
    1. Table of Contents
    2. Microsoft Azure Development Cookbook Second Edition
    3. Credits
    4. About the Authors
    5. About the Reviewers
    6. www.PacktPub.com
      1. Support files, eBooks, discount offers, and more
        1. Why subscribe?
        2. Free access for Packt account holders
        3. Instant updates on new Packt books
    7. Preface
      1. What this book covers
      2. What you need for this book
      3. Who this book is for
      4. Conventions
      5. Reader feedback
      6. Customer support
        1. Downloading the example code
        2. Errata
        3. Piracy
        4. Questions
    8. 1. Developing Cloud Services for Microsoft Azure
      1. Introduction
      2. Setting up solutions and projects to work with Cloud Services
        1. Getting ready
        2. How to do it...
        3. How it works...
          1. There's more
          2. See also
      3. Debugging a Cloud Service locally with either Emulator or Emulator Express
        1. Getting ready
        2. How to do it…
        3. How it works…
        4. There's more…
        5. See also
      4. Publishing a Cloud Service with options from Visual Studio
        1. Getting ready
        2. How to do it…
        3. How it works…
        4. There's more…
        5. See also
      5. Debugging a Cloud Service remotely with Visual Studio
        1. Getting ready
        2. How to do it…
        3. How it works…
        4. There's more…
        5. See also
      6. Configuring the service model for a Cloud Service
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more…
        5. See also
      7. Providing a custom domain name for a Cloud Service
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      8. Implementing HTTPS in a web role
        1. How to do it...
        2. How it works...
        3. There's more...
          1. Using makecert to create a test certificate
      9. Using local storage in an instance
        1. How to do it...
        2. How it works...
        3. See also
      10. Hosting multiple websites in a web role
        1. How to do it...
        2. How it works...
        3. There's more...
        4. See also
      11. Using startup tasks in a Microsoft Azure role
        1. How to do it...
        2. How it works...
        3. There's more...
          1. Developing startup tasks
        4. See also
      12. Handling changes to the configuration and topology of a Cloud Service
        1. How to do it...
        2. How it works...
        3. There's more...
          1. Testing changes with the SDK command line
          2. Using LINQ with the RoleEnvironment API
        4. See also
      13. Managing upgrades and changes to a Cloud Service
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. See also
      14. Configuring diagnostics in Cloud Services
        1. Getting ready
        2. How to do it…
        3. How it works...
        4. There's more…
          1. Log directories
          2. Alerts
        5. See also
    9. 2. Deploying Quickly with Azure Websites
      1. Introduction
      2. Deploying a Website
        1. Getting ready
        2. How to do it…
        3. How it works...
        4. There's more…
          1. Azure Websites gallery
        5. See also
      3. Administering and monitoring a Website
        1. Getting ready
        2. How to do it…
        3. How it works...
        4. There's more…
          1. Edit in Visual Studio Online
          2. Traffic Manager
        5. See also
      4. Source versioning and continuous integration with Git and TFS
        1. Getting ready
        2. How to do it…
        3. How it works...
        4. There's more…
        5. See also
      5. Logging abstraction from .NET and PHP
        1. Getting ready
        2. How to do it…
        3. How it works...
        4. There's more…
        5. See also
      6. Deploying Java with Azure Websites
        1. Getting ready
        2. How to do it…
        3. How it works...
        4. There's more…
    10. 3. Getting Storage with Blobs in Azure
      1. Introduction
      2. Managing the Azure Storage service
        1. How to do it...
        2. How it works...
        3. There's more…
        4. See also
      3. Connecting to the Azure Storage service
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more…
        5. See also
      4. Connecting to the storage emulator
        1. How to do it...
        2. How it works...
        3. There's more...
          1. Protocol versions in Storage Emulator
        4. See also
      5. Managing access control for containers and blobs
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. See also
      6. Creating a shared access signature for a container or blob
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
        5. See also
      7. Using a container-level access policy
        1. Getting ready
        2. How to do it...
        3. How it works...
      8. Setting properties and metadata for a blob
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. See also
      9. Using blob directories
        1. Getting ready
        2. How to do it...
        3. How it works...
      10. Creating and using a blob snapshot
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. See also
      11. Creating and using the root container for blobs
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. See also
      12. Uploading blocks to a block blob
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more…
      13. Uploading a VHD into a page blob
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more…
        5. See also
      14. Downloading a blob asynchronously
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more…
        5. See also
      15. Using retry policies with blob operations
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
        5. See also
      16. Leasing a blob and implementing distributed locks
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
        5. See also
      17. Using the Azure Content Delivery Network (CDN)
        1. How to do it...
        2. How it works...
        3. See also
    11. 4. Going Relational with the Azure SQL Database
      1. Introduction
      2. Creating a SQL Database server and database
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more…
          1. Increasing the size of a database
        5. See also
      3. Managing SQL Database logins and firewall rules
        1. Getting ready
        2. How to do it…
        3. How it works…
        4. See also
      4. Developing a SQL Database with Visual Studio
        1. Getting ready
        2. How to do it…
        3. How it works…
        4. There's more…
        5. See also
      5. Connecting to a SQL Database with ADO.NET
        1. How to do it...
        2. How it works...
        3. There's more…
        4. See also
      6. Connecting to a SQL Database with Entity Framework
        1. Getting ready
        2. How to do it…
        3. How it works…
        4. See also
      7. Connecting to a SQL Database from PHP and Java
        1. Getting ready
        2. How to do it…
        3. How it works…
        4. See also
      8. Migrating a database to a SQL Database
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more…
        5. See also
      9. Leveraging backup solutions with SQL Database
        1. Getting ready
        2. How to do it…
        3. How it works…
        4. There's more…
          1. Deleted databases
          2. Automated Exports
        5. See also
      10. Monitoring SQL Database with the dynamic management views
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more…
        5. See also
      11. Handling connection failures to a SQL Database
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
        5. See also
    12. 5. Going NoSQL with Azure Tables
      1. Introduction
      2. Creating a table
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more…
        5. See also
      3. Inserting, updating, deleting, and querying data against the Table service
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more…
          1. Dealing with a custom context
          2. Choosing a good combination of PartitionKey and RowKey
        5. See also
      4. Using entity group transactions
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more…
        5. See also
      5. Using continuation tokens and server-side paging
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. See also
      6. Going inside continuation tokens and segmented queries
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more…
        5. See also
      7. Handling entity serialization events
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more…
          1. Legacy approach to custom serialization with Atom feeds
        5. See also
      8. Facilitating NoSQL with client-side projection
        1. Getting ready
        2. How to do it...
        3. How it works…
        4. There's more…
        5. See also
    13. 6. Messaging and Queues with the Storage and Service Bus
      1. Introduction
      2. Managing Azure Storage queues
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more…
          1. Nagle's algorithm
        5. See also
      3. Managing Azure Service Bus queues
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more…
        5. See also
      4. Adding messages to a Storage queue
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more…
        5. See also
      5. Adding messages to a Service Bus queue
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more…
          1. Detecting duplicates
        5. See also
      6. Receiving messages with Storage queues
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more…
          1. Poison messages
        5. See also
      7. Receiving messages with Service Bus queues
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more…
          1. Dead lettering
        5. See also
      8. Implementing publish/subscribe with Service Bus topics
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. See also
      9. Implementing relayed messaging with the Service Bus
        1. Getting ready
        2. How to do it...
        3. How it works…
        4. See also
      10. Communication between .NET and Java with the Service Bus and AMQP
        1. Getting ready
        2. How to do it…
        3. How it works…
        4. See also
    14. 7. Managing Azure Resources with the Azure Management Libraries
      1. Introduction
      2. Setting up the management client
        1. Getting ready
        2. How to do it…
        3. How it works...
        4. There's more…
        5. See also
      3. Managing the Storage service
        1. Getting ready
        2. How to do it…
        3. How it works...
        4. There's more…
        5. See also
      4. Deploying Cloud Services
        1. Getting ready
        2. How to do it…
        3. How it works...
        4. There's more…
        5. See also
      5. Inspecting and managing Cloud Services
        1. Getting ready
        2. How to do it…
        3. How it works...
        4. There's more…
        5. See also
      6. Managing and using the Azure Scheduler
        1. Getting ready
        2. How to do it…
        3. How it works...
        4. There's more…
        5. See also
      7. Monitoring and automating infrastructure operations
        1. Getting ready
        2. How to do it…
        3. How it works...
        4. There's more…
        5. See also
      8. Automating SQL Database operations
        1. Getting ready
        2. How to do it…
        3. How it works...
        4. There's more…
        5. See also
      9. Using Azure PowerShell
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more…
        5. See also
    15. 8. Going In-memory with Azure Cache
      1. Introduction
      2. Building a simple cache for applications
        1. Getting ready
        2. How to do it…
        3. How it works...
        4. There's more…
          1. ASP.NET Support
        5. See also
      3. Using local cache and notifications
        1. Getting ready
        2. How to do it…
        3. How it works...
        4. There's more…
        5. See also
      4. Diagnosing cache and optimizing performance
        1. Getting ready
        2. How to do it…
        3. How it works...
        4. There's more…
      5. Using advanced caching features
        1. Getting ready
        2. How to do it…
        3. How it works...
        4. There's more…
        5. See also
      6. Using Redis Cache in Azure
        1. Getting ready
        2. How to do it…
        3. How it works...
        4. There's more…
        5. See also
    16. Index

Product information

  • Title: Microsoft Azure Development Cookbook Second Edition
  • Author(s): Roberto Freato, Neil Mackenzie
  • Release date: September 2014
  • Publisher(s): Packt Publishing
  • ISBN: 9781782170327