Cloud Computing with the Windows Azure Platform
Total Page:16
File Type:pdf, Size:1020Kb
Cloud Computing with the Windows® Azure™ Platform Introduction . xxi Part I: Introducing the Windows Azure Platform Chapter 1: Surveying the Role of Cloud Computing . 3 Chapter 2: Understanding Windows Azure Platform Architecture . 19 Chapter 3: Analyzing the Windows Azure Operating System. 49 Chapter 4: Scaling Azure Table and Blob Storage . 63 Part II: Taking Advantage of Cloud Services in the Enterprise Chapter 5: Minimizing Risk When Moving to Azure Cloud Services . 115 Chapter 6: Authenticating and Authorizing Service Users . 151 Chapter 7: Optimizing the Scalability and Performance of Azure Tables . 187 Chapter 8: Messaging with Azure Queues . 209 Part III: Tackling Advanced Azure Services Techniques Chapter 9: Authenticating Users with .NET Access Control Services . 239 Chapter 10: Interconnecting Services with the .NET Service Bus. 273 Chapter 11: Exploring .NET Service Bus Queues and Routers . 295 Part IV: Working with SQL Azure Services (Online Only) Chapter 12: Managing SQL Azure Accounts, Databases, and DataHubs Chapter 13: Exploiting SQL Azure Database’s Relational Features Index....................................................................313 Cloud Computing with the Windows® Azure™ Platform Cloud Computing with the Windows® Azure™ Platform Roger Jennings Wiley Publishing, Inc. Cloud Computing with the Windows® Azure™ Platform Published by Wiley Publishing, Inc. 10475 Crosspoint Boulevard Indianapolis, IN 46256 www.wiley.com Copyright © 2009 by Wiley Publishing, Inc., Indianapolis, Indiana ISBN: 978-0-470-50638-7 Manufactured in the United States of America 10987654321 No part of this publication may be reproduced, stored in a retrieval system or transmitted in any form or by any means, electronic, mechanical, photocopying, recording, scanning or otherwise, except as permitted under Sections 107 or 108 of the 1976 United States Copyright Act, without either the prior written permission of the Publisher, or authorization through payment of the appropriate per-copy fee to the Copyright Clearance Center, 222 Rosewood Drive, Danvers, MA 01923, (978) 750-8400, fax (978) 646-8600. Requests to the Publisher for permission should be addressed to the Permissions Department, John Wiley & Sons, Inc., 111 River Street, Hoboken, NJ 07030, (201) 748-6011, fax (201) 748-6008, or online at http://www.wiley.com/go/permissions. Limit of Liability/Disclaimer of Warranty: The publisher and the author make no representations or warranties with respect to the accuracy or completeness of the contents of this work and specifically disclaim all warranties, including without limitation warranties of fitness for a particular purpose. No warranty may be created or extended by sales or promotional materials. The advice and strategies contained herein may not be suitable for every situation. This work is sold with the understanding that the publisher is not engaged in rendering legal, accounting, or other professional services. If professional assistance is required, the services of a competent professional person should be sought. Neither the publisher nor the author shall be liable for damages arising herefrom. The fact that an organization or Web site is referred to in this work as a citation and/or a potential source of further information does not mean that the author or the publisher endorses the information the organization or Web site may provide or recommendations it may make. Further, readers should be aware that Internet Web sites listed in this work may have changed or disappeared between when this work was written and when it is read. For general information on our other products and services please contact our Customer Care Department within the United States at (877) 762-2974, outside the United States at (317) 572-3993 or fax (317) 572-4002. Wiley also publishes its books in a variety of electronic formats. Some content that appears in print may not be available in electronic books. Library of Congress Control Number: 2009933376 Trademarks: Wiley, the Wiley logo, Wrox, the Wrox logo, Wrox Programmer to Programmer, and related trade dress are trademarks or registered trademarks of John Wiley & Sons, Inc. and/or its affiliates, in the United States and other countries, and may not be used without written permission. Microsoft and Azure are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. All other trademarks are the property of their respective owners. Wiley Publishing, Inc. is not associated with any product or vendor mentioned in this book. This book is dedicated to my wife, Alexandra. Looking forward to our twenty-fifth wedding anniversary. About the Author Roger Jennings is an author and consultant specializing in Microsoft .NET n-tier database applications and data-intensive Windows Communication Foundation (WCF) Web services with SQL Server. He’s been a beta tester for most versions of Visual Basic, starting with the Professional Extensions for Visual Basic 2.0 (code-named Rawhide), SQL Server since version 4.21, and all versions of Visual Studio. More than 1.25 million English copies of Roger’s 26 computer- related books are in print, and they have been translated into more than 20 languages. He’s the author of Professional ADO.NET 3.5 with LINQ and the Entity Framework and Expert One-on-One Visual Basic 2005 Database Programming for Wiley/Wrox, three editions of Database Developer’s Guide to Visual Basic (SAMS Publishing), two editions of Access Developer’s Guide (SAMS), 11 editions of Special Edition Using Microsoft Access (QUE Publishing), and two editions of Special Edition Using Windows NT 4.0 Server (QUE). He’s also written developer-oriented books about Windows 3.1 multimedia, Windows 95, and Windows 2000 Server for QUE; Active Directory Group Policy and Visual Basic web services for Osborne McGraw-Hill; and Microsoft Office InfoPath 2003 SP-1 for Microsoft Press. Roger has been a contributing editor of Redmond Media Group’s Visual Studio Magazine and its predecessor, Fawcette Technical Publications’ Visual Basic Programmer’s Journal, for more than 15 years. His articles also appear in Redmond Magazine and he writes ‘‘TechBriefs’’ and cover stories for Redmond Developer News. Roger has more than 30 years of computer-related experience, beginning with real-time medical data acquisition and chemical process control systems driven by Wang 700 calculators and later Wang BASIC microcomputers. He’s the principal developer for OakLeaf Systems, a Northern California software consulting firm and author of the OakLeaf Systems blog (http://oakleafblog.blogspot.com). His OakLeaf Code of Federal Regulations (CFR) ASP.NET Web service demonstration won the charter Microsoft .NET Best Award for Horizontal Solutions (http://bit.ly/Balng, www.microsoft .com/presspass/features/2002/aug02/08-07netwinners.mspx). Credits Executive Editor Vice President and Executive Bob Elliott Group Publisher Richard Swadley Project Editor Adaobi Obi Tulton Vice President and Executive Publisher Technical Editors Barry Pruett Mike Amundsen David Robinson Associate Publisher Jim Minatel Production Editor Daniel Scribner Project Coordinator, Cover Copy Editor Lynsey Stanford Paula Lowell Proofreader Editorial Director Nancy C. Hanger, Windhaven Robyn B. Siesky Indexer Editorial Manager Robert Swanson Mary Beth Wakefield Production Manager Cover Image Tim Tate © Jupiter Images/Digital Vision Acknowledgments Many thanks to technical editors Dave Robinson and Mike Amundsen for corrections and suggestions as the chapters passed through numerous Community Technical Previews and SQL Azure Database’s mid-course correction. David Robinson is a Senior Program Manager on the SQL Azure Database (SADB) team. David is responsible for a multitude of things including driving product features, code samples, and most importantly demonstrating to customers the value that SADB and cloud computing provides. David enjoys getting out in the community, presenting on SADB, gathering feedback, and helping to ensure SADB meets whatever demands you throw at it. David has also written for MSDN magazine on developing solutions against SADB. Before joining the SADB team, David was a Solutions Architect on Microsoft’s Health and Life Sciences team. Before joining Microsoft, David held various senior positions with a variety of software and consulting companies. David got his start as a developer at Computer Associates in the early ‘90s. When not working, David enjoys spending time with his wife and helping her corral their four young daughters. David blogs at http://bit.ly/qIT1S, http://blogs.msdn.com/drobinson/default.aspx. Mike Amundsen is an internationally known author and lecturer who travels throughout the United States and Europe speaking about and teaching a wide range of topics including .NET, the Internet, team development, and other subjects. He has more than a dozen books to his credit; his most popular titles are Teach Yourself Database Programming with Visual Basic in 21 Days, Using Visual InterDev,andASP.NET for Developers. When he’s not traveling, Mike spends his time with his wife and three children at their home in Kentucky. Mike and Subbu Allamaraju are writing the RESTful Web Services Cookbook to be published by O’Reilly Media at the end of 2009. Mike’s mca blog is at www.amundsen.com/blog/. Wrox Executive Editor Bob Elliott convinced me to start writing .NET developer books for Wiley/Wrox. Adaobi Obi Tulton, project editor for this and my two earlier Wiley/Wrox titles, made sure that chapters didn’t