Presentation is loading. Please wait.

Presentation is loading. Please wait.

 Sriram Krishnan Program Manager Microsoft Corporation ES03.

Similar presentations


Presentation on theme: " Sriram Krishnan Program Manager Microsoft Corporation ES03."— Presentation transcript:

1  Sriram Krishnan Program Manager Microsoft Corporation sriramk@microsoft.com ES03

2

3

4

5

6

7

8 Act I Architecture

9

10

11

12

13

14 Big, reliable, expensive machine

15

16

17

18

19

20

21

22

23 ... <add name="TableStorageSessionStateProvider“ type= "Microsoft.Samples.ServiceHosting.AspProviders.TableStorageSession StateProvider" applicationName=“Foo” />

24

25

26

27

28 Default.aspx (Input + Making Coffee) LB

29 public partial class _Default : System.Web.UI.Page { protected void Button1_Click(object sender,EventArgs e) { var order = txtOrder.Text; ProcessOrder(order); } protected void ProcessOrder(string order) { //Make some coffee!... }

30 Default.aspx (Input) Windows Azure Queues LB Worker.cs (Make Coffee)

31 public partial class _Default : System.Web.UI.Page { protected void Button1_Click(object sender,EventArgs e) { var order = txtOrder.Text; QueueStorage qStore = QueueStorage.Create(_account); MessageQueue orderQ = qStore.GetQueue("OrderQueue"); orderQ.PutMessage(new Message(order)); }

32 public class WorkerRole : RoleEntryPoint { public override void Start() { QueueStorage qStore = QueueStorage.Create(_account); MessageQueue orderQ = qStore.GetQueue("OrderQueue"); while (true) { Message msg = orderQ.GetMessage(); if( msg != null) ProcessOrder(msg.ContentAsString()); } protected void ProcessOrder(string order) { //Make some coffee!... }

33

34

35

36 Use Windows Azure storage for valuable data

37

38

39

40

41

42

43

44

45

46

47

48

49

50

51

52 Recap

53 End of Act I

54 Act II Updates

55

56

57

58

59 Code vN Data vN

60 Code vN Data vN Code vN +1

61 Code vN Data vN Data vN+1

62

63

64

65 class Employee : TableStorageEntity { public Employee(string firstName, string lastName) : base(firstName, lastName) //partition key, row key {} public string JobTitle { get; set; } }... var qResult = from emp in svc.CreateQuery (EmployeeDataServiceContext.EmployeeTable) where emp.PartitionKey == "Steve" && emp.RowKey == "Marx select emp; }

66 class Employee : TableStorageEntity { public Employee(string firstName, string lastName) : base(firstName, lastName) {} public string JobTitle { get; set; } public int Version { get; set; } }... var qResult = from emp in svc.CreateQuery (EmployeeDataServiceContext.EmployeeTable) where emp.PartitionKey == "Steve" && emp.RowKey == "Marx && emp.Version == 1 select emp; }

67

68

69 Stage Deployment Production Deployment

70

71 Future: Precise control

72

73

74

75 Recap

76 End of Act II

77

78

79

80

81 Oh Oh!

82

83

84 Trickiest patch ever

85

86 Act III When things go wrong…

87

88

89

90 ServiceDefinition.csdef ServiceConfiguration.cscfg

91

92

93

94 ... if (RoleManager.GetConfigurationSetting("LogLevel") == "Verbose") RoleManager.WriteToLog("Information", "Some log message");

95 {XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}

96

97 !

98 !

99

100 Recap

101 End of Act III

102

103

104

105

106

107

108

109 Please fill out your evaluation for this session at: This session will be available as a recording at: www.microsoftpdc.com

110

111 © 2008 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.

112


Download ppt " Sriram Krishnan Program Manager Microsoft Corporation ES03."

Similar presentations


Ads by Google