Building Applications with Windows Azure Storage Brad Calder Director/Architect Microsoft Corporation.

Slides:



Advertisements
Similar presentations
There are some differences between Cloud and Dev Storage. A good approach for developers: To test pre-deployment,
Advertisements

Windows Azure Storage Deep Dive
2 3 4 EntitiesTablesAccounts PartitionKey (Category) RowKey (Title) TimestampReleaseDate Action Fast & Furious…2009 Action The Bourne Ultimatum…2007.
Windows Azure Storage Name Title Organization.
Virtual techdays INDIA │ September 2011 Building Windows Phone 7 Apps For Windows Azure - Best Match with Cloud Jebarson Jebamony │ Consultant,
Getting Your Nerd on with Microsoft’s Cloud data services Scott Klein Technical Evangelist Microsoft Corporation.
= Managed for YouStandalone Servers IaaSPaaSSaaS Applications Runtimes Database Operating System Virtualization Server Storage Networking Windows.
MySQL-Database Teppo Räisänen Oulu University of Applied Sciences School of Business and Information Management.
Windows Azure Data Services Scott Klueppel Chief Cloud Evangelist SOAlutions, Inc.
Page 1 Queue Storage Jeff Chu | Page 2 Agenda Queue Storage Overview Programming Queue Storage Queue Storage tips Lab Time.
Azure Services Platform Piotr Zierhoffer. Agenda Cloud? What is Azure? Environment Basic glossary Architecture Element description Deployment.
Move a «classical» asp.net application from on premise to the Cloud, on the Windows Azure Platform. – And understand the benefits of this step.
Simulation and data analysis with Austin Donnelly | July 2010.
17 Regions Worldwide in 2015.
Protecting your online and on premises assets "Cloud Style" Mike Martin Architect / Microsoft Azure MVP.
Blob Storage. What is Blob Storage Windows Azure Blob storage is a service for storing large amounts of unstructured data that can be accessed from anywhere.
Virtual techdays INDIA │ november 2010 Windows Azure Storage – Deep Dive Gaurav Mantri │ Founder, Cerebrata Software.
WINDOWS AZURE STORAGE 11 de Mayo, 2011 Gisela Torres – Windows Azure MVP Aventia-Renacimiento Twitter:
Inside Windows Azure Storage Name Title Microsoft Corporation.
Windows Azure SQL Database and Storage Name Title Organization.
Windows Azure Storage Abstractions Windows Azure Storage Characteristics.
= Managed for YouStandalone Servers IaaSPaaSSaaS Applications Runtimes Database Operating System Virtualization Server Storage Networking Windows.
Using Windows Azure John Donnelly Technical Evangelist Microsoft Technology Centre Thames Valley Park
Training Workshop Windows Azure Platform. Presentation Outline (hidden slide): Technical Level: 300 Intended Audience: Developers Objectives (what do.
Introduction To Windows Azure Cloud
Windows Azure featureISO 27001SSAE 16 SOC 1 Type 2 EU Model Clauses HIPAA BAA Web Sites Virtual Machines Cloud Services Storage (Tables,
Customers Live on Windows Azure Platform
Building Connected Windows 8 Apps with Windows Azure Web Sites Name Title Organization.
MSDN Event. WINDOWS AZURE STORAGE Windows Azure Storage Storage in the Cloud –Scalable, durable, and available –Anywhere at anytime access –Only pay.
Austin code camp 2010 asp.net apps with azure table storage PRESENTED BY CHANDER SHEKHAR DHALL
Windows Azure Storage – Essential Cloud Storage Services Denver Cloud Computing User Group
Bring your own machines, connectivity, software, etc. Complete control Complete responsibility Static capabilities Upfront capital costs for the infrastructure.
Jimmy Narang 1. A service in the cloud has to: Be able to handle arbitrary node failures Be available all the time Be able to scale up or down on demand.
Windows Azure Tour Benjamin Day Benjamin Day Consulting, Inc.
Azure in a Day Training Azure Queues Module 1: Azure Queues Overview Module 2: Enqueuing a Message – DEMO: Creating Queues – DEMO: Enqueuing a Message.
Windows Azure Conference 2014 Deploy your Java workloads on Windows Azure.
Building Scalable, Global, and Highly Available Web Apps Name Title Microsoft Corporation.
Windows Azure Storage Name Title Microsoft Corporation.
Web Role Worker Role Storage Queue LBLB LBLB LBLB LBLB Worker Role Web Role Worker Role Blob Container Table 1.User uploads large image file 2.Image.
Windows Azure Storage Cloud Computing Soup to Nuts Mike Benkovich Microsoft Corporation btlod-72.
T.N.C.Venkata Rangan CEO, Vishwak Solutions Your Data on Cloud.
Art by Andrew Fryer. Dan Cohen Microsoft Consulting Services Microsoft Israel Team blog:
Virtual techdays INDIA │ august 2010 Building & Migrating Web applications using Windows Azure storage Ramaprasanna Chellamuthu │ Developer Evangelist;
 Brad Calder Director/Architect Microsoft Corporation ES04.
Windows Azure Storage Anton Boyko.NET developer.
Azure in a Day Azure Tables Module 1: Azure Tables Overview Module 2: REST API – DEMO: Azure Table REST API Module 3: Querying Azure Tables – DEMO: Querying.
Building Connected Windows 8 Apps with Windows Azure Web Sites Name Title Organization.
1 Neil Kidd MTC Architect - DPE NeilKidd Neil Kidd MTC Architect - DPE NeilKidd.
INFO 344 Web Tools And Development CK Wang University of Washington Spring 2014.
Technology Drill Down: Windows Azure Platform Eric Nelson | ISV Application Architect | Microsoft UK |
Azure Table Storage Cheap, fast and scalable storage Anton Boyko Ukrainian Azure Community Founder Microsoft Azure MVP
Tamir Dresher Senior Software Architect July 2, 2014 Where is my Data? (In the Cloud)
Windows Azure Custom Software Development Mobile Middleware Windows Azure Storage Dipl.-Ing. Damir Dobric Lead Architect daenet
5 Worker Role Your Code public class WorkerRole : RoleEntryPoint { public override void Run() { while (true) { Thread.Sleep(1000); //Do something.
Windows Azure: Is the Relational Database Dead? Benjamin Day
Windows Azure Custom Software Development Mobile Middleware Windows Azure Storage Dipl.-Ing. Damir Dobric Lead Architect daenet
Architecting Azure Solutions Microsoft.
Benjamin Day blog.benday.com.  Owner, Benjamin Day Consulting, Inc.   Web:
BlobContainerAccount sally pictures IMG001.JPG IMG002.JPG movies MOV1.AVI.
Nivo 300 Windows Azure Storage Bojan Vrhovnik Microsoft
Deploying Web Application
MySQL-Database Jouni Juntunen Oulu University of Applied Sciences
Using BLOB Storage In this module- What is BLOB storage?
Using Azure Tables In this module- Learn how to store data in tables
Windows Azure Storage Queue Storage.
Windows Azure Cloud.
Introduction to Building Applications with Windows Azure
MS AZURE By Sauras Pandey.
Sayed Ibrahim Hashimi Program Manager Microsoft Corporation
Austin Donnelly | July 2010.
Presentation transcript:

Building Applications with Windows Azure Storage Brad Calder Director/Architect Microsoft Corporation

BlobContainerAccount cohowinery images PIC01.JPG PIC02.JPG videos VID1.AVI /

StorageCredentialsAccountAndKey credentials = new StorageCredentialsAccountAndKey(accountName, key); string baseUri = string.Format(" accountName); CloudBlobClient blobClient = new CloudBlobClient(baseUri, credentials); // Create Container CloudBlobContainer cloudContainer = blobClient.GetContainerReference(containerName); bool hasCreated = cloudContainer.CreateIfNotExist(); // Access Blob in the Container CloudBlob cloudBlob = cloudContainer.GetBlobReference(blobName); //BlobRequestOptions has retry policy, timeout etc. BlobRequestOptions options = new BlobRequestOptions(); //Upload the local file to Blob service cloudBlob.UploadFile(uploadFileName, options); //Download to local file name cloudBlob.DownloadToFile(downloadFileName, options);

Windows Azure Blob Service Application Lease Drive X:

Windows Azure Drive Demo

Windows Azure

CloudStorageAccount account = CloudStorageAccount.FromConfigurationSetting("CloudStorageAccount"); //Initialize the local cache for drives mounted by this role instance CloudDrive.InitializeCache(localCacheDir, cacheSizeInMB); //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();

EntityTableAccount cohowinery customers Name =… = … Name =… = … winephotos Photo ID =… Date =… Photo ID =… Date =…

PartitionKey (Category) RowKey (Title) TimestampReleaseDate Action Fast & Furious…2009 Action The Bourne Ultimatum…2007 … ……… Animation Open Season 2…2009 Animation The Ant Bully…2006 PartitionKey (Category) RowKey (Title) TimestampReleaseDate Comedy Office Space…1999 … ……… SciFi X-Men Origins: Wolverine …2009 … ……… War Defiance…2008 PartitionKey (Category) RowKey (Title) TimestampReleaseDate Action Fast & Furious…2009 Action The Bourne Ultimatum…2007 … ……… Animation Open Season 2…2009 Animation The Ant Bully…2006 Comedy Office Space…1999 … ……… SciFi X-Men Origins: Wolverine …2009 … ……… War Defiance…2008

[DataServiceKey("PartitionKey", "RowKey")] public class Movie { /// Movie Category is the partition key public string PartitionKey { get; set; } /// Movie Title is the row key public string RowKey { get; set; } public DateTime Timestamp { get; set; } public int ReleaseYear { get; set; } public double Rating { get; set; } public string Language { get; set; } public bool Favorite { get; set; } }

string baseUri = string.Format(" accountName); CloudTableClient tableClient = new CloudTableClient(baseUri, credentials); // Create Movie Table string tableName = “Movies“; tableClient.CreateTableIfNotExist(tableName); TableServiceContext context = tableClient.GetDataServiceContext(); // Add movie context.AddObject(tableName, new Movie("Action", “White Water Rapids Survival")); context.SaveChangesWithRetries(); // Query movie var q = (from movie in context.CreateQuery (tableName) where movie.PartitionKey == "Action" && movie.Rating > 4.0 select movie).AsTableServiceQuery (); foreach (Movie movieToUpdate in q) { movieToUpdate.Favorite = true; context.UpdateObject(movieToUpdate); } context.SaveChangesWithRetries( ); SaveChangesOptions.Batch

MessageQueueAccount order processing customer ID order ID cohowinery

Azure Queue Input Queue (Work Items)

Azure Queue Input Queue (Work Items)

string baseUri = string.Format(" accountName); CloudQueueClient queueClient = new CloudQueueClient(baseUri, credentials); //Create Queue CloudQueue queue = queueClient.GetQueueReference(queueName); queue.CreateIfNotExist(); //Add Message CloudQueueMessage message = new CloudQueueMessage(“some content"); queue.AddMessage(message); //Get Message message = queue.GetMessage(TimeSpan.FromMinutes(3) /*Invisibility timeout*/); // Process Message within the Invisibility Timeout //Delete Message queue.DeleteMessage(message);