35
Cross Platform Mobile Backend with Mobile Services James Quick @jamesqquick

Cross platform mobile backend with mobile services

Embed Size (px)

Citation preview

Page 1: Cross platform mobile backend with mobile services

Cross Platform Mobile Backend with Mobile

Services

James Quick@jamesqquick

Page 2: Cross platform mobile backend with mobile services

Windows Azure Mobile Services

• Intro to Azure and the Cloud• What is Mobile Services?• Creating a Mobile Service• Authentication – choice of

providers• Push Notifications – Toast &

Tiles• Native Applications

Agenda

Page 3: Cross platform mobile backend with mobile services

Azure and the Cloud

Page 4: Cross platform mobile backend with mobile services

Microsoft Azure

Comprehensive set of services that enable you to quickly build, deploy and manage applications across a global network of Microsoft-managed datacenters

Solid

Open

Flexible

Page 5: Cross platform mobile backend with mobile services

Azure – The Big Picture:

Page 6: Cross platform mobile backend with mobile services

On Premises

Storage

Servers

Networking

O/S

Middleware

Virtualization

Data

Applications

Runtime

You

man

age

Infrastructure(as a Service)

Storage

Servers

Networking

O/S

Middleware

Virtualization

Data

Applications

Runtime

Managed by M

icrosoft

You

man

age

Platform(as a Service)

Managed by M

icrosoft

You

man

age

Storage

Servers

Networking

O/S

Middleware

Virtualization

Applications

Runtime

Data

Hosting Models

Page 7: Cross platform mobile backend with mobile services

Azure Compute Choices:

Degree of Custom

ization

Speed of Development & Ease of Use

Web Sites

Cloud Services (PAAS)

Virtual Machines (IAAS)

Mobile Services

Page 8: Cross platform mobile backend with mobile services

On-Premises

Compute: What are our Options?

Virtualization

O/S

Hardware

Native Code

Custom Software

Network

Data

Applications

Firewall

Web Sites

Applications

Data

Cloud Services

Native Code

Startup Tasks

Applications

Firewall Rules

Data

Virtual Network

Virtual Machines

Native Code

Custom Software

Virtual Network

Data

Applications

Firewall Rules

O/S

Mobile ServicesApplications

Data

Auth

Notifications

Page 9: Cross platform mobile backend with mobile services

Azure footprint

16 regions worldwide in 2014

Data Centers

Regional Partners

Page 10: Cross platform mobile backend with mobile services

Fortune 500 using Azure

>57%

>300kActive websites

More than

1,000,000

SQL Databases in Azure>30 TRILLION

storage objects

>300

MILLIONAAD users

>13BILLIONauthentication/wk

>3 MILLION

requests/sec

>1.65

MILLIONDevelopers registered with Visual Studio Online

Page 11: Cross platform mobile backend with mobile services

Azure is open across the stack

Ubuntu, SUSE, OpenSUSE, CentOS & Oracle EL + hundreds on VM Depot

Dozens of .NET & PHP CMS and Web applications

Bring your own framework!

Via cross-platform and native code approaches

Ecosystem Supported

Languages

CMS

Devices

Databases

Operating systems

Microsoft 1st Party Support

Page 12: Cross platform mobile backend with mobile services

Windows Azure Storage

Storage in the CloudScalable, durable, and availableAnywhere at anytime accessOnly pay for what the service uses

Exposed via RESTful Web ServicesUse from Windows Azure ComputeUse from anywhere on the internet

Page 13: Cross platform mobile backend with mobile services

Azure TABLEStorage:

• Storage Account: All access to Azure Storage is done through a storage account.

• Table: A table is a collection of entities. Tables don't enforce a schema on entities, which means a single table can contain entities that have different sets of properties. The number of tables that a storage account can contain is limited only by the storage account capacity limit.

• Entity: An entity is a set of properties, similar to a database row. An entity can be up to 1MB in size.

• Properties: A property is a name-value pair. Each entity can include up to 252 properties to store data. Each entity also has 3 system properties that specify a partition key, a row key, and a timestamp. Entities with the same partition key can be queried more quickly, and inserted/updated in atomic operations. An entity's row key is its unique identifier within a partition.

Page 14: Cross platform mobile backend with mobile services

Azure Mobile Services?

Page 15: Cross platform mobile backend with mobile services

What is Windows Azure Mobile Services?

Data

Notifications

Auth

Server Logic

Scale

Logging

Diagnostics

Page 16: Cross platform mobile backend with mobile services

Push Notifications

Data Storage

User Authentication

Node.js Express

.NET Web API

SQL Table Storage

Blob Storage

WNS & MPNS

APNS GCM

Mongo DB

Notification Hubs

Source Control

Facebook Twitter Microsoft Google Azure Active Directory

Windows Store iOSAndroid XamarinPhonegap

Windows PhoneiOSAndroidHTML 5/JS

SDKs

REST

API

Hybrid Connections

Page 17: Cross platform mobile backend with mobile services

Key ScenariosWindows Azure Mobile Services are ideal for:

Modern mobile appsWindows Store Apps, Windows Phone, Windows 10, 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 18: Cross platform mobile backend with mobile services

Create Azure Mobile Service

Page 19: Cross platform mobile backend with mobile services

Getting Starteda backend for your mobile app in minutesDemo

Page 20: Cross platform mobile backend with mobile services

Where Do We Store Stuff?

Page 21: Cross platform mobile backend with mobile services

How Do We Add Stuff?

Page 22: Cross platform mobile backend with mobile services

Server-Side Logic

• Automatic service REST API generated for storage• Dynamic Schema on/off (DBA’s worst nightmare )• Ability to author Server-Side Logic that intercepts CRUD

operation pipeline• Rich querying capability• JavaScript syntax (Node.js)

Page 23: Cross platform mobile backend with mobile services

Windows Azure Web Sites powerful web sites in seconds

start simplestart free, scale up and out as you go, friction-free and without the headaches

code smartwith classic asp, asp.net, php or node.js, develop on Windows, OSX or Linux

go livedeploy live in seconds, easily monitor performance, rapidly diagnose and fix issues

Page 24: Cross platform mobile backend with mobile services

Supported Publishing Methods

FTP:// TFS WEBDEPLOY

DROPBOX

Page 25: Cross platform mobile backend with mobile services

Native Apps??

Page 26: Cross platform mobile backend with mobile services

Server Logicadding server logic on CRUD operations

Page 27: Cross platform mobile backend with mobile services

*Authentication*

Authenticate against Windows Live, FB, Twitter, GoogleTable level permissions for each CRUD operation:• Everyone• Anyone with the Application Key• Only Authenticated Users• Only Scripts and Admins

Page 28: Cross platform mobile backend with mobile services

Authentication Providers:

Identity Provider: App Login Options: • Windows Live - “microsoftaccount”• Facebook - “facebook”• Twitter - “twitter”• Google - “google”

Page 29: Cross platform mobile backend with mobile services

Push NotificationsDemo

Page 30: Cross platform mobile backend with mobile services

Push Notification Lifecycle Overview1. Request Channel URI

2. Register with your Cloud Service

3. Authenticate & Push Notification

Windows 8

(1)

(2)

(3)

(3)

Page 31: Cross platform mobile backend with mobile services

Push Notifications

• Integrates with WNS to provide Toast, Live Tile, and Badge notifications.

• Portal captures your WNS client secret and package SID.

• push.wns.* provides: • Clean easy object model to compose

notifications• Performs authentication against WNS for you

Page 32: Cross platform mobile backend with mobile services

Connect Our Users

32

Page 33: Cross platform mobile backend with mobile services

Summary

Data

Notifications

Auth

Server Logic

Scale

Logging

Diagnostics

Page 34: Cross platform mobile backend with mobile services

start now.http://WindowsAzure.com

Page 35: Cross platform mobile backend with mobile services

Resources:

35

Mobile Serviceshttp://azure.microsoft.com/en-us/services/mobile-services/

Mobile Services Documentation | Azurehttp://azure.microsoft.com/en-us/documentation/services/mobile-services/

Azure Mobile Services Team Blog - Site Home - MSDN Blogshttp://blogs.msdn.com/b/azuremobile/

Get started with Mobile Serviceshttp://azure.microsoft.com/en-us/documentation/articles/mobile-services-windows-phone-get-started/

Azure Readiness / DevCamphttps://github.com/Azure-Readiness/DevCamp