Your SlideShare is downloading. ×
0
Windows Azure Mobile Services fromStart to RESTMTUG.ie Windows azure group #irishazureheadsApril 2013
Aidan CaseySolutions architect @MYOB Australiaaidancasey@gmail.com | @AIDANJCASEY | acaseyblog.wordpress.com
AgendaOverviewStoragePush NotificationsAuthentication & AuthorisationSchedulerDiagnostics & ScalePrize Giveaway!Questions ...
SDK’s• Windows Store• Windows Phone 8• iOS• Android• JavaScriptAll SDK’s are open sourced..github.com/WindowsAzure/azure-m...
What we are gonna build tonight
The swag that’s up for grabs!
DemoCREATING A NEW MOBILE SERVICES STACK & TWEETAGGREGATOR
Storage
Structured StorageWindows Azure SQL DatabaseDynamic schema on/offApps partitioned by schemaREST API generated per table (v...
JSON -> SQL data typesJSON value T-SQL typeNumeric values (integer, decimal, floating point) Float(53)Boolean BitDateTime ...
DemoJAVASCRIPT SDK
Server side Logic
“Data Centric” Server LogicBackend runs Node.js on small azure VM’s“Interceptors” exposed for all CRUD requests to all tab...
Unstructured Storage“Virtual Tables” let you short-circuit the database entirelyE.g. offload to Azure table storage, azure...
DemoINTERCEPTORS AND SENDING EMAILS WITH SENDGRID
Notifications
Push NotificationsThe global push object is used to send push notifications.Success & Error Callbacks are providedMethodpu...
Push Notification Lifecycle
DemoPUSH NOTIFICATIONS TO A WINDOWS STORE APP
Authentication & Authorisation
AuthorisationTable level authorization for CRUD operationsEveryone: any request by anyone is accepted.Anyone with Applicat...
CLI & Diagnostics
Command line toolsCan do “most things” from the command lineCreate/ Delete a new mobile serviceCreate / Delete a tableRegi...
Scheduler
DemoSCHEDULED TASK TO STORE TWEETS TO#IRISHAZUREHEADS
DemoUSING THE REST API
Cool Third Party Add-Ons
10 MobileServices1GB SQL Database700 jobs a month
PreviewNo availability SLAGeneral Availability99.9%Shared Instance(multitenant environment)Small instance is the onlysize ...
Thanks to our sponsors
Competition Time!github.com/aidancasey/AzureMobileServicesGiveAway
tweets to -#irishazureheadsregister your details here -azurecompetition.azurewebsites.net*All personal details will be del...
the swag …
ResourcesOfficial Videos & Tutorialshttp://www.windowsazure.com/en-us/develop/mobile/Real world Use Cases & black belt tip...
MTUG needs you !
Windows azure mobile services from start to rest
Windows azure mobile services from start to rest
Windows azure mobile services from start to rest
Windows azure mobile services from start to rest
Windows azure mobile services from start to rest
Upcoming SlideShare
Loading in...5
×

Windows azure mobile services from start to rest

1,317

Published on

slidedeck for a talk at the Microsoft Technology User Group on April 18th 2013.

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
1,317
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
8
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide
  • It’s a back end for you mobile apps Giving you storage, authentication oAuth with various social networksServer side business logic with node.js interceptorsPush notifications to different mobile devicesSchedulerOther players include  Parse, Kinvey, Buddy, AppceleratorRelatively recent development in cloud computing started circa 2011
  • All SDKs are open sourced on GitHubREST API for any other device….
  • Both structured & unstructured storage availableWindows Azure SQL database with a dynamic schema or whatever you fancy!
  • Cross-origin resource sharing (CORS) is a mechanism that allows a web page to make XMLHttpRequests to another domain.Such "cross-domain" requests would otherwise be forbidden by web browsers, per the same origin security policy. CORS defines a way in which the browser and the server can interact to determine whether or not to allow the cross-origin request.
  • Some commands to run…azure mobile listazure mobile table list irishazureheads
  • Transcript of "Windows azure mobile services from start to rest"

    1. 1. Windows Azure Mobile Services fromStart to RESTMTUG.ie Windows azure group #irishazureheadsApril 2013
    2. 2. Aidan CaseySolutions architect @MYOB Australiaaidancasey@gmail.com | @AIDANJCASEY | acaseyblog.wordpress.com
    3. 3. AgendaOverviewStoragePush NotificationsAuthentication & AuthorisationSchedulerDiagnostics & ScalePrize Giveaway!Questions & Answers
    4. 4. SDK’s• Windows Store• Windows Phone 8• iOS• Android• JavaScriptAll SDK’s are open sourced..github.com/WindowsAzure/azure-mobile-services
    5. 5. What we are gonna build tonight
    6. 6. The swag that’s up for grabs!
    7. 7. DemoCREATING A NEW MOBILE SERVICES STACK & TWEETAGGREGATOR
    8. 8. Storage
    9. 9. Structured StorageWindows Azure SQL DatabaseDynamic schema on/offApps partitioned by schemaREST API generated per table (very data centric platform)Access your data through the portal, SQL Management studio or REST API
    10. 10. JSON -> SQL data typesJSON value T-SQL typeNumeric values (integer, decimal, floating point) Float(53)Boolean BitDateTime DateTimeOffset(3)String Nvarchar(max)
    11. 11. DemoJAVASCRIPT SDK
    12. 12. Server side Logic
    13. 13. “Data Centric” Server LogicBackend runs Node.js on small azure VM’s“Interceptors” exposed for all CRUD requests to all tablesYou only get access to a predefined set of node modulesThird party apps exposed through node modules (sendgrid, twilio, pusher)request, console, push.*, tables, sql, statusCodes, azure, mssql
    14. 14. Unstructured Storage“Virtual Tables” let you short-circuit the database entirelyE.g. offload to Azure table storage, azure blob storage, service bus queues !var azure = require(azure);var accountName = <storage-account-name>;var accountKey = <storage-account-key>;var host = accountName + .blob.core.windows.net;var blobService = azure.createBlobService(accountName, accountKey, host);
    15. 15. DemoINTERCEPTORS AND SENDING EMAILS WITH SENDGRID
    16. 16. Notifications
    17. 17. Push NotificationsThe global push object is used to send push notifications.Success & Error Callbacks are providedMethodpush. apns Apple Push Notification Service iOS appspush. gcm Google Cloud Messaging Android appspush. mpns Microsoft Push Notification Service Windows Phone 8 appspush. wns Windows Notification Services Windows Store apps
    18. 18. Push Notification Lifecycle
    19. 19. DemoPUSH NOTIFICATIONS TO A WINDOWS STORE APP
    20. 20. Authentication & Authorisation
    21. 21. AuthorisationTable level authorization for CRUD operationsEveryone: any request by anyone is accepted.Anyone with Application Key: app key distributed w/ the app (default)Authenticated Users: users authenticated by Live Connect.Scripts and Admins: registered scripts or requests via the master keyApplication Key should not be used in production !
    22. 22. CLI & Diagnostics
    23. 23. Command line toolsCan do “most things” from the command lineCreate/ Delete a new mobile serviceCreate / Delete a tableRegister table scriptslist tables/ mobile servicesNo access to the scheduler from the command line 
    24. 24. Scheduler
    25. 25. DemoSCHEDULED TASK TO STORE TWEETS TO#IRISHAZUREHEADS
    26. 26. DemoUSING THE REST API
    27. 27. Cool Third Party Add-Ons
    28. 28. 10 MobileServices1GB SQL Database700 jobs a month
    29. 29. PreviewNo availability SLAGeneral Availability99.9%Shared Instance(multitenant environment)Small instance is the onlysize available; multiple maybe purchasedFree at public previewlaunchUp to 10 applicationsReserved Instance(private VM)Small instance is the onlysize available; multiple maybe purchasedCharge for Preview will beat the same reduced rateas azure websitesUp to 10 applications
    30. 30. Thanks to our sponsors
    31. 31. Competition Time!github.com/aidancasey/AzureMobileServicesGiveAway
    32. 32. tweets to -#irishazureheadsregister your details here -azurecompetition.azurewebsites.net*All personal details will be deleted afterwards
    33. 33. the swag …
    34. 34. ResourcesOfficial Videos & Tutorialshttp://www.windowsazure.com/en-us/develop/mobile/Real world Use Cases & black belt tipshttp://chrisrisner.com/Common-Scenarios-with-Windows-Azure-Mobile-ServicesMr Azure Mobile Services (Josh Twist)http://www.thejoyofcode.com/Cloud Nick ( Nick Harris )http://www.nickharris.net/
    35. 35. MTUG needs you !
    1. A particular slide catching your eye?

      Clipping is a handy way to collect important slides you want to go back to later.

    ×