Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Windows Azure programming patterns for Start-ups

You're reading from   Windows Azure programming patterns for Start-ups A step-by-step guide to create easy solutions to build your business using Windows Azure services with this book and ebook.

Arrow left icon
Product type Paperback
Published in Oct 2012
Publisher Packt
ISBN-13 9781849685603
Length 292 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Riccardo Becker Riccardo Becker
Author Profile Icon Riccardo Becker
Riccardo Becker
Arrow right icon
View More author details
Toc

Storage best practices


There are a lot of best practices for using blobs.

When uploading blocks or page blobs, always make sure you set the correct content type. This is crucial for clients to handle the downloaded content correctly. Setting the content type to say "video/MP4" ensures that the receiving client will correctly handle the content.

To minimize the number of storage transactions and maximize the availability of blobs (which requires a lot of money), make sure you use the Cache-Control header properly. Setting the CacheControl property ensures that static content such as HTML or pictures are cached on the client and consecutive calls to the static resource with the cache expiration will prevent clients from touching storage and costing money.

Parallelize as much as possible. When you upload large files to blob storage, use multithreading or the Parallel functionality in C# 4.0.

Pick the right blob type. Streaming contents? Choose a block blob and parallelize the upload and download...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime