2 3 4 EntitiesTablesAccounts 5 6 7 8 PartitionKey (Category) RowKey (Title) TimestampReleaseDate Action Fast & Furious…2009 Action The Bourne Ultimatum…2007.

Slides:



Advertisements
Similar presentations
Numbers Treasure Hunt Following each question, click on the answer. If correct, the next page will load with a graphic first – these can be used to check.
Advertisements

1 A B C
AP STUDY SESSION 2.
1
Feichter_DPG-SYKL03_Bild-01. Feichter_DPG-SYKL03_Bild-02.
Copyright © 2003 Pearson Education, Inc. Slide 1 Computer Systems Organization & Architecture Chapters 8-12 John D. Carpinelli.
Copyright © 2011, Elsevier Inc. All rights reserved. Chapter 6 Author: Julia Richards and R. Scott Hawley.
Author: Julia Richards and R. Scott Hawley
1 Copyright © 2013 Elsevier Inc. All rights reserved. Appendix 01.
Properties Use, share, or modify this drill on mathematic properties. There is too much material for a single class, so you’ll have to select for your.
UNITED NATIONS Shipment Details Report – January 2006.
David Burdett May 11, 2004 Package Binding for WS CDL.
1 RA I Sub-Regional Training Seminar on CLIMAT&CLIMAT TEMP Reporting Casablanca, Morocco, 20 – 22 December 2005 Status of observing programmes in RA I.
Custom Statutory Programs Chapter 3. Customary Statutory Programs and Titles 3-2 Objectives Add Local Statutory Programs Create Customer Application For.
Custom Services and Training Provider Details Chapter 4.
1 10 pt 15 pt 20 pt 25 pt 5 pt 10 pt 15 pt 20 pt 25 pt 5 pt 10 pt 15 pt 20 pt 25 pt 5 pt 10 pt 15 pt 20 pt 25 pt 5 pt 10 pt 15 pt 20 pt 25 pt 5 pt BlendsDigraphsShort.
© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
1 Click here to End Presentation Software: Installation and Updates Internet Download CD release NACIS Updates.
Break Time Remaining 10:00.
This module: Telling the time
Turing Machines.
Table 12.1: Cash Flows to a Cash and Carry Trading Strategy.
PP Test Review Sections 6-1 to 6-6
Windows Azure Storage Deep Dive
Bright Futures Guidelines Priorities and Screening Tables
Windows Azure Tables: Programming Cloud Table Storage
EIS Bridge Tool and Staging Tables September 1, 2009 Instructor: Way Poteat Slide: 1.
Bellwork Do the following problem on a ½ sheet of paper and turn in.
PresenterPresenterViewView ModelModel IViewIView.
KETTŐŐ + EGY Comming Soon Comming Soon.
Exarte Bezoek aan de Mediacampus Bachelor in de grafische en digitale media April 2014.
Copyright © 2012, Elsevier Inc. All rights Reserved. 1 Chapter 7 Modeling Structure with Blocks.
1 RA III - Regional Training Seminar on CLIMAT&CLIMAT TEMP Reporting Buenos Aires, Argentina, 25 – 27 October 2006 Status of observing programmes in RA.
Basel-ICU-Journal Challenge18/20/ Basel-ICU-Journal Challenge8/20/2014.
1..
CONTROL VISION Set-up. Step 1 Step 2 Step 3 Step 5 Step 4.
© 2012 National Heart Foundation of Australia. Slide 2.
Adding Up In Chunks.
Services Course Windows Live SkyDrive Participant Guide.
1 10 pt 15 pt 20 pt 25 pt 5 pt 10 pt 15 pt 20 pt 25 pt 5 pt 10 pt 15 pt 20 pt 25 pt 5 pt 10 pt 15 pt 20 pt 25 pt 5 pt 10 pt 15 pt 20 pt 25 pt 5 pt Synthetic.
Model and Relationships 6 M 1 M M M M M M M M M M M M M M M M
Subtraction: Adding UP
: 3 00.
5 minutes.
1 hi at no doifpi me be go we of at be do go hi if me no of pi we Inorder Traversal Inorder traversal. n Visit the left subtree. n Visit the node. n Visit.
Analyzing Genes and Genomes
©Brooks/Cole, 2001 Chapter 12 Derived Types-- Enumerated, Structure and Union.
Essential Cell Biology
Converting a Fraction to %
Clock will move after 1 minute
PSSA Preparation.
Essential Cell Biology
Immunobiology: The Immune System in Health & Disease Sixth Edition
Physics for Scientists & Engineers, 3rd Edition
Energy Generation in Mitochondria and Chlorplasts
Select a time to count down from the clock above
Murach’s OS/390 and z/OS JCLChapter 16, Slide 1 © 2002, Mike Murach & Associates, Inc.
© 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
MIX 09 4/15/ :14 PM © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Built by Developers for Developers…. © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
Customers Live on Windows Azure Platform
Bring your own machines, connectivity, software, etc. Complete control Complete responsibility Static capabilities Upfront capital costs for the infrastructure.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Building Applications with Windows Azure Storage Brad Calder Director/Architect Microsoft Corporation.
© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.

© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks.
© 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.
Presentation transcript:

2

3

4

EntitiesTablesAccounts 5

6

7

8

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 9

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

12 StorageCredentialsAccountAndKey credentials = new StorageCredentialsAccountAndKey( myaccount", myKey"); string baseUri = " CloudTableClient tableClient = new CloudTableClient(baseUri, credentials); tableClient.CreateTable(Movies"); TableServiceContext context = tableClient.GetDataServiceContext(); CloudTableQuery q = (from movie in context.CreateQuery (Movies") where movie.PartitionKey == Action" && movie.RowKey == "The Bourne Ultimatum" select movie).AsTableServiceQuery (); Movie movieToUpdate = q.FirstOrDefault(); // Update movie context.UpdateObject(movieToUpdate); context.SaveChangesWithRetries(); // Add movie context.AddObject(new Movie(Action", movieToAdd)); context.SaveChangesWithRetries();

13

14

15

16 PartitionKey (Account name) RowKey (Title) Category… moviesonline 12 RoundsAction… moviesonline A Bugs LifeAnimation… 100,000,000 more rows……… moviesonline Office SpaceComedy… moviesonline PlatoonWar… 50,000,000 more rows……… moviesonline WALL-EAnimation…

PartitionKey (Account name) RowKey (Title) Category… moviesonline 12 RoundsAction… moviesonline A Bugs LifeAnimation… 100,000,000 more rows……… moviesonline Office SpaceComedy… moviesonline PlatoonWar… 50,000,000 more rows……… moviesonline WALL-EAnimation… Client 17

PartitionKey (Category) RowKey (Title) ActionFast & Furious …10000 more Action movies ActionThe Bourne Ultimatum … more Action & Animation movies AnimationOpen Season 2 … more Animation movies AnimationThe Ant Bully ComedyOffice Space … more Comedy & SciFi movies SciFiStar Trek … more SciFi & War movies … more War movies WarDefiance Client 18 PartitionKey (Category) RowKey (Title) ActionFast & Furious …10000 more Action movies ActionThe Bourne Ultimatum … more Action & Animation movies AnimationOpen Season 2 … more Animation movies AnimationThe Ant Bully ComedyOffice Space … more Comedy & SciFi movies SciFiStar Trek … more SciFi & War movies … more War movies WarDefiance

19

PartitionKey (Timestamp) Properties :00:01 … :00:11 … more rows… :40:01 … … more rows… :30:00 … :30:01 … Applications Client :30:01 … :30:02 … :30:03 … 20

PartitionKey (ID_Timestamp) Properties 01_ :10:00… …… more rows… 09_ :31:00… …… more rows… 10_ :10:10… more rows… …… more rows… 19_ :20:02… ApplicationsApplications Client 15_ :30:01… 09_ :30:22… 19_ :30:10… 01_ :30:01… 21

22

PartitionKey (Category) RowKey (Title) ActionFast & Furious …10000 more Action movies ActionThe Bourne Ultimatum … more Action & Animation movies AnimationOpen Season 2 … more Animation movies AnimationThe Ant Bully ComedyOffice Space … more Comedy & SciFi movies SciFiStar Trek … more SciFi & War movies … more War movies WarDefiance Client 23

Client PartitionKey (Category) RowKey (Title) Rating ActionFast & Furious5 …999 more movies rated > 4… … Action and Anim. movies here with rating < 4 … AnimationA Bugs life2 …100 more movies < 4 here… AnimationThe Ant Bully3 ComedyAre we there yet?2 …More movies here… ComedyOffice Space5 … more movies here… DramaA Beautiful Mind5 … more movies here… WarDefiance4 24 Returns 1000 movies Partition range boundary hit Return continuation

Client PartitionKey (Category) RowKey (Title) Rating ActionFast & Furious5 …More movies here… ComedyOffice Space5 …More movies here… DocumentaryPlanet Earth4 …More movies here DramaSeven Pounds4 HorrorSaw 53 …More movies here… Music8 Mile2 …More movies here… SciFiStar Trek5 …More movies here… 25

26

27

28

29

PartitionKey (UserId) RowKey () Timestam p ReleaseDateAction Assault on Precinct 13…2005 … ……… Action Face off…1997 Action Fast & Furious…2009 … … Hundreds of thousands of movies here …… Action Four Brothers…2005 Animatio n Open Season 2…2009 Animatio n The Ant Bully…

PartitionKey (AccountID) RowKey (Kind_*) KindTotalRentalsNameAddressCheckOutOnTitleDueOn ……………………… SallyA_SallyAccount8Sally FieldAnn Arbor, MI SallyR_JawsRental2009/11/16Jaws2009/11/20 SallyR_TaxiRental2009/11/16Taxi2009/11/20 ……………………… 31

32

33

34

MessagesQueuesAccounts 35

36

37

38 CloudQueueClient queueClient = new CloudQueueClient(baseUri, credentials); CloudQueue queue = queueClient.GetQueueReference("test1"); queue.CreateIfNotExist(); //MessageCount is populated via FetchAttributes queue.FetchAttributes(); CloudQueueMessage message = new CloudQueueMessage("Some content"); queue.AddMessage(message); message = queue.GetMessage(TimeSpan.FromMinutes(10) /*visibility timeout*/ ); //Process the message here … queue.DeleteMessage(message);

39

C1C1 C1C1 C2C2 C2C Producers Consumers P2P2 P2P2 P1P1 P1P GetMessage(Q, 30 s) msg 2 1. GetMessage(Q, 30 s) msg

C1C1 C 1 C2C2 C2C Producers Consumers P2P2 P2P2 P1P1 P1P GetMessage(Q, 30 s) msg 2 3. C2 consumed msg 2 4. DeleteMessage(Q, msg 2) 7. GetMessage(Q, 30 s) msg 1 1. GetMessage(Q, 30 s) msg 1 5. C 1 crashed msg1 visible 30 s after Dequeue

C1C1 C1C1 C2C2 C2C Producers Consumers P2P2 P2P2 P1P1 P1P Dequeue(Q, 30 sec) msg 2 3. C2 consumed msg 2 4. Delete(Q, msg 2) 7. Dequeue(Q, 30 sec) msg 1 8. C2 crashed 1. Dequeue(Q, 30 sec) msg 1 5. C 1 crashed 10. C1 restarted 11. Dequeue(Q, 30 sec) msg DequeueCount > Delete (Q, msg1) msg1 visible 30s after Dequeue 9. msg1 visible 30s after Dequeue

43

Future Features 44 > Allow workers to extend invisibility time > Time to process message unknown at dequeue time > Worker can extend the time as needed > Allow longer invisibility time > Long running work items may need more than 2 hours > Allow messages to not expire > Large backlogs will not cause messages to expire

45

Built by Developers for Developers….

© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.