Brewing Beer with Windows Azure - ASPConf
Upcoming SlideShare
Loading in...5
×
 

Brewing Beer with Windows Azure - ASPConf

on

  • 2,055 views

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 ...

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.

Statistics

Views

Total Views
2,055
Views on SlideShare
2,036
Embed Views
19

Actions

Likes
1
Downloads
6
Comments
0

4 Embeds 19

https://si0.twimg.com 12
https://twimg0-a.akamaihd.net 4
https://twitter.com 2
http://us-w1.rockmelt.com 1

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment
  • Maarten
  • Maarten
  • Don’t show everythingyet. Just log in, show themaround the recipes, brewsand public recipes. Feel free to show the monitoring but no needto display the linking of sensors.
  • Show Windows Azure Web SitesShow scaling / reservedinstances
  • Show peoplearound the ACS porta. Show identities, claims andrulegroups.
  • Link a sensor to a brew. Show the effect on ACS. Show the code.
  • Link a sensor to a brew. Show the effect on ACS. Show the code.
  • Show peoplearound the ACS porta. Show identities, claims andrulegroups.

Brewing Beer with Windows Azure - ASPConf Brewing Beer with Windows Azure - ASPConf Presentation Transcript

  • Brewing Beer with Windows Azure Maarten Balliauw @maartenballiauwhttp://jabbr.net/#/rooms/aspconf-room4
  • Who am I?• Maarten Balliauw• www.realdolmen.com• Focus on web – ASP.NET MVC, Windows Azure, SignalR, ... – MVP Windows Azure & ASPInsider• http://blog.maartenballiauw.be• @maartenballiauw
  • Antwerp, Belgium
  • Who am I?• Maarten Balliauw• www.realdolmen.com• Focus on web – ASP.NET MVC, Windows Azure, SignalR, ... – MVP Windows Azure & ASPInsider• http://blog.maartenballiauw.be• @maartenballiauw
  • Shameless commercial plug• Pro NuGet: http://amzn.to/pronuget• MyGet - NuGet-as-a-Service: http://www.myget.org
  • Agenda• Brewing beer• BrewBuddy• Windows Azure Websites• Service Bus & Access Control Service (ACS)• We need an API http://jabbr.net/#/rooms/aspconf-room4• Q&A
  • Turn water into beerBrewing Beer
  • How it started…
  • How it started…• MVP Summit 2011 – Wade Wegner talks about his homebrewing hobby• MVP Summit 2012 – Wade Wegner talks about his homebrewing hobby• Convinced!
  • The process• Get your kegs clean• Add & boil ingredients• Pour in keg• Add yeast• Rinse
  • The processWait for fermentation to complete
  • The process• Pour into another keg• Rinse• Wait another week• Bottling time!
  • Difficult part…Wait at least 6 weeks for it to age
  • Maarten… What does this haveto do with Windows Azure?
  • Azurifying the home brewerwww.BrewBuddy.net
  • BrewBuddy• View public recipes• Manage your own recipes• Manage your own brews• Monitor brew fermentation
  • BrewBuddy Social brewing at a glancedemo
  • Architecture Sensor Public website Windows Azure Web Sites Whatever… Database SQL Azure database Sensor data Sensor data processing Service Bus topic Windows Azure Worker Role
  • Scale-fast has just become more interestingWindows Azure Web Sites
  • 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 grows
  • Windows Azure Web Sites shared 1SHARED INSTANCES
  • Windows Azure Web Sites shared 2SHARED INSTANCES
  • Windows Azure Web Sites reserved 0 1SHARED INSTANCES RESERVED INSTANCE
  • Windows Azure Web Sites reserved 2 RESERVED INSTANCE
  • Windows Azure Web Sites reserved 2 RESERVED INSTANCE RESERVED INSTANCE
  • A perfect ramp-up!• Start small – Web Sites are cheap – Scale to 3 reserved instances• Grow big! – Hosted Service – PaaS – Scale at will
  • Windows Azure Web Sites Creating a new web site in secondsdemo
  • Connecting sensorsService Bus& Access Control Service
  • Windows Azure Service Bus• 2 features – Relay – Queues, Topics, Subscriptions
  • Windows Azure Service Bus Relay relay Client
  • Topics and subscriptions Sensor
  • Characteristics• Workers can scale independently• Workers can fail independently• Sensors connect to service bus directly – No layer in between – Cheaper
  • 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 easily
  • Access Control Service Claims for authZ on Service Busdemo
  • 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 Role
  • How do you link a sensor?• Every sensor has its sensor ID• Add it as an identity to ACS• Grant a “Send” claim
  • Linking a sensor toAccess Control Registering a sensor with a brew Servicedemo
  • <french>Make everyone API!</french>We need an API
  • 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
  • Do we need one?• Reach to scale• Smartphone generation• BYOD with 3 screens: phone, tablet and computer• Flexibility in providing content• You have data to share• Integration
  • Build Richer AppsReach More Clients
  • 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!
  • ASP.NET Web API Let’s craft a quick APIdemo
  • What about authN / authZ?• API access through OAuth2• Access Control Service to the rescue!• Client authorized in BrewBuddy.net• Access/refresh tokens through ACS
  • 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 Token
  • Access Control Service for API’s OAuth2 delegationdemo Install-Package WindowsAzure.Acs.Oauth2 -IncludePrerelease
  • Takeaways
  • 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 Control
  • Related sessionsToday• 3:30-5pm UTC – Test-First and Functional-First with Web API (room 3)• 8-9:30pm UTC – Ask the Experts (SignalR, MVC, Web API) (live video)• 9:30-11pm UTC – Azure SDK (room 1) – Introduction to the ASP.NET Web API (room 2)Tomorrow• 3:30-5pm UTC – From Zero to Hero: Windows Azure Web Sites and TFS Preview (room 3) – Advanced ASP.NET Web API (room 5)• 9:30-11pm UTC – The Lightweight Approach to Building Web Based APIs with .Net
  • Q&A
  • http://bit.ly/Mrx0tH Brewing Beer with Windows AzureThanks! @maartenballiauw