31
Windows Azure Mobile Services Connecting Cross Platform Devices

Windows Azure Mobile Services, Connecting Cross Platform Devices

Embed Size (px)

DESCRIPTION

People are getting more and more connected and moving away from computers to using more mobile devices than ever before. Tablets, phones, slates are becoming the new computers. All these devices and applications also need data, synchronization, security and much more. The broad reach, the number of devices and apps and the big amount of different platforms existing today, are pushing the needs for scalable and high available solutions running on a solid cloud platform, like Windows Azure. One of the killer features of Windows Azure is WAMS, the Windows Azure Mobile Services. A Solid platform to connect cross platform devices and to open up a big set of features needed to build mobile applications. In this session we will give you an introduction to WAMS, show you its true power and demonstrate how it can be used on multiple platforms to have one common way of connectivity. Managing and opening up your data to mobile users, while keeping the flexibility of validation and queries. Securing your applications by enabling authentication and authorization and by allowing the user to do single sign on or to use his favorite identity provider like Live, Facebook or Twitter. Enabling standard communication means like email and SMS, directly from your own application. And last but not least, enriching applications using push notifications, to send information from server to client and to notify users about new content.

Citation preview

Page 1: Windows Azure Mobile Services, Connecting Cross Platform Devices

Windows Azure Mobile ServicesConnecting Cross Platform Devices

Page 2: Windows Azure Mobile Services, Connecting Cross Platform Devices

Who Am I?

• Kristof Rennen

• Technical Architect at Vanbreda Risk & Benefits• Microsoft Extended Experts Team Member• Crew Member of Azug, the Belgian Windows Azure User

Group

• @kristofrennen• [email protected]

Page 3: Windows Azure Mobile Services, Connecting Cross Platform Devices

WAMSDataAuth*NotificationsDiagnostics & Scale

Agenda

Page 4: Windows Azure Mobile Services, Connecting Cross Platform Devices

Windows Azure Mobile Services

Page 5: Windows Azure Mobile Services, Connecting Cross Platform Devices

What is WAMS?

Data

Notifications

Auth

Server Logic

Scale

Logging

Diagnostics

Page 6: Windows Azure Mobile Services, Connecting Cross Platform Devices

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.

Page 7: Windows Azure Mobile Services, Connecting Cross Platform Devices

Setting up a Mobile ServiceDemo

Page 8: Windows Azure Mobile Services, Connecting Cross Platform Devices

Data

Page 9: Windows Azure Mobile Services, Connecting Cross Platform Devices

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 10: Windows Azure Mobile Services, Connecting Cross Platform Devices

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

Page 11: Windows Azure Mobile Services, Connecting Cross Platform Devices

Server LogicSupported Modules + Globals

mssqlrequestconsolepushtablesstatusCodes

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

} }

);

Page 12: Windows Azure Mobile Services, Connecting Cross Platform Devices

REST API to SQL type mappings

JSON Value T-SQL Type

Numeric values (integer, decimal, floating point)

Float

Boolean Bit

DateTime DateTimeOffset(3)

String Nvarchar(max)

Page 13: Windows Azure Mobile Services, Connecting Cross Platform Devices

Working with DataDemo

Page 14: Windows Azure Mobile Services, Connecting Cross Platform Devices

Auth*

Page 15: Windows Azure Mobile Services, Connecting Cross Platform Devices

Auth*Authenticate against Windows Live, Twitter, Facebook, …Table 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

Page 16: Windows Azure Mobile Services, Connecting Cross Platform Devices

Securing your service and appDemo

Page 17: Windows Azure Mobile Services, Connecting Cross Platform Devices

Notifications

Page 18: Windows Azure Mobile Services, Connecting Cross Platform Devices

Push Notification Lifecycle Overview1. Request Channel URI

2. Register with your Cloud Service

3. Authenticate & Push Notification

Windows 8

(1)

(2)

(3)

(3)

Page 19: Windows Azure Mobile Services, Connecting Cross Platform Devices

Push NotificationsIntegrates with WNS to provide Toast, Tile and Badge 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 20: Windows Azure Mobile Services, Connecting Cross Platform Devices

Supported NotificationssendTileSquareBlocksendTileSquareText01sendTileSquareText02sendTileSquareText03sendTileSquareText04sendTileWideText01sendTileWideText02sendTileWideText03sendTileWideText04sendTileWideText05sendTileWideText06sendTileWideText07sendTileWideText08sendTileWideText09sendTileWideText10sendTileWideText11sendTileSquareImagesendTileSquarePeekImageAndText01sendTileSquarePeekImageAndText02sendTileSquarePeekImageAndText03sendTileSquarePeekImageAndText04

sendTileWideSmallImageAndText01sendTileWideSmallImageAndText02sendTileWideSmallImageAndText03sendTileWideSmallImageAndText04sendTileWideSmallImageAndText05sendTileWidePeekImageCollection01sendTileWidePeekImageCollection02sendTileWidePeekImageCollection03sendTileWidePeekImageCollection04sendTileWidePeekImageCollection05sendTileWidePeekImageCollection06sendTileWidePeekImageAndText01sendTileWidePeekImageAndText02sendTileWidePeekImage01sendTileWidePeekImage02sendTileWidePeekImage03sendTileWidePeekImage04sendTileWidePeekImage05sendTileWidePeekImage06

sendToastText01sendToastText02sendToastText03sendToastText04sendToastImageAndText01sendToastImageAndText02sendToastImageAndText03sendToastImageAndText04

Page 21: Windows Azure Mobile Services, Connecting Cross Platform Devices

Notify users using Push NotificationsDemo

Page 22: Windows Azure Mobile Services, Connecting Cross Platform Devices

Diagnostics & Scale

Page 23: Windows Azure Mobile Services, Connecting Cross Platform Devices

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 24: Windows Azure Mobile Services, Connecting Cross Platform Devices

Diagnostics & ScaleDemo

Page 25: Windows Azure Mobile Services, Connecting Cross Platform Devices

Free offer during 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

Page 26: Windows Azure Mobile Services, Connecting Cross Platform Devices

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

Page 27: Windows Azure Mobile Services, Connecting Cross Platform Devices

Summary

Data

Notifications

Auth

Server Logic

Scale

Logging

Diagnostics

Page 28: Windows Azure Mobile Services, Connecting Cross Platform Devices

Resources

28

Tutorials - Mobile Services Developer Portal http://www.windowsazure.com/mobile

API Reference http://bit.ly/Q3Aq6G

iOS and Android http://chrisrisner.com/

Page 29: Windows Azure Mobile Services, Connecting Cross Platform Devices

Build apps on Windows. Discover your new home.

http://msdn.be/apps

Page 30: Windows Azure Mobile Services, Connecting Cross Platform Devices

http://www.microsoft.com/belux/meet/

Page 31: Windows Azure Mobile Services, Connecting Cross Platform Devices

THANK YOU