Save 37% off PRO during our Black Friday Sale! »

Microsoft Azure Blob Storage 101

Microsoft Azure Blob Storage 101

3a53a5136f530c121a196914aecf3936?s=128

Tugberk Ugurlu

May 03, 2014
Tweet

Transcript

  1. Microsoft Azure Blob Storage 101 TUGBERK UGURLU HTTP://TUGBERKUGURLU.COM @TOURISMGEEK

  2. 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
  3. Azure Storage Concept Azure Storage Account Container Table Queue Blobs

    Entities Messages
  4. 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.
  5. Azure Blob Storage Concept Account Container Blob tugberkblog pictures videos

    pooping-cat.gif farting-dog.gif video1.mp4
  6. Container Based Permissions Account Container Blob tugberkblog mypublicfiles myprivatefiles pooping-cat.gif

    farting-dog.gif xxx.mp4 Public Read Access No Public Access
  7. 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
  8. DEMO INTRODUCTION

  9. 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
  10. DEMO LARGE FILE UPLOAD

  11. 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
  12. DEMO SHARED ACCESS SIGNATURE

  13. 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
  14. DEMO .NET CLIENT RETRY POLICY

  15. Lease ◦ Allows you to acquire a lock on a

    blob ◦ Between 15 - 60 Seconds ◦ Lock can be released or extended before its expiration
  16. DEMO LEASE

  17. 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
  18. 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