26
Store and Access Windows Phone Data In Windows Azure Mobile Services

Windows azure mobile services and windows phone 8

Embed Size (px)

DESCRIPTION

 

Citation preview

Page 1: Windows azure mobile services and windows phone 8

Store and Access Windows Phone Data In Windows Azure Mobile Services

Page 2: Windows azure mobile services and windows phone 8

Karthikeyan AnbarasanFounder, F5debug Inc.

Microsoft MVP/ Rockstar

Nokia Developer Champion

@f5debug

www.f5deug.net

www.facebook.com/f5debug

Page 3: Windows azure mobile services and windows phone 8

Agenda

Windows Phone 8

Cloud Computing & Windows Azure

Windows Azure Mobile Services

Mobility + Cloud = Perfect Pair

Demo

Q & A

Page 4: Windows azure mobile services and windows phone 8

Windows Phone 8

Microsoft new Mobile Platform, successor of Windows Mobile

Based on Windows CE Kernel

Released on November 8, 2010

Supports upto 25 Languages

Offers a new user Interface which is Metro Design

Present SDK Version is Windows Phone SDK 8.0

Visual Studio 2012, C#, XAML, Visual Basic, Silverlight, HTML5

Registration fee 99$ for Developers and free for Students

Page 5: Windows azure mobile services and windows phone 8

Cloud Computing

An approach to computing that’s about internet scale and connecting to a variety of devices and endpoints

Page 6: Windows azure mobile services and windows phone 8

Elastic Scale

Near-infinite Capacity

Consumption-based Pricing

No Long-Term Commitments

High Reliability

Global Presence

Cloud Computing

vs

Page 7: Windows azure mobile services and windows phone 8

Mobility + Cloud = Perfect Pair

Mobility Cloud

Limited Compute Limitless Compute

Limited Storage Limitless Storage

Connect from Anywhere Services via the internet(APIs)

Rapidly Growing Market Scale and Elasticity

Page 8: Windows azure mobile services and windows phone 8

What needed for Mobile Application

Identi

ty

Str

uct

ure

d S

tora

ge

Mess

ag

ing

Media

Unst

ruct

ure

d S

tora

ge

Windows Azure Mobile Services

Ad

dit

ional Serv

ices

Page 9: Windows azure mobile services and windows phone 8

Azure Mobile Services

Data

Notifications

Auth

Server Logic

Scale

Logging

Diagnostics

Page 10: Windows azure mobile services and windows phone 8

Client Support

Official SDKs

Windows 8, Windows Phone 8

Android and iOS

Page 11: Windows azure mobile services and windows phone 8

Application Key

NOT A SECURITY TOKEN/CONTROL

Hint that user is coming from your app (reduce chance of misuse)

Private until you publish the app

Master Key

All powerful

Do NOT distribute with your application

Use from server-side logic you control

Security

Page 12: Windows azure mobile services and windows phone 8

Leverage strengths of Windows Azure SQL Database

New or Existing Database

Reporting, TSQL support, existing tools, etc.

Manage your way (portal, REST API, SSMS, etc.)

Partition applications by schema

App1.Users

App2.Users

Dynamic Schema Support (on/off)

Data Storage

DB

Page 13: Windows azure mobile services and windows phone 8

REST API

OData Interface

GET, POST, PATCH, DELETE

https://<service>.azure-mobile.net/tables/<table_name>/{<item_id>}

AuthorizationX-ZUM0-{APPLICATION | AUTH | MASTER}

Send JSON in request body

Receive JSON as response

Data Access

DB

Page 14: Windows azure mobile services and windows phone 8

Microsoft Account – Use the Live SDK

Tight integration with Windows Live services

Authentication

Page 15: Windows azure mobile services and windows phone 8

Microsoft Account, Facebook, Twitter, and Google

OAuth

Does not use Windows Azure ACS

Authentication

Page 16: Windows azure mobile services and windows phone 8

Table level authorization for CRUD operations

Everyone: any request by anyone is accepted.

Anyone with Application Key: app key distributed w/ the app (default)

Authenticated Users: users authenticated by Live Connect.

Scripts and Admins: registered scripts or requests via the master key

Your application can add whatever other authorization is needed.

Authorization

Page 17: Windows azure mobile services and windows phone 8

Server script to match against your table (role-based access, specific user, etc.)

Match against user.userId

Authorization

Page 18: Windows azure mobile services and windows phone 8

PUSH Notification

1. 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 and windows phone 8

Execute scripts on a Schedule by minutes / hours /days /month

Execute scripts on demand

Examples 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

Scheduler

Page 20: Windows azure mobile services and windows phone 8

API Calls

CPU Time

Data Out

Diagnostics

Page 21: Windows azure mobile services and windows phone 8

console object

log(formatString, obj, .. .)

info(…)

warn(…)

error(…)

Logging

Page 22: Windows azure mobile services and windows phone 8

Compute

Scale out number of instances

Scale up the VM size

Storage

Dedicated SQL Database

Larger sized SQL Database

Scale

Page 23: Windows azure mobile services and windows phone 8

Free Offer at Preview

Running on shared instances

10 Mobile Services

1GB SQLDatabase

Must be deployed to US-East or US-West 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 24: Windows azure mobile services and windows phone 8

Pricing and SLA

Shared Instance Reserved Instance

Multitenant Environment Private VM (3 instance max)

Small Only (1.6GHz, 1.75 GB, 225 GB Storage)

10 mobile service applications 100 mobile service applications

Free Same rate as Windows Azure Web Sites

Service Level Agreement

Preview – No availability SLA

GA – 99.9%

Page 25: Windows azure mobile services and windows phone 8

Windows Azure Mobile Services http://aka.ms/mobileservices

SDK and Samples available on GitHub https://github.com/WindowsAzure/azure-mobile-services

Inside Windows Azure Mobile Services http://

channel9.msdn.com/posts/Kirill-Gavrylyuk-and-Josh-Twist-Inside-Windows-Azure-Mobile-Services

F5debug Blog http://f5debug.net

Windows Azure FREE Trial http://bit.ly/MikeAzureTrial

Resources

Page 26: Windows azure mobile services and windows phone 8

Q &

A

Ask your questions