Professional Documents
Culture Documents
Drives
Tables
Provide structured storage. A Table is a set of entities, which contain a set of properties
Queues
Account
Container
Blob
PIC01.JPG
images
PIC02.JPG cohowinery
videos
9
VID1.AVI
<name, value>
10
blocks
pages
12
Block Blob
Streaming Workload w/ Random Reads + Committed Writes
10 GB Movie
Block Id 1 Block Id 2 Block Id 3 Block Id N
blobName = blob.wmv; PutBlock(blobName, blockId1, block1Bits); PutBlock(blobName, blockId2, block2Bits); PutBlock(blobName, blockIdN, blockNBits); PutBlockList(blobName, blockId1, blockId2,blockIdN);
blob.wmv blob.wmv
13
10 GB Address Space
14
GetPageRange 0, 4096
0,512 1536,2560
1536,2048
15
Blobs Tips
ServicePointManager.DefaultConnectionLimit
ParallelOperationThreadCount
CloudBlobClient
BlobRequestOptions Timeout
16
17
18
//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(); 19
20
Entity Properties
PartitionKey & RowKey
Timestamp
23
24
Server A
Table = Movies
[MinKey - Comedy)
Server A
Table = Movies
Server B
Table = Movies
[Comedy - MaxKey)
Table Operations
Create, Query, Delete
Insert Update
Merge Replace
26
Client
Client
TwitterAggragator
Aggregator Instance 1
Cloud
Twitter TwitterDispathcer Web Role
Client
Dispatcher Instance 0
Queue
Dispatcher Instance 1
27
DEMO
Twitter Table
28
Table Tips
Scale
Queries Entity Group Transactions
30
Account
Queue
Message
31
Azure Queue
32
Azure Queue
Dequeues Deletes
33
DEMO
Twitter Queue
34
Queue Tips
8KB
DequeueCount
35