330 likes | 459 Views
Windows Azure Sydney User Group June 2013. Building mobile back ends with windows a zure m obile s ervices. Aidan Casey. Solutions architect @MYOB Australia. @AIDANJCASEY | acaseyblog.wordpress.com. Agenda. BaaS overview
E N D
Windows Azure Sydney User Group June 2013 Building mobile back ends with windows azure mobile services
Aidan Casey Solutions architect @MYOB Australia @AIDANJCASEY | acaseyblog.wordpress.com
Agenda BaaS overview Windows Azure Mobile Services Features - Storage - Push Notifications - Authentication & Authorisation - Scheduler - Diagnostics & Scale
18weeks! http://www.kinvey.com/blog/2086/how-long-does-it-take-to-build-a-mobile-app
Killer Idea Choose Technology User Experience Store Data Push Scale Social Integration Security Versioning Analytics API Geo Location
Backend as a Service (BaaS) Store Data Push Scale Social Integration Security Versioning Analytics API Geo Location
Notifications Data Auth Logging & Diag Server Logic Scheduler Scale
SDK’s • Windows Store • Windows Phone 8 • iOS • Android • JavaScript github.com/WindowsAzure/azure-mobile-services
Demo creating a new MOBILE SERVICES APP
Storage Data
Structured Storage • Windows Azure SQL Database • Dynamic schema on/off • Apps partitioned by schema • REST API generated per table (very data centric platform) • Access your data through the portal, SQL Management studio or REST API
Demo USING THE Javascriptsdk
Server Logic – node.js node.js on small azure VM’s (azure websites infrastructure) Server side pipeline hooks (interceptors) Out of the box you have access to the following node packages (June Release) - you now have access to NPM • request, console, push.*, tables, sql, statusCodes, azure, mssql
Bypassing SQL Server storage • 1. Virtual Tables • 2 Create Custom API
Notifications Notifications
Push Notifications The global push object is used to send push notifications. Success & Error Callbacks are provided
Push Notification Lifecycle Mobile Services iOS register app for push notifications register the apple send token to Mobile Service Server side script push.apns(…) App (2) (3) (1) Apple Push Notification Service (3)
Demo Push notifications TO A Windows store app
Authorisation Table level authorization for CRUD operations Everyone: 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 key Application Key should not be used in production !
Scheduler Scheduler
Free offer for current preview release 10 Mobile Services 1GB SQLDatabase Unlimited ingress 165MB daily egress 700 jobs a month Scheduler Running on shared instances Data transfer is per subscription, not per mobile service
Resources • Official Videos & Tutorials • http://www.windowsazure.com/en-us/develop/mobile/ • Real world Use Cases & black belt tips • http://chrisrisner.com/Common-Scenarios-with-Windows-Azure-Mobile-Services • Mr Azure Mobile Services (Josh Twist) • http://www.thejoyofcode.com/ • Cloud Nick ( Nick Harris ) • http://www.nickharris.net/