Developing Mobile Apps
with Windows Azure Mobile Services
Pongsakorn PoosankamMicrosoft Innovation Center – ManagerMicrosoft (Thailand) Limited
Kind of Mobile Apps Offline Online Hybrid
Me Thai Radio Live AIS Book Store
Be hide the scene
Windows Azure
1+ Terabytes of Data2+ million subscribers5,000+ registers/day90% Thai e-Publishingreduced IT costs by 30%
http://bit.ly/KamauU
ScalableHigh AvailabilitySave CostSelf ServiceFlexible
What is Windows Azure Mobile Services?
Data
Notifications
Auth
Server Logic
Scale
Logging
Diagnostics
http://www.microsoft.com/en-us/download/details.aspx?id=8396
Getting Starteda backend for your mobile app in
minutes Demo
Structured StorageStructured Storage with SQL DatabaseIf using single database apps are partitioned by schema
AppX.TodoitemAppY.Todoitem
Manage data inPortalSQL PortalSQL Management StudioREST API…
Server Logic
Automatic service REST API generated for storageDynamic Schema on/offAbility to author server logic that intercepts CRUD operation pipelineRich querying capability
REST API to SQL type mappings
JSON Value T-SQL TypeNumeric values (integer, decimal, floating point)
Float(53)
Boolean BitDateTime DateTimeOffset(3)String Nvarchar(max)
Server Logicadding server logic on CRUD
operations Demo
Push Notification Lifecycle Overview 1. Request Channel URI
2. Register with your Cloud Service
3. Authenticate & Push Notification
Windows 8
(1)
(2)
(3)
(3)
Push Notifications
Integrates with WNS to provide Toast, Tile, Badge and Raw notificationsPortal captures your WNS client secret and package SIDpush.wns.* provides:
clean easy object model to compose notifications
Performs auth against WNS for you
Push NotificationsDemo
Auth*
Authenticate against Windows LiveTable level permissions for each CRUD operation
EveryoneAnyone with the Application KeyOnly Authenticated UsersOnly Scripts and Admins
More granular control with server side scripts
Adding Authenticationhooking up Windows Live in minutesDemo
Diagnostics, Logging and Scale
DiagnosticsAPI callsCPU TimeData Out
Loggingconsole.error(…)console.log(…)
Scale - ComputeScale out instance countScale up VM size
Scale - StorageScale out mobile service tenant to dedicated SQL DBScale up SQL DB
Diagnostics, Logging, Scale
Demo
Free Offer at Launch
Running on shared instances
10 Mobile Services 1GB SQL
Database
Must be deployed to US-East DC
Data transfer is per subscription, not per mobile service
No SLA during Preview. Only small instances available. Can upgrade to a reserved instance at 33% discount from normal Pay-As-You-Go rates during Preview.
From
WA
Free Tria
lUnlimited ingress
165MB daily egress
Summary
Data
Notifications
Auth
Server Logic
Scale
Logging
Diagnostics
Available Preview• Windows 8
Coming soon• Windows Phone• iPhone• Android
Start $5 per month• 100 MB MSSQL• Share compute
20