Download presentation
Presentation is loading. Please wait.
Published byJob Caldwell Modified over 8 years ago
8
BlobContainerAccount sally pictures IMG001.JPG IMG002.JPG movies MOV1.AVI
12
PUT http://dvd.blob.core.windows.net/movies/TheBlob.wmv HTTP/1.1 Content-Length: 10000000000 Content-Type: binary/octet-stream x-ms-meta-year:1958 x-ms-meta-tagline:Beware%20of%20the%20Blob Content-MD5: HUXZLQLMuI/KZ5KDcJPcOA== x-ms-date: Mon, 27 Oct 2008 17:00:25 GMT Authorization: SharedKey dvd: F5a+dUDvef+PfMb4T8Rc2jHcwfK58KecSZY+l2naIao= ……… Blob Data Contents ……… PUT http://dvd.blob.core.windows.net/movies/TheBlob.wmv HTTP/1.1 Content-Length: 10000000000 Content-Type: binary/octet-stream x-ms-meta-year:1958 x-ms-meta-tagline:Beware%20of%20the%20Blob Content-MD5: HUXZLQLMuI/KZ5KDcJPcOA== x-ms-date: Mon, 27 Oct 2008 17:00:25 GMT Authorization: SharedKey dvd: F5a+dUDvef+PfMb4T8Rc2jHcwfK58KecSZY+l2naIao= ……… Blob Data Contents ……… AccountContainerBlob Name
13
GET http://dvd.blob.core.windows.net/movies/TheBlob.wmv HTTP/1.1 Authorization: SharedKey dvd: RGllHMtzKMi4y/nedSk5Vn74IU6/fRMwiPsL+uYSDjY= x-ms-date: Mon, 27 Oct 2008 17:00:25 GMT GET http://dvd.blob.core.windows.net/movies/TheBlob.wmv HTTP/1.1 Range: bytes=1024000-2048000
14
BlockBlob Container Account sally pictures IMG001. JPG IMG002. JPG movies MOV1.AVI Block 1 Block 2 Block 3
15
10 GB Movie Windows Azure Storage Block Id 1 Block Id 2 Block Id 3 Block Id N blobName = “TheBlob.wmv”; PutBlock(blobName, blockId1, block1Bits); PutBlock(blobName, blockId2, block2Bits); ………… PutBlock(blobName, blockIdN, blockNBits); PutBlockList(blobName, blockId1,…,blockIdN); blobName = “TheBlob.wmv”; PutBlock(blobName, blockId1, block1Bits); PutBlock(blobName, blockId2, block2Bits); ………… PutBlock(blobName, blockIdN, blockNBits); PutBlockList(blobName, blockId1,…,blockIdN); TheBlob.wmv
16
Block Id 1Block Id 3Block Id 2 BlobName = ExampleBlob.wmv Block Id 4 Block Id 3Block Id 2 Block Id 4 Committed and readable version of blob
23
EntityTableAccount sally users Name =… Email = … Name =… Email = … photo index Photo ID =… Date =… Photo ID =… Date =…
26
Partition Key Document Name Row Key Version Property 3 Modification Time …Property N Description Example DocV1.08/2/2007…Committed version Example DocV2.0.19/28/2007Alice’s working version FAQ DocV1.05/2/2007Committed version FAQ DocV1.0.17/6/2007Alice’s working version FAQ DocV1.0.28/1/2007Sally’s working version Partition 1 Partition 2
31
[DataServiceKey("PartitionKey", "RowKey")] public class Customer { // Partition key – Customer Last name public string PartitionKey { get; set; } // Row Key – Customer First name public string RowKey { get; set; } // User defined properties here public DateTime CustomerSince { get; set; } public double Rating { get; set; } public string Occupation { get; set; } }
32
Customer cust = new Customer( “Lee”, // Partition Key = Last Name “Geddy”, // Row Key = First Name DateTime.UtcNow, // Customer Since 2.0, // Rating “Engineer” // Occupation); context.AddObject(“Customer”, cust); DataServiceResponse response = context.SaveChanges(); // Service Uri is “http://.table.core.windows.net/” DataServiceContext context = new DataServiceContext(serviceUri);
33
DataServiceContext context = new DataServiceContext(“http://myaccount.table.core.windows.net”); var customers = from o in context.CreateQuery (“Customer”) where o.PartitionKey == “Lee” select o; foreach (Customer customer in customers) { } GET http://myaccount.table.core.windows.net/Customer? $filter= PartitionKey eq ‘Lee’
38
Public internet Web role Cloud storage (tables, blobs, queues) Worker role Load balancer nm Q
40
MessageQueueAccount sally thumbnail jobs 128x128, http://… 256x256, http://… photo processing jobs http://…
43
2 2 1 1 C1C1 C1C1 C2C2 C2C2 1 1 2 2 3 3 4 4 Producers Consumers P2P2 P2P2 P1P1 P1P1 3 3 2. Dequeue(Q, 30 sec) msg 2 1. Dequeue(Q, 30 sec) msg 1 1 1 2 2
44
C1C1 C 1 C2C2 C2C2 3 4 4 Producers Consumers P2P2 P2P2 P1P1 P1P1 1 1 2 2 2. Dequeue(Q, 30 sec) msg 2 3. C2 consumed msg 2 4. Delete(Q, msg 2) 7. Dequeue(Q, 30 sec) msg 1 1. Dequeue(Q, 30 sec) msg 1 5. C 1 crashed 1 1 2 2 1 1 6. msg1 visible 30 seconds after Dequeue 3 3
46
Account Container Blobs Table Entities Queue Messages http://.blob.core.windows.net/ http://.table.core.windows.net/ http://.queue.core.windows.net/
50
© 2009 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.
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.