Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Microsoft Azure Blob Storage 101

Microsoft Azure Blob Storage 101

Avatar for Tugberk Ugurlu

Tugberk Ugurlu

May 03, 2014
Tweet

More Decks by Tugberk Ugurlu

Other Decks in Programming

Transcript

  1. Azure Storage Service ◦ Scalable, durable, and highly available storage

    ◦ Consists of: ◦ Blob Storage ◦ Table Storgae ◦ Queue storage ◦ Max Amount of Data per Account: 200 TB (Hard Limit) ◦ 20 Storage Account per Subscription (Soft Limit) ◦ Managed through REST Service Management APIs ◦ Development Environment Emulator Available
  2. Azure Blob Storage Service ◦ Blob: Binary Large Object ◦

    Unstructured data storage in the cloud ◦ Documents ◦ Media files such as photos, videos, music ◦ Backups of files ◦ Available SDKs: ◦ .NET ◦ Node.js ◦ PHP ◦ Java ◦ Phyton ◦ PowerShell ◦ Etc.
  3. Block / Page Blobs ◦ Block Blobs ◦ Most Used

    Blob Type in Azure Storage ◦ Optimized for streaming of bytes ◦ Maximum Blob Size: 200 MB ◦ Comprised of blocks ◦ Max block size 4 MB ◦ Page Blobs ◦ Optimized for random read/writes ◦ Maximum blob size 1 TB ◦ Collection of 512 Byte Pages ◦ Example: VHD files ◦ More Info: http://bit.ly/1lIn8hB
  4. Large Block Blob Uploads ◦ Max Size of a Block

    Blob for Single Upload: 64MB ◦ Individual/Sequential HTTP Block Requests to upload Large Files (Max 4MB) > 64MB 4MB 4MB 4MB 4MB 4MB … > 64MB Single HTTP Block Commit Request Sequential HTTP Block Requests
  5. Shared Access Signatures ◦ Allows you to grant access without

    your Storage Access Key ◦ Grants read/write/delete access for: ◦ Particular blob ◦ Particular container ◦ A limited period of time
  6. Retry ◦ In order to handle Transient failures ◦ Two

    Types of Retry Policies ◦ Linear (Retry Interval (backoff period) Increases Statically) ◦ Exponential (Retry Interval (backoff period) Increases Exponentially) ◦ .NET Storage Client by default has Exponential Retry Policy ◦ Retires the failed request 4 times (2 -> 4 -> 8 -> 16) ◦ Can be customized with your retry logic
  7. Lease ◦ Allows you to acquire a lock on a

    blob ◦ Between 15 - 60 Seconds ◦ Lock can be released or extended before its expiration
  8. Storage Analytics ◦ Logging and metrics data for a storage

    account ◦ Learn more about storage analytics: http://msdn.microsoft.com/en-us/library/azure/hh343270.aspx
  9. Resources ◦ Introduction to Azure Storage ◦ How to use

    Blob Storage from .NET ◦ Revisiting Windows Azure Shared Access Signature ◦ Storage Analytics ◦ Using Windows Azure Page Blobs and How to Efficiently Upload and Download Page Blobs ◦ Samples: https://github.com/tugberkugurlu/CloudOSMvpRoadshow