Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
Brewing Beer with Windows Azure     Maarten Balliauw     @maartenballiauwAUGUST 30, 2012 | SLIDE 1
Who am I?      Maarten Balliauw      www.realdolmen.com      AZUG      Focus on web          ASP.NET MVC, Windows Azu...
Shameless commercial plug  Pro NuGet:   http://amzn.to/pronuget  MyGet - NuGet-as-a-Service:   http://www.myget.orgAUGUS...
Agenda      Brewing beer      BrewBuddy      Windows Azure Websites      Service Bus & Access Control Service (ACS)  ...
Turn water into beer      BREWING BEERAUGUST 30, 2012 | SLIDE 6
How it started…AUGUST 30, 2012 | SLIDE 7
How it started…  MVP Summit 2011          Wade Wegner talks about his homebrewing           hobby  MVP Summit 2012     ...
The process      Get your kegs clean      Add & boil ingredients      Pour in keg      Add yeast      RinseAUGUST 30,...
The process Wait for fermentation to completeAUGUST 30, 2012 | SLIDE 10
The process      Pour into another keg      Rinse      Wait another week      Bottling time!AUGUST 30, 2012 | SLIDE 11
Difficult part… Wait at least 6 weeks   for it to ageAUGUST 30, 2012 | SLIDE 12
Maarten…                         What does this have                     to do with Windows Azure?AUGUST 30, 2012 | SLIDE 13
Azurifying the home brewer      WWW.BREWBUDDY.NETAUGUST 30, 2012 | SLIDE 14
BrewBuddy      View public recipes      Manage your own recipes      Manage your own brews      Monitor brew fermentat...
BrewBuddy             Social brewing at a glancedemoAUGUST 30, 2012 | SLIDE 16
Architecture         Sensor                              Public website                                             Window...
Scale-fast has just become more interesting      WINDOWS AZURE WEB SITESAUGUST 30, 2012 | SLIDE 18
Windows Azure Web Sites                                Build with ASP.NET, Node.js or PHP                               ...
Windows Azure Web Sites                shared          1SHARED INSTANCES   AUGUST 30, 2012 | SLIDE 20
Windows Azure Web Sites                shared          2SHARED INSTANCES   AUGUST 30, 2012 | SLIDE 21
Windows Azure Web Sites             reserved                               0                                              ...
Windows Azure Web Sites          reserved                               2                             RESERVED INSTANCEAUG...
Windows Azure Web Sites          reserved                                          2                             RESERVED ...
A perfect ramp-up!  Start small          Web Sites are cheap          Scale to 3 reserved instances  Grow big!        ...
Windows Azure Web Sites             Creating a new web site in secondsdemoAUGUST 30, 2012 | SLIDE 26
Connecting sensors      SERVICE BUS &      ACCESS CONTROL SERVICEAUGUST 30, 2012 | SLIDE 27
Windows Azure Service Bus  2 features          Relay          Queues, Topics, SubscriptionsAUGUST 30, 2012 | SLIDE 28
Windows Azure Service Bus Relay                               relay                      ClientAUGUST 30, 2012 | SLIDE 29
Topics and subscriptions                      SensorAUGUST 30, 2012 | SLIDE 30
Characteristics  Workers can scale independently  Workers can fail independently  Sensors connect to service bus direct...
What about authN / authZ?      Access Control Service to the rescue!      SB authenticates clients over ACS      ACS pr...
Access Control Service             Claims for authZ on Service BusdemoAUGUST 30, 2012 | SLIDE 33
Architecture         Sensor                                   Public website                                              ...
How do you link a sensor?  Every sensor has its sensor ID  Add it as an identity to ACS  Grant a “Send” claimAUGUST 30,...
Linking a a sensor with Access Control        Registering sensor to a brew             ServicedemoAUGUST 30, 2012 | SLIDE 36
<french>Make everyone API!</french>      WE NEED AN APIAUGUST 30, 2012 | SLIDE 37
Consuming the web      2000-2008: Desktop browser      2008-2012: Mobile browser      2008-2012: iPhone and Android app...
AUGUST 30, 2012 | SLIDE 39
Twitter & Facebook       By show of hands…AUGUST 30, 2012 | SLIDE 40
Make everyone API       (as the French say)AUGUST 30, 2012 | SLIDE 41
What is an API?  Software-to-Software interface  Contract between software and   developers          Functionalities, c...
Expose services to 3rd parties      Valuable      Flexible      Managed      Supported      Have a planAUGUST 30, 201...
Reach More ClientsAUGUST 30, 2012 | SLIDE 44
ASP.NET Web API  Part of ASP.NET MVC 4  Framework to build HTTP Services (REST)  Solid features             Modern HTT...
Be detailed!       Think about RFC 2324 (HTCPCP)AUGUST 30, 2012 | SLIDE 46
ASP.NET Web API             Let’s craft a quick APIdemoAUGUST 30, 2012 | SLIDE 47
What about authN / authZ?      API access through OAuth2      Access Control Service to the rescue!      Client authori...
What about authN / authZ?           API Consumer                                                        BrewBuddy.net     ...
Install-Package WindowsAzure.Acs.Oauth2 -IncludePrerelease      Access Control Service for API’s             OAuth2 delega...
TAKEAWAYSAUGUST 30, 2012 | SLIDE 51
Keep in mind…      Web Sites start cheap / scale fast      Combine/grow at will (IaaS, PaaS, SaaS)      Service bus for...
Cloud Burst 2012 - Sweden  September 27 – 28, 2012  Stockholm  http://www.azureug.se/CloudBurst2012AUGUST 30, 2012 | SL...
http://blog.maartenballiauw.be                                          @maartenballiauw                             http:...
Upcoming SlideShare
Loading in …5
×

Brewing Beer with Windows Azure (WAZUG.nl)

1,140 views

Published on

Inspired by one of the Windows Azure gods (Wade Wegner), Maarten decided to order a homebrewing starter kit. Being a total cloud fanboy, he decided to hook those delicious creations to the cloud. Join Maarten and discover how you can connect a variety of devices (like *duino) and USB temperature sensors to Windows Azure to monitor brewing and fermentation temperatures. He'll show you how to do distributed brewing in this fun yet practical session on an interesting use case for the cloud: beer.

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Brewing Beer with Windows Azure (WAZUG.nl)

  1. 1. Brewing Beer with Windows Azure Maarten Balliauw @maartenballiauwAUGUST 30, 2012 | SLIDE 1
  2. 2. Who am I?  Maarten Balliauw  www.realdolmen.com  AZUG  Focus on web  ASP.NET MVC, Windows Azure, SignalR, ...  MVP Windows Azure & ASPInsider  http://blog.maartenballiauw.be  @maartenballiauwAUGUST 30, 2012 | SLIDE 3
  3. 3. Shameless commercial plug  Pro NuGet: http://amzn.to/pronuget  MyGet - NuGet-as-a-Service: http://www.myget.orgAUGUST 30, 2012 | SLIDE 4
  4. 4. Agenda  Brewing beer  BrewBuddy  Windows Azure Websites  Service Bus & Access Control Service (ACS)  We need an API  Q&AAUGUST 30, 2012 | SLIDE 5
  5. 5. Turn water into beer BREWING BEERAUGUST 30, 2012 | SLIDE 6
  6. 6. How it started…AUGUST 30, 2012 | SLIDE 7
  7. 7. How it started…  MVP Summit 2011  Wade Wegner talks about his homebrewing hobby  MVP Summit 2012  Wade Wegner talks about his homebrewing hobby  Convinced!AUGUST 30, 2012 | SLIDE 8
  8. 8. The process  Get your kegs clean  Add & boil ingredients  Pour in keg  Add yeast  RinseAUGUST 30, 2012 | SLIDE 9
  9. 9. The process Wait for fermentation to completeAUGUST 30, 2012 | SLIDE 10
  10. 10. The process  Pour into another keg  Rinse  Wait another week  Bottling time!AUGUST 30, 2012 | SLIDE 11
  11. 11. Difficult part… Wait at least 6 weeks for it to ageAUGUST 30, 2012 | SLIDE 12
  12. 12. Maarten… What does this have to do with Windows Azure?AUGUST 30, 2012 | SLIDE 13
  13. 13. Azurifying the home brewer WWW.BREWBUDDY.NETAUGUST 30, 2012 | SLIDE 14
  14. 14. BrewBuddy  View public recipes  Manage your own recipes  Manage your own brews  Monitor brew fermentationAUGUST 30, 2012 | SLIDE 15
  15. 15. BrewBuddy Social brewing at a glancedemoAUGUST 30, 2012 | SLIDE 16
  16. 16. Architecture Sensor Public website Windows Azure Web Sites Whatever… Database SQL Azure database Sensor data Sensor data processing Service Bus topic Windows Azure Worker RoleAUGUST 30, 2012 | SLIDE 17
  17. 17. Scale-fast has just become more interesting WINDOWS AZURE WEB SITESAUGUST 30, 2012 | SLIDE 18
  18. 18. Windows Azure Web Sites  Build with ASP.NET, Node.js or PHP  Deploy in seconds with FTP, Git or TFS  Start for free, scale up as your traffic growsAUGUST 30, 2012 | SLIDE 19
  19. 19. Windows Azure Web Sites shared 1SHARED INSTANCES AUGUST 30, 2012 | SLIDE 20
  20. 20. Windows Azure Web Sites shared 2SHARED INSTANCES AUGUST 30, 2012 | SLIDE 21
  21. 21. Windows Azure Web Sites reserved 0 1SHARED INSTANCES RESERVED INSTANCE AUGUST 30, 2012 | SLIDE 22
  22. 22. Windows Azure Web Sites reserved 2 RESERVED INSTANCEAUGUST 30, 2012 | SLIDE 23
  23. 23. Windows Azure Web Sites reserved 2 RESERVED INSTANCE RESERVED INSTANCEAUGUST 30, 2012 | SLIDE 24
  24. 24. A perfect ramp-up!  Start small  Web Sites are cheap  Scale to 3 reserved instances  Grow big!  Hosted Service – PaaS  Scale at willAUGUST 30, 2012 | SLIDE 25
  25. 25. Windows Azure Web Sites Creating a new web site in secondsdemoAUGUST 30, 2012 | SLIDE 26
  26. 26. Connecting sensors SERVICE BUS & ACCESS CONTROL SERVICEAUGUST 30, 2012 | SLIDE 27
  27. 27. Windows Azure Service Bus  2 features  Relay  Queues, Topics, SubscriptionsAUGUST 30, 2012 | SLIDE 28
  28. 28. Windows Azure Service Bus Relay relay ClientAUGUST 30, 2012 | SLIDE 29
  29. 29. Topics and subscriptions SensorAUGUST 30, 2012 | SLIDE 30
  30. 30. Characteristics  Workers can scale independently  Workers can fail independently  Sensors connect to service bus directly  No layer in between  CheaperAUGUST 30, 2012 | SLIDE 31
  31. 31. What about authN / authZ?  Access Control Service to the rescue!  SB authenticates clients over ACS  ACS provides “Send” claim to sensor  Claims can be granted/revoked easilyAUGUST 30, 2012 | SLIDE 32
  32. 32. Access Control Service Claims for authZ on Service BusdemoAUGUST 30, 2012 | SLIDE 33
  33. 33. Architecture Sensor Public website Windows Azure Web Sites Whatever… Sensor management Database Access Control Service SQL Azure database Sensor data Sensor data processing Service Bus topic Windows Azure Worker RoleAUGUST 30, 2012 | SLIDE 34
  34. 34. How do you link a sensor?  Every sensor has its sensor ID  Add it as an identity to ACS  Grant a “Send” claimAUGUST 30, 2012 | SLIDE 35
  35. 35. Linking a a sensor with Access Control Registering sensor to a brew ServicedemoAUGUST 30, 2012 | SLIDE 36
  36. 36. <french>Make everyone API!</french> WE NEED AN APIAUGUST 30, 2012 | SLIDE 37
  37. 37. Consuming the web  2000-2008: Desktop browser  2008-2012: Mobile browser  2008-2012: iPhone and Android apps  2010-2014: Tablets, tablets, tablets  2014-2016: Your fridge (Internet of Things)AUGUST 30, 2012 | SLIDE 38
  38. 38. AUGUST 30, 2012 | SLIDE 39
  39. 39. Twitter & Facebook By show of hands…AUGUST 30, 2012 | SLIDE 40
  40. 40. Make everyone API (as the French say)AUGUST 30, 2012 | SLIDE 41
  41. 41. What is an API?  Software-to-Software interface  Contract between software and developers  Functionalities, constraints (technical / legal) Programming instructions and standards  Open services to other software developers (public or private)AUGUST 30, 2012 | SLIDE 42
  42. 42. Expose services to 3rd parties  Valuable  Flexible  Managed  Supported  Have a planAUGUST 30, 2012 | SLIDE 43
  43. 43. Reach More ClientsAUGUST 30, 2012 | SLIDE 44
  44. 44. ASP.NET Web API  Part of ASP.NET MVC 4  Framework to build HTTP Services (REST)  Solid features  Modern HTTP programming model  Content negotiation (e.g. Xml, json, ...)  Query composition (OData query support)  Model binding and validation (conversion to .NET objects)  Routes  Filters (e.g. Validation, exception handling, ...)  And more!AUGUST 30, 2012 | SLIDE 45
  45. 45. Be detailed! Think about RFC 2324 (HTCPCP)AUGUST 30, 2012 | SLIDE 46
  46. 46. ASP.NET Web API Let’s craft a quick APIdemoAUGUST 30, 2012 | SLIDE 47
  47. 47. What about authN / authZ?  API access through OAuth2  Access Control Service to the rescue!  Client authorized in BrewBuddy.net  Access/refresh tokens through ACSAUGUST 30, 2012 | SLIDE 48
  48. 48. What about authN / authZ? API Consumer BrewBuddy.net client_id and client_secret access API authorize Initial authorization (yes/no) API implementation access/refresh token register delegation Access Control Service Access/Refresh TokenAUGUST 30, 2012 | SLIDE 49
  49. 49. Install-Package WindowsAzure.Acs.Oauth2 -IncludePrerelease Access Control Service for API’s OAuth2 delegationdemoAUGUST 30, 2012 | SLIDE 50
  50. 50. TAKEAWAYSAUGUST 30, 2012 | SLIDE 51
  51. 51. Keep in mind…  Web Sites start cheap / scale fast  Combine/grow at will (IaaS, PaaS, SaaS)  Service bus for asynchrony and scale  Access Control for devices  Web API & Access ControlAUGUST 30, 2012 | SLIDE 52
  52. 52. Cloud Burst 2012 - Sweden  September 27 – 28, 2012  Stockholm  http://www.azureug.se/CloudBurst2012AUGUST 30, 2012 | SLIDE 53
  53. 53. http://blog.maartenballiauw.be @maartenballiauw http://amzn.to/pronugetTHANK YOU!AUGUST 30, 2012 | SLIDE 54

×