Windows Azure Storage Name Title Organization.

  • Published on

  • View

  • Download


Slide 1Windows Azure Storage Name Title Organization Slide 2 Slide 3 Slide 4 US Europe Asia Can choose geo-location to host storage account: Slide 5 Slide 6 Slide 7 Slide 8 Slide 9 Slide 10 Slide 11 Slide 12 Blob Storage Slide 13 BlobContainerAccount / Pages/ Blocks contoso PIC01.JPG Block/Page PIC02.JPG images VID1.AVIvideos Slide 14 Main Web Service Operations Slide 15 Associate Metadata with Blob Slide 16 Blob always accessed by name Slide 17 Slide 18 GET http://.../products?comp=list&prefix=Tents&deli miter=/ Tents/PalaceTent.wmv Tents/ShedTent.wmv Products/Bikes/SuperDuperCycle.jpg Products/Bikes/FastBike.jpg Products/Canoes/Whitewater.jpg Products/Canoes/Flatwater.jpg Products/Canoes/Hybrid.jpg Products/Tents/PalaceTent.jpg Products/Tents/ShedTent.jpg Slide 19 http://.../products?comp=list&prefix=Canoes&max results=2 &marker=MarkerValue Canoes/Hybrid.jpg http://.../products?comp=list&prefix=Canoes&max results=2 Canoes/Whitewater.jpg Canoes/Flatwater.jpg MarkerValue Slide 20 Tour of the Blob Service demo Slide 21 Slide 22 TheBlob.wmv 10 GB Movie Block Id 1Block Id 2Block Id 3 Block Id N blobName = TheBlob.wmv; PutBlock(blobName, blockId1, block1Bits); PutBlock(blobName, blockId2, block2Bits); PutBlock(blobName, blockIdN, blockNBits); PutBlockList(blobName, blockId1,,blockIdN); TheBlob.wmv THE BLOB Windows Azure Storage Slide 23 Create MyBlob Specify Blob Size = 10 Gbytes Sparse storage - Only charged for pages with data stored in them Fixed Page Size = 512 bytes Random Access Operations PutPage[512, 2048) PutPage[0, 1024) ClearPage[512, 1536) PutPage[2048,2560) GetPageRange[0, 4096) returns valid data ranges: [0,512), [1536,2560) GetBlob[1000, 2048) returns All 0 for first 536 bytes Next 512 bytes are data stored in [1536,2048) 0 10 GB 512 1024 1536 2048 2560 10 GB Address Space Slide 24 Slide 25 http://...blob.../pics/image.jpg? sr=c&st=2009-02-09T08:20Z&se=2009-02-10T08:30Z&sp=w &sig= dD80ihBh5jfNpymO5Hg1IdiJIEvHcJpCMiCMnN%2fRnbI%3d Slide 26 http://...blob.../pics/image.jpg? sr=c&si=MyUploadPolicyForUserID12345 &sig=dD80ihBh5jfNpymO5Hg1IdiJIEvHcJpCMiCMnN%2fRnbI%3d Slide 27 Slide 28 pic1.jpg GET pic1.jpg 404 TTL Content Delivery Network Windows Azure Blob Service Slide 29 Drives Slide 30 Slide 31 Slide 32 Slide 33 VM OS Application Drive X: Slide 34 Cloud Drive Client Library Sample CloudStorageAccount account = CloudStorageAccount.FromConfigurationSetting("CloudStorageAccount"); //Initialize the local cache for drives mounted by this role instance CloudDrive.InitializeCache(localCacheDir, cacheSizeInMB); //Create a cloud drive (PageBlob) CloudDrive drive = account.CreateCloudDrive(pageBlobUri); drive.Create(1000 /* sizeInMB */); //Mount the network attached drive on the local file system string pathOnLocalFS = drive.Mount(cacheSizeInMB, DriveMountOptions.None); //Use NTFS APIs to Read/Write files to drive //Snapshot drive while mounted to create backups Uri snapshotUri = drive.Snapshot(); //Unmount the drive drive.Unmount(); Slide 35 Slide 36 Tables Slide 37 EntityTableAccount contoso Name = Email = Name = EMailAdd= customers Photo ID = Date = photos Photo ID = Date = Slide 38 Insert Update Merge Partial update Replace Update entire entity Upsert Delete Query Entity Group Transactions Multiple CUD Operations in a single atomic transaction Create, Query, Delete Tables can have metadata Not an RDBMS! Table Entities Slide 39 Slide 40 FIRSTLASTBIRTHDATE WadeWegner2/2/1981 NathanTotten3/15/1965 NickHarrisMay 1, 1976 FAV SPORT Canoeing Slide 41 FIRSTLASTBIRTHDATE WadeWegner2/2/1981 NathanTotten3/15/1965 NickHarrisMay 1, 1976 ?$filter=Last eq Wegner Slide 42 Slide 43 PARTITIONKEY (CATEGORY) ROWKEY (TITLE) TIMESTAMPMODELYEAR BikesSuper Duper Cycle2009 Bikes Quick Cycle 200 Deluxe 2007 CanoesWhitewater2009 CanoesFlatwater2006 PARTITIONKEY (CATEGORY) ROWKEY (TITLE) TIMESTAMPMODELYEAR Rafts14ft Super Tourer1999 Skis Fabrikam Back Trackers 2009 TentsSuper Palace2008 PARTITIONKEY (CATEGORY) ROWKEY (TITLE) TIMESTAMPMODELYEAR BikesSuper Duper Cycle2009 Bikes Quick Cycle 200 Deluxe 2007 CanoesWhitewater2009 CanoesFlatwater2006 Rafts14ft Super Tourer1999 Skis Fabrikam Back Trackers 2009 TentsSuper Palace2008 Slide 44 2011 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.