3. Common information
3
• Access via REST API:
• http://<storage account>.table.core.windows.net/<table>
• http://<storage account>.queue.core.windows.net/<queue>
• http://<storage account>.blob.core.windows.net/<container>/<blob>
• Replication:
• Automatic triplication
• Emulation:
• Emulation is possible with some restrictions
• CDN support
4. Windows Azure Subscription
Subscription
Message size:
64 KB.
Two types:
• Block;
• Page.
Cloud services
SQL Azure
Databases
Storage Account
(200 TB)
Record size:
1 MB
Block blob max size:
200 GB
Properties count:
252
Page blob max size:
1 TB
Tables
Queues
Blobs
4
5. Tables
• NoSQL storage for structured non-relational data
• Table records (entities) are not described by predefined schema
• Mandatory fields:
• PartitionKey
• RowKey
• Timestamp
• Two types of entity declaration:
• ITableEntity interface
• TableEntity class
5
7. Blobs
• Object-oriented storage
• Two types:
• Block (max size – 200 GB)
• Page (max size – 1 TB)
• Blobs are stored in containers:
• Each storage account can have unlimited count of containers
• Each container can have unlimited count of blobs
• MIME-type definition support
7
8. Workflow
var storageAccount = CloudStorageAccount.Parse(
ConfigurationManager
.ConnectionStrings[ConnectionStringSetting]
.ConnectionString);
var tableClient = storageAccount.CreateCloudTableClient();
var queueClient = storageAccount.CreateCloudQueueClient();
var blobClient
= storageAccount.CreateCloudBlobClient();
Tables:
var table
var context
= tableClient.GetTableReference(tableName);
= tableClient.GetTableServiceContext();
Queues:
var queue
= queueClient.GetQueueReference(queueAddress);
Blobs:
var container = blobClient.GetContainerReference(containerName);
var pageBlob = container.GetPageBlobReference(blobName);
8
10. References
10
How to Use the Table/Queue/Blob Storage Service
https://www.windowsazure.com/en-us/develop/net/how-to-guides/table-services/
https://www.windowsazure.com/en-us/develop/net/how-to-guides/queue-service/
https://www.windowsazure.com/en-us/develop/net/how-to-guides/blob-storage/
Differences between the Storage Emulator and Windows
Azure Storage Services
http://msdn.microsoft.com/en-us/gg433135