building windows phone apps with windows azure mobile services

Post on 12-Feb-2016

32 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

DESCRIPTION

Building Windows Phone Apps with Windows Azure Mobile Services. Dmitry Krainyk DataArt. Agenda. Windows Azure Mobile Services Data Push Notifications Auth Diagnostics & Scale. What is Windows Azure Mobile Services?. Auth. Data. Notifications. Logging & Diag. Server Logic. - PowerPoint PPT Presentation

TRANSCRIPT

Building Windows Phone Apps with Windows Azure Mobile ServicesDmitry KrainykDataArt

Windows Azure Mobile ServicesDataPush NotificationsAuthDiagnostics & Scale

Agenda

What is Windows Azure Mobile Services?

Data

Notifications

Auth

Server LogicLogging & Diag

ScaleScheduler

Key ScenariosWindows Azure Mobile Services are ideal for:Modern mobile appsWindows Store Apps, Windows Phone, iOS, Android

Common ScenariosReduces the friction associated with repeating common tasks such as user authentication, push notifications and structured storage

Rapid DevelopmentTime is money. Get your app up and running sooner when you use Mobile Services to configure a straightforward and secure backend in less than five minutes.

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

Server LogicSupported Modules + Globals

mssqlrequestconsolepush.*tablesstatusCodes

mssql.query('select top 1 * from statusupdates', { success: function(results) { console.log(results);

} }

);

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

AppX.TodoitemAppY.Todoitem

Manage data inPortalSQL PortalSQL Management StudioREST API…

REST API to SQL type mappingsJSON Value T-SQL TypeNumeric values (integer, decimal, floating point)

Float

Boolean BitDateTime DateTimeOffset(3)String Nvarchar(max)

Push Notification Lifecycle Overview 1. Request Channel URI

2. Register with your Cloud Service

3. Authenticate & Push Notification

WP 8

(1)

(2)

(3)

(3)

Auth*Authenticate against Microsoft Account, Twitter, Facebook, GoogleTable level permissions for each CRUD operation

EveryoneAnyone with the Application KeyOnly Authenticated UsersOnly Scripts and Admins

More granular control with server side scriptsuser.level: {admin, authenticated, anonymous}user.userId: id or undefined if not authenticated

SchedulerExecute scripts on a Schedule

by Minutesby Hoursby DaysBy Months

Execute scripts on DemandExamples Periodic purge of old data Poll and aggregate from 3rd party (Twitter, RSS, others) Process/resize images Schedule sending push notifications for a given time of day

Diagnostics, Logging and ScaleDiagnosticsAPI 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 capacity

Pricing during Previewreserved mode

service level agreements

PreviewNo availability SLA*

General Availability99.9%

Shared Instance

Small instance is the only size availableFree - 10 applications with unlimited inbound data. Capped max of 165MB outbound data/dayPay - SQL Database

Private VM

Small instance is the only size available Free - unlimited inbound data. 165MB outbound data/day, excess charged. Pay - SQL Database, Compute same reduced rate as Web Sites i.e 33% discount, excess outbound transfers starting at $0.12/GBUp to 100 applications

shared mode

Pricing Example:

10 x Mobile Services on shared instances

100MB SQLDatabase

Unlimited ingress

<165MB daily egress

How?10 FREE mobile services on shared instanceIncludes 165MB/day of FREE egress from API calls Cost - All services sharing a 100MB DB is $5 USD / Month Use Pricing Calculator to Estimate your costs

=$5/ Month

Note: Free Egress is per subscription, not per mobile service

Q&A: Dmitry Krainyk, DataArtLearn more & try tutorialsTutorials, Samples, Reference Docs: http://www.windowsazure.com/mobile

Help with Mobile ServicesQ&A Forum: Windows Azure Mobile Services ForumFeedback: mobileservices@microsoft.com Twitter: @cloudnick (Windows 8, Windows Phone 8), @chrisrisner (iOS, Android)

Presentations, demos, hands on labsWindows Azure Training Kit: Download here

top related