20
Developing Mobile Apps with Windows Azure Mobile Services Pongsakorn Poosankam Microsoft Innovation Center – Manager Microsoft (Thailand) Limited

Developing Mobile Apps with Windows Azure Mobile Services Pongsakorn Poosankam Microsoft Innovation Center – Manager Microsoft (Thailand) Limited

Embed Size (px)

Citation preview

Page 1: Developing Mobile Apps with Windows Azure Mobile Services Pongsakorn Poosankam Microsoft Innovation Center – Manager Microsoft (Thailand) Limited

Developing Mobile Apps

with Windows Azure Mobile Services

Pongsakorn PoosankamMicrosoft Innovation Center – ManagerMicrosoft (Thailand) Limited

Page 2: Developing Mobile Apps with Windows Azure Mobile Services Pongsakorn Poosankam Microsoft Innovation Center – Manager Microsoft (Thailand) Limited

Kind of Mobile Apps Offline Online Hybrid

Me Thai Radio Live AIS Book Store

Page 3: Developing Mobile Apps with Windows Azure Mobile Services Pongsakorn Poosankam Microsoft Innovation Center – Manager Microsoft (Thailand) Limited

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

Page 4: Developing Mobile Apps with Windows Azure Mobile Services Pongsakorn Poosankam Microsoft Innovation Center – Manager Microsoft (Thailand) Limited

What is Windows Azure Mobile Services?

Data

Notifications

Auth

Server Logic

Scale

Logging

Diagnostics

Page 5: Developing Mobile Apps with Windows Azure Mobile Services Pongsakorn Poosankam Microsoft Innovation Center – Manager Microsoft (Thailand) Limited

http://www.microsoft.com/en-us/download/details.aspx?id=8396

Page 6: Developing Mobile Apps with Windows Azure Mobile Services Pongsakorn Poosankam Microsoft Innovation Center – Manager Microsoft (Thailand) Limited

Getting Starteda backend for your mobile app in

minutes Demo

Page 7: Developing Mobile Apps with Windows Azure Mobile Services Pongsakorn Poosankam Microsoft Innovation Center – Manager Microsoft (Thailand) Limited

Structured StorageStructured Storage with SQL DatabaseIf using single database apps are partitioned by schema

AppX.TodoitemAppY.Todoitem

Manage data inPortalSQL PortalSQL Management StudioREST API…

Page 8: Developing Mobile Apps with Windows Azure Mobile Services Pongsakorn Poosankam Microsoft Innovation Center – Manager Microsoft (Thailand) Limited

Server Logic

Automatic service REST API generated for storageDynamic Schema on/offAbility to author server logic that intercepts CRUD operation pipelineRich querying capability

Page 9: Developing Mobile Apps with Windows Azure Mobile Services Pongsakorn Poosankam Microsoft Innovation Center – Manager Microsoft (Thailand) Limited

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)

Page 10: Developing Mobile Apps with Windows Azure Mobile Services Pongsakorn Poosankam Microsoft Innovation Center – Manager Microsoft (Thailand) Limited

Server Logicadding server logic on CRUD

operations Demo

Page 11: Developing Mobile Apps with Windows Azure Mobile Services Pongsakorn Poosankam Microsoft Innovation Center – Manager Microsoft (Thailand) Limited

Push Notification Lifecycle Overview 1. Request Channel URI

2. Register with your Cloud Service

3. Authenticate & Push Notification

Windows 8

(1)

(2)

(3)

(3)

Page 12: Developing Mobile Apps with Windows Azure Mobile Services Pongsakorn Poosankam Microsoft Innovation Center – Manager Microsoft (Thailand) Limited

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

Page 13: Developing Mobile Apps with Windows Azure Mobile Services Pongsakorn Poosankam Microsoft Innovation Center – Manager Microsoft (Thailand) Limited

Push NotificationsDemo

Page 14: Developing Mobile Apps with Windows Azure Mobile Services Pongsakorn Poosankam Microsoft Innovation Center – Manager Microsoft (Thailand) Limited

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

Page 15: Developing Mobile Apps with Windows Azure Mobile Services Pongsakorn Poosankam Microsoft Innovation Center – Manager Microsoft (Thailand) Limited

Adding Authenticationhooking up Windows Live in minutesDemo

Page 16: Developing Mobile Apps with Windows Azure Mobile Services Pongsakorn Poosankam Microsoft Innovation Center – Manager Microsoft (Thailand) Limited

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

Page 17: Developing Mobile Apps with Windows Azure Mobile Services Pongsakorn Poosankam Microsoft Innovation Center – Manager Microsoft (Thailand) Limited

Diagnostics, Logging, Scale

Demo

Page 18: Developing Mobile Apps with Windows Azure Mobile Services Pongsakorn Poosankam Microsoft Innovation Center – Manager Microsoft (Thailand) Limited

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

Page 19: Developing Mobile Apps with Windows Azure Mobile Services Pongsakorn Poosankam Microsoft Innovation Center – Manager Microsoft (Thailand) Limited

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

Page 20: Developing Mobile Apps with Windows Azure Mobile Services Pongsakorn Poosankam Microsoft Innovation Center – Manager Microsoft (Thailand) Limited

20