24
REBOOt Windows Azure Mobile Services Senthil Kumar Microsoft MVP – Client Development MobileOSGeek.com

Windows Azure Mobile Services at ReBOOT Cloud Camp , Bangalore

Embed Size (px)

DESCRIPTION

Windows Azure Mobile Services at ReBOOT Cloud Camp , Bangalore by Senthil Kumar

Citation preview

Page 1: Windows Azure Mobile Services at ReBOOT Cloud Camp , Bangalore

REBOOt

Windows Azure Mobile Services

Senthil Kumar

Microsoft MVP – Client Development

MobileOSGeek.com

Page 2: Windows Azure Mobile Services at ReBOOT Cloud Camp , Bangalore

REBOOt

About Me

• Work at Trivium eSolutions , Bangalore

• Microsoft MVP – Client Development

• Speaker , Blogger , Software Engineer.

• BDOTNETTER( Bangalore .NET User Group )

• Windows Phone enthusiast

Blog : MobileOSGeek.com

Twitter : @isenthil

Page 3: Windows Azure Mobile Services at ReBOOT Cloud Camp , Bangalore

REBOOt

Agenda

• What is Windows Azure Mobile Services ?

• Cloud + Mobility

• Azure Mobile Services Features

• Scenarios for Windows Azure Mobile Services

• How to Create Windows Azure Mobile Services ?

• Demo

• Q & A

Page 4: Windows Azure Mobile Services at ReBOOT Cloud Camp , Bangalore

REBOOt

What is Windows Azure Mobile Services ?

Data

Notifications

Auth

Server Logic

Scale

Logging

Diagnostics

Page 5: Windows Azure Mobile Services at ReBOOT Cloud Camp , Bangalore

REBOOt

Windows Phone

• Mobile OS from Microsoft

• Modern Style UI

• Content than Chrome

• Present SDK Version is Windows Phone SDK 8.0

• C# / VB.NET , XAML , C++

Page 6: Windows Azure Mobile Services at ReBOOT Cloud Camp , Bangalore

REBOOt

Cloud

• Elastic Scale

• Near-infinite Capacity

• Consumption-based Pricing

• No Long-Term Commitments

• High Reliability

• Global Presence

Page 7: Windows Azure Mobile Services at ReBOOT Cloud Camp , Bangalore

REBOOt

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 at ReBOOT Cloud Camp , Bangalore

REBOOt

Scenarios

• Modern mobile apps• Reduces the friction associated with repeated and common tasks such

as user authentication, push notifications and structured storage.

• Rapid Development• Get your app up and running sooner when you use Mobile Services to

configure a straightforward and secure backend quickly within few 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.

Page 9: Windows Azure Mobile Services at ReBOOT Cloud Camp , Bangalore

REBOOt

Demo

Page 10: Windows Azure Mobile Services at ReBOOT Cloud Camp , Bangalore

REBOOt

Windows Azure Mobile Services

Windows Store

iOS

Android

Windows Phone 8

iOS

Android

HTML 5/JSSDKs

Scripts: TableScheduled

Custom API

REST API

User authentication

Facebook Twitter Micros

oft GoogleActive Directo

ry

Store data in the cloud

SQLTable

Storage

Blob Storag

e

Mongo DB

Push notifications

WNS and

MPNS

APNS GCM Notification Hubs

Source control

Page 11: Windows Azure Mobile Services at ReBOOT Cloud Camp , Bangalore

REBOOt

Structured Storage

• Powered by SQL Database

• Same DB – Multiple Mobile Services

• Data management in• Windows Azure Portal• SQL Portal• SQL Management Studio• REST API

Page 12: Windows Azure Mobile Services at ReBOOT Cloud Camp , Bangalore

REBOOt

Server Logic

• Automatic service REST API generated for storage

• Dynamic Schema on/off

• Ability to author server logic that intercepts CRUD operation pipeline

• Rich querying capability

• Node.js scripts

• Intercept CRUD requests to tables

• Fully customizable logic flow

Page 13: Windows Azure Mobile Services at ReBOOT Cloud Camp , Bangalore

REBOOt

Node Modules

request

console

push.*

mssql

statusCodes azure

sendgrid

pusher

twilio

Page 14: Windows Azure Mobile Services at ReBOOT Cloud Camp , Bangalore

REBOOt

REST API

Action HTTP Verb URL Suffix

Create POST /TodoItem

Read GET /TodoItem?$filter=id%3D42

Update PATCH /TodoItem/id

Delete DELETE /TodoItem/id

Data Operations and their REST Equivalents

Base REST API Endpoint URL

https://Mobileservice.azure-mobile.net/tables/*

Page 15: Windows Azure Mobile Services at ReBOOT Cloud Camp , Bangalore

REBOOt

Push Notifications

1. Register for push notifications with GCM

2. Send your identifier to Mobile Service

3. Send push from server scripts

4. GCM delivers notification to device

Client

(1 )

(2)

(3)(4)

Page 16: Windows Azure Mobile Services at ReBOOT Cloud Camp , Bangalore

REBOOt

Authorization & Authentication

• Authentication• Facebook , Twitter , Google , Windows Live

• Table level permissions for each CRUD operation

Everyone

Anyone with the Application Key

Only Authenticated Users

Only Scripts and Admins

• 400 / Unauthorized response if a call doesn’t pass

Page 17: Windows Azure Mobile Services at ReBOOT Cloud Camp , Bangalore

REBOOt

Authorization

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

• Match against user.userId

Page 18: Windows Azure Mobile Services at ReBOOT Cloud Camp , Bangalore

REBOOt

Scheduler

• Execute scripts on a schedule

• Execute scripts on demand

• Frequency and length of execution based off of service level

• Ideal for backend data processing

Page 19: Windows Azure Mobile Services at ReBOOT Cloud Camp , Bangalore

REBOOt

Custom API

• Non-table based scripts

• Accessible from• Get• Post• Put• Patch• Delete

• Same permissions as tables

Page 20: Windows Azure Mobile Services at ReBOOT Cloud Camp , Bangalore

REBOOt

Demo

Page 21: Windows Azure Mobile Services at ReBOOT Cloud Camp , Bangalore

REBOOt

Diagnostics, Logging and Scale

Diagnostics

• API calls

• CPU Time

• Data Out

Logging

• console.error(…)

• console.log(…)

Scale - Compute

• Scale out instance count

• Scale up VM size

Scale - Storage

• Scale out mobile service tenant to dedicated SQL DB

• Scale up SQL DB

Page 22: Windows Azure Mobile Services at ReBOOT Cloud Camp , Bangalore

REBOOt

Summary

Page 23: Windows Azure Mobile Services at ReBOOT Cloud Camp , Bangalore

REBOOt

Resources

• 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

• Windows Azure FREE Trial

http://bit.ly/MikeAzureTrial

Page 24: Windows Azure Mobile Services at ReBOOT Cloud Camp , Bangalore

REBOOt

Q & A