Upload
david-isbitski
View
306
Download
5
Tags:
Embed Size (px)
DESCRIPTION
Session: 5 - Windows Phone 8 and Azure Mobile Services Event: Washington DC Windows Phone 8 Jumpstart Date: March 2013
Citation preview
David IsbitskiTechnical Evangelist, Microsofthttp://blogs.msdn.com/davedev@TheDaveDev
Building Windows Phone Apps with Windows Azure Mobile Services
Now is the time to write your game. Enjoy the first to market advantage!
twitter.com/thedavedev | [email protected]
http://bit.ly/genapp8
Windows Azure Mobile ServicesDataPush NotificationsAuthDiagnostics & Scale
Agenda
Data
Notifications
Auth
Server Logic
Scale
Logging
Diagnostics
What is Windows Azure Mobile Services?
Windows Azure Mobile Services are ideal for:
Modern mobile appsReduces 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.
Apps requiring structured data Seamlessly connect to a Windows Azure SQL database for simple data management and dynamically created tables. Easy to set and manage permissions.
Key Scenarios
a backend for your mobile apps in minutes
demoGetting Started
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)
adding server logic on CRUD operations
demoServer Logic
1. Request Channel URI
2. Register with your Cloud Service
3. Authenticate & Push Notification
Windows 8
(1)
(2)
(3)
(3)
Push Notification Overview
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
hooking up to Twitter or Facebook in minutes
demoAdding Authentication
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 notification lifecycle made easy
demoPush Notifications
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
demo
Diagnostics, Logging, Scale
Free Offer at Preview
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
Pricingpricing & licensing $ service level
agreements
PreviewNo availability SLA
General Availability99.9%
Shared Instance (multitenant environment)
Small instance is the only size available; multiple may be purchased
Free at public preview launch
Up to 10 applications
Reserved Instance (private VM)
Small instance is the only size available; multiple may be purchased
Charge for Preview will be at the same reduced rate as Web Sites
Up to 10 applications
Summary
Data
Notifications
Auth
Server Logic
Scale
Logging
Diagnostics
Resources• http://www.WindowsAzure.com/mobile
David IsbitskiTechnical Evangelist, Microsofthttp://blogs.msdn.com/davedev@TheDaveDev
Building Windows Phone Apps with Windows Azure Mobile Services
Now is the time to write your game. Enjoy the first to market advantage!
twitter.com/thedavedev | [email protected]
http://bit.ly/genapp8
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to
be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS
PRESENTATION.